From e0aff8f4c0e9c8f16d1ba07863cf600638067514 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 13 四月 2021 15:08:47 +0800
Subject: [PATCH] 2021-04-13

---
 src/tabviews/custom/components/card/cardcellList/index.jsx |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 62deb90..def201a 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -535,6 +535,13 @@
         </Col>
       )
     } else if (card.eleType === 'button') {
+      if (card.$type === 'tableButton' && card.controlField) { // 琛ㄦ牸涓寜閽殣钘忔帶鍒�
+        if (data[card.controlField] === card.controlVal) {
+          return null
+        } else if (card.controlVal && card.controlVal.split(',').includes(data[card.controlField])) {
+          return null
+        }
+      }
       if (['exec', 'prompt', 'pop'].includes(card.OpenType)) {
         return (
           <Col key={card.uuid} span={card.width}>
@@ -657,6 +664,8 @@
         }
       }
     }
+
+    return null
   }
 
   render() {

--
Gitblit v1.8.0