From d0e8c7cb64d7d219f7cfec8bc87cf699b9cfe7b2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 08 十一月 2022 12:35:25 +0800
Subject: [PATCH] 2022-11-08

---
 src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
index 7444d5f..b4c2f4f 100644
--- a/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
+++ b/src/menu/components/table/normal-table/columns/editColumn/formconfig.jsx
@@ -225,7 +225,8 @@
       }, {
         value: 'false',
         text: '鍚�'
-      }]
+      }],
+      forbid: card.isSub
     },
     {
       type: 'number',
@@ -234,7 +235,7 @@
       max: 18,
       decimal: 0,
       label: '灏忔暟浣�',
-      initVal: card.decimal || 0,
+      initVal: card.decimal,
       required: false
     },
     {
@@ -358,7 +359,7 @@
         value: 'linkurl',
         text: '閾炬帴'
       }],
-      forbidden: appType === 'mob'
+      forbid: appType === 'mob'
     },
     {
       type: appType === 'pc' ? 'select' : 'cascader',
@@ -367,7 +368,7 @@
       initVal: card.linkmenu || (appType === 'pc' ? '' : []),
       required: true,
       options: menulist,
-      forbidden: appType === 'mob'
+      forbid: appType === 'mob'
     },
     {
       type: 'textarea',
@@ -375,7 +376,7 @@
       label: '閾炬帴鍦板潃',
       initVal: card.linkurl || '',
       required: true,
-      forbidden: appType === 'mob'
+      forbid: appType === 'mob'
     },
     {
       type: 'multiselect',
@@ -384,7 +385,7 @@
       initVal: card.linkfields || [],
       required: false,
       options: fields,
-      forbidden: appType === 'mob'
+      forbid: appType === 'mob'
     },
     {
       type: 'radio',
@@ -426,7 +427,7 @@
       initVal: card.blacklist || [],
       required: false,
       options: roleList,
-      forbidden: appType === 'mob'
+      forbid: appType === 'mob'
     }
   ]
 }

--
Gitblit v1.8.0