From 2dc0ff994bb96eacc472442fde6cfb38b05959e9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 07 五月 2022 17:29:13 +0800
Subject: [PATCH] 2022-05-07

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

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index e4b0bdd..f3d603c 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -593,6 +593,8 @@
       let tabId = this.props.Tab ? this.props.Tab.uuid : '' // 寮圭獥鏍囩鎸夐挳Id
       if (item.action && item.action.length > 0) {
         item.action = item.action.filter(cell => {
+          if (item.hidden === 'true') return false
+
           cell.logLabel = item.$menuname + '-' + cell.label
           cell.ContainerId = this.state.ContainerId
           cell.syncComponentId = cell.syncComponent ? (cell.syncComponent.pop() || '') : ''
@@ -631,6 +633,8 @@
 
           card.elements = card.elements.filter(cell => {
             if (cell.eleType === 'button') {
+              if (cell.hidden === 'true') return false
+
               cell.logLabel = item.$menuname + '-' + cell.label
               cell.Ot = cell.Ot || 'requiredSgl'
               cell.ContainerId = this.state.ContainerId
@@ -659,6 +663,8 @@
           })
           card.backElements = card.backElements.filter(cell => {
             if (cell.eleType === 'button') {
+              if (cell.hidden === 'true') return false
+
               cell.logLabel = item.$menuname + '-' + cell.label
               cell.Ot = cell.Ot || 'requiredSgl'
               cell.ContainerId = this.state.ContainerId
@@ -692,6 +698,8 @@
         }
         item.elements = item.elements.filter(cell => {
           if (cell.eleType === 'button') {
+            if (cell.hidden === 'true') return false
+
             cell.logLabel = item.$menuname + '-' + cell.label
             cell.ContainerId = this.state.ContainerId
             cell.syncComponentId = cell.syncComponent ? (cell.syncComponent.pop() || '') : ''
@@ -718,6 +726,8 @@
           let _hasheight = card.style.height && card.style.height !== 'auto'
           card.elements = card.elements.filter(cell => {
             if (cell.eleType === 'button') {
+              if (cell.hidden === 'true') return false
+
               cell.logLabel = item.$menuname + '-' + cell.label
               cell.Ot = cell.Ot || 'requiredSgl'
               cell.ContainerId = this.state.ContainerId
@@ -748,6 +758,8 @@
         item.cols = item.cols.filter(col => {
           if (col.type !== 'action') return true
           col.elements = col.elements.filter(cell => {
+            if (cell.hidden === 'true') return false
+            
             cell.logLabel = item.$menuname + '-' + cell.label
             cell.Ot = cell.Ot || 'requiredSgl'
             cell.ContainerId = this.state.ContainerId

--
Gitblit v1.8.0