From 80deba0c2dcffd9e6b6f07815c7c52199309ce42 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 23 六月 2025 17:36:03 +0800
Subject: [PATCH] 2025-06-23

---
 src/tabviews/custom/components/table/edit-table/index.jsx |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx
index 1ce2b6a..001ecdf 100644
--- a/src/tabviews/custom/components/table/edit-table/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/index.jsx
@@ -61,6 +61,14 @@
       BID = BData.$BID || ''
     }
 
+    if (setting.controlField) {
+      if (setting.controlVal) {
+        setting.controlVal = setting.controlVal.split(',')
+      } else {
+        setting.controlVal = ['']
+      }
+    }
+
     _config.submit.style = _config.submit.style || {}
     _config.submit.wrapStyle = {}
     setting.hasAction = _config.action.length > 0
@@ -494,6 +502,12 @@
           })
         }
 
+        if (setting.controlField) {
+          if (setting.controlVal.includes(item[setting.controlField] + '')) {
+            item.$disabled = true
+          }
+        }
+
         return item
       })
 
@@ -594,6 +608,12 @@
         })
       }
 
+      if (setting.controlField) {
+        if (setting.controlVal.includes(_data[setting.controlField] + '')) {
+          _data.$disabled = true
+        }
+      }
+
       data = data.map(item => {
         if (item.$$uuid === _data.$$uuid) {
           _data.key = item.key
@@ -637,7 +657,7 @@
     if (setting.supModule && !BID) {
       notification.warning({
         top: 92,
-        message: window.GLOB.dict['sup_key_req'] || '闇�瑕佷笂绾т富閿�硷紒',
+        message: setting.supModTip || window.GLOB.dict['sup_key_req'] || '闇�瑕佷笂绾т富閿�硷紒',
         duration: 5
       })
       this.setState({

--
Gitblit v1.8.0