From 076c2b693da1d42cf3a468c0f3d631c1ed424285 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 08 十一月 2023 18:22:56 +0800
Subject: [PATCH] 2023-11-08

---
 src/tabviews/custom/index.jsx |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 373d6df..9fc21a2 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -801,6 +801,18 @@
             }
           }
 
+          if (group.subButton.verify && group.subButton.verify.invalid === 'true') {
+            if (item.wrap.datatype === 'static') {
+              group.subButton.verify.invalid = 'false'
+            } else if (group.subButton.sqlType === 'insert') {
+              group.subButton.verify.invalid = 'false'
+            } else if (group.subButton.Ot === 'notRequired') {
+              group.subButton.verify.invalid = 'false'
+            } else if (group.subButton.intertype !== 'system' && group.subButton.procMode !== 'system') {
+              group.subButton.verify.invalid = 'false'
+            }
+          }
+
           group.fields = group.fields.map(cell => {
             // 鏁版嵁婧恠ql璇彞锛岄澶勭悊锛屾潈闄愰粦鍚嶅崟瀛楁璁剧疆涓洪殣钘忚〃鍗�
             if (['select', 'link', 'multiselect', 'radio', 'checkbox', 'checkcard'].includes(cell.type) && cell.resourceType === '1') {
@@ -914,6 +926,18 @@
       cell.modal.$cache = item.$cache
       cell.modal.$time = item.$time
       cell.modal.uuid = cell.uuid + 'pop'
+    }
+
+    if (cell.verify && cell.verify.invalid === 'true') {
+      if (item.wrap && item.wrap.datatype === 'static') {
+        cell.verify.invalid = 'false'
+      } else if (cell.intertype !== 'system' && cell.procMode !== 'system') {
+        cell.verify.invalid = 'false'
+      } else if (cell.sqlType === 'insert') {
+        cell.verify.invalid = 'false'
+      } else if (cell.Ot === 'notRequired') {
+        cell.verify.invalid = 'false'
+      }
     }
 
     if (cell.syncComponentId) {
@@ -1053,6 +1077,7 @@
 
       if (component.setting.interType !== 'system') { // 涓嶄娇鐢ㄧ郴缁熷嚱鏁版椂
         component.setting.sync = 'false'
+        component.setting.dataresource = ''
         component.setting.laypage = component.setting.laypage === 'true'
         return component
       }

--
Gitblit v1.8.0