From 5154474339da823b82668ebab5684ee3671b5b32 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 18 二月 2024 13:06:33 +0800
Subject: [PATCH] 2024-02-18

---
 src/tabviews/zshare/actionList/tabbutton/index.jsx |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/actionList/tabbutton/index.jsx b/src/tabviews/zshare/actionList/tabbutton/index.jsx
index 37e91d5..af1a136 100644
--- a/src/tabviews/zshare/actionList/tabbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -111,7 +111,15 @@
     
     let data = record || selectedData || []
 
-    if (btn.Ot === 'requiredSgl' && data.length !== 1) {
+    if (btn.Ot !== 'notRequired' && data.length === 0) {
+      // 闇�瑕侀�夋嫨琛屾椂锛屾牎楠屾暟鎹�
+      notification.warning({
+        top: 92,
+        message: '璇烽�夋嫨琛岋紒',
+        duration: 5
+      })
+      return false
+    } else if (btn.Ot === 'requiredSgl' && data.length !== 1) {
       // 闇�瑕侀�夋嫨鍗曡鏃讹紝鏍¢獙鏁版嵁
       notification.warning({
         top: 92,
@@ -125,6 +133,10 @@
 
     if (btn.Ot === 'requiredSgl') {
       primaryId = data[0].$$uuid || ''
+    } else if (btn.Ot === 'requiredOnce') {
+      let ids = data.map(d => (d.$$uuid || ''))
+      ids = ids.filter(Boolean)
+      primaryId = ids.join(',')
     } else if (btn.Ot === 'notRequired' && BID) {
       primaryId = BID
     }

--
Gitblit v1.8.0