From edfaf6119a84e78b2cc932260b1e15b12d57ea4f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 09 十二月 2024 15:21:41 +0800
Subject: [PATCH] 2024-12-09

---
 src/utils/utils-custom.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js
index 0164b7c..188585a 100644
--- a/src/utils/utils-custom.js
+++ b/src/utils/utils-custom.js
@@ -3089,6 +3089,13 @@
       item.$menuname = (config.MenuName || '') + label + '-' + (item.name || '')
 
       if (item.type === 'tabs') {
+        if (config.Template === 'BaseTable') {
+          item.subtabs.forEach(tab => {
+            if (tab.permission !== 'true' && tab.components[0] && tab.components[0].wrap) {
+              tab.components[0].wrap.permission = 'false'
+            }
+          })
+        }
         item.subtabs.forEach(tab => {
           let _mainSearch = mainSearch || []
 
@@ -3099,6 +3106,7 @@
               _mainSearch = com.search || []
             })
           }
+
           filterComponent(tab.components, _mainSearch, label, ispop)
         })
       } else if (item.type === 'group') {

--
Gitblit v1.8.0