From 43a517b80f2803e0dcf6658113520c4a14c8c17f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 22 五月 2023 18:21:52 +0800
Subject: [PATCH] 2023-05-22

---
 src/tabviews/custom/index.jsx |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index bf7075e..f10ec65 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -486,6 +486,12 @@
         }
       }
 
+      let pass = skip
+
+      if (item.wrap && item.wrap.permission === 'false') {
+        pass = true
+      }
+
       // 鏉冮檺杩囨护
       if (item.action && item.action.length > 0) {
         item.action = item.action.filter(cell => {
@@ -506,7 +512,7 @@
             cell = this.getPrinter(cell, item.uuid)
           }
 
-          return skip || permAction[cell.uuid]
+          return pass || permAction[cell.uuid]
         })
       }
 
@@ -559,7 +565,7 @@
                     cell = this.getPrinter(cell, item.uuid)
                   }
 
-                  return skip || permAction[cell.uuid]
+                  return pass || permAction[cell.uuid]
                 } else {
                   cell = this.resetElement(cell)
                 }
@@ -618,7 +624,7 @@
               cell = this.resetElement(cell)
             }
 
-            return cell.eleType !== 'button' || skip || permAction[cell.uuid]
+            return cell.eleType !== 'button' || pass || permAction[cell.uuid]
           })
 
           if (!card.backElements || card.backElements.length === 0) return
@@ -643,7 +649,7 @@
               cell = this.resetElement(cell)
             }
 
-            return cell.eleType !== 'button' || skip || permAction[cell.uuid]
+            return cell.eleType !== 'button' || pass || permAction[cell.uuid]
           })
         })
       } else if (item.type === 'balcony') {
@@ -674,7 +680,7 @@
             cell = this.resetElement(cell)
           }
 
-          return cell.eleType !== 'button' || skip || permAction[cell.uuid]
+          return cell.eleType !== 'button' || pass || permAction[cell.uuid]
         })
       } else if (item.type === 'form') {
         item.subcards = item.subcards.map(group => {

--
Gitblit v1.8.0