From 8cdfdd9914d1c4f6cd59176d61869522f51f39e4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 10 十月 2021 13:53:57 +0800
Subject: [PATCH] 2021-10-10

---
 src/tabviews/custom/index.jsx |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 83da990..2ad0982 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -527,10 +527,14 @@
         let statFields = []
         let getCols = (cols) => {
           return cols.filter(col => {
-            if (col.blacklist && col.blacklist.filter(v => roleId.indexOf(v) > -1).length > 0) {
-              return false
-            } else if (col.Hide === 'true') {
-              return false
+            if (item.subtype !== 'editable') {
+              if (col.blacklist && col.blacklist.filter(v => roleId.indexOf(v) > -1).length > 0) {
+                return false
+              } else if (col.Hide === 'true') {
+                return false
+              }
+            } else if (col.blacklist && col.blacklist.filter(v => roleId.indexOf(v) > -1).length > 0) {
+              col.Hide = 'true'
             }
             if (col.type === 'number' && col.sum === 'true' && !statFields.includes(col.field)) {
               statFields.push(col)
@@ -724,6 +728,11 @@
           })
           return col.elements.length !== 0
         })
+
+        if (item.subtype === 'editable') {
+          item.submit.logLabel = item.$menuname + '-鎻愪氦'
+          item.submit.$menuId = item.uuid
+        }
       } 
 
       if (item.setting && item.setting.supModule) {

--
Gitblit v1.8.0