From c06e58c80240afd703d289bb1c584e08b9783383 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 13 六月 2025 20:24:25 +0800
Subject: [PATCH] 2025-06-13

---
 src/tabviews/subtabtable/index.jsx |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/subtabtable/index.jsx b/src/tabviews/subtabtable/index.jsx
index 0218924..888ef15 100644
--- a/src/tabviews/subtabtable/index.jsx
+++ b/src/tabviews/subtabtable/index.jsx
@@ -192,6 +192,7 @@
 
       let _actions = []     // 宸ュ叿鏍忔寜閽�
       let _operations = []  // 鎿嶄綔鍒楁寜閽紙瀛樺湪鏃讹級
+      let colors = { primary: '#1890ff', yellow: '#c49f47', orange: 'orange', danger: '#ff4d4f', green: '#26C281', dgreen: '#32c5d2', purple: '#8E44AD', cyan: '#13c2c2', gray: '#E7E7EF', default: 'rgba(0, 0, 0, 0.65)' }
 
       config.action.forEach(item => {
         item.logLabel = Tab.label + '-' + item.label // 鐢ㄤ簬sPC_TableData_InUpDe璁板綍鎿嶄綔鎸夐挳
@@ -202,11 +203,15 @@
 
         if (item.OpenType === 'excelOut') { // 瀵煎嚭
           item.$menuName = Tab.label
-    
-          if (!item.verify || !item.verify.columns || item.verify.columns.length === 0) {
-            item.errorType = 'error1'
-          } else if (item.intertype === 'system' && item.verify.dataType !== 'custom' && config.setting.interType !== 'system') {
-            item.errorType = 'error2'
+        }
+
+        if (item.verify && item.verify.invalid === 'true') {
+          if (item.sqlType === 'insert') {
+            item.verify.invalid = 'false'
+          } else if (item.Ot === 'notRequired') {
+            item.verify.invalid = 'false'
+          } else if (item.intertype !== 'system' && item.procMode !== 'system') {
+            item.verify.invalid = 'false'
           }
         }
 
@@ -218,10 +223,25 @@
           }
         }
 
+        item.show = 'button'
+
+        let _c = item.class ? item.class.replace('border-', '') : ''
+        let color = colors[_c] || '#1890ff'
+
         if (item.position === 'toolbar') {
           item.$toolbtn = true
+
+          if (item.class === 'default') {
+            item.style = {color: 'rgba(0, 0, 0, 0.65)', backgroundColor: '#fff', borderColor: '#d9d9d9', marginRight: '15px'}
+          } else if (item.class.indexOf('border') > -1) {
+            item.style = {color: color, backgroundColor: '#fff', borderColor: color, marginRight: '15px'}
+          } else {
+            item.style = {color: item.class === 'gray' ? 'rgba(0, 0, 0, 0.65)' : '#fff', backgroundColor: color, borderColor: color, marginRight: '15px'}
+          }
+
           _actions.push(item)
         } else if (item.position === 'grid') {
+          item.style = {color: color, backgroundColor: 'transparent', borderColor: 'transparent'}
           _operations.push(item)
         }
       })
@@ -278,6 +298,8 @@
           config.setting.dataresource = config.setting.dataresource.replace(cell.reg, cell.value)
           config.setting.customScript = config.setting.customScript.replace(cell.reg, cell.value)
         })
+      } else {
+        config.setting.dataresource = ''
       }
 
       if (config.setting.selected !== 'init' && config.setting.selected !== 'always') {
@@ -385,6 +407,8 @@
 
     let _orderBy = orderBy || setting.order
     let param = UtilsDM.getQueryDataParams(setting, searches, _orderBy, pageIndex, pageSize, BID)
+
+    delete param.s_version_up
 
     let result = await Api.genericInterface(param)
 
@@ -511,6 +535,8 @@
     let _orderBy = orderBy || setting.order
     let param = UtilsDM.getQueryDataParams(setting, searches, _orderBy, pageIndex, pageSize, BID, id)
 
+    delete param.s_version_up
+
     let result = await Api.genericInterface(param)
     if (result.status) {
       let data = fromJS(this.state.data).toJS()

--
Gitblit v1.8.0