From ac3fc53f2c2f69690dbc0b7d5637624bb4457f73 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 三月 2022 23:05:18 +0800
Subject: [PATCH] 2022-03-25

---
 src/tabviews/custom/components/card/balcony/index.jsx |   37 +++++++++++++++++++++----------------
 1 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/src/tabviews/custom/components/card/balcony/index.jsx b/src/tabviews/custom/components/card/balcony/index.jsx
index 2383819..fb01441 100644
--- a/src/tabviews/custom/components/card/balcony/index.jsx
+++ b/src/tabviews/custom/components/card/balcony/index.jsx
@@ -205,30 +205,35 @@
    * @param {*} position   // 鍒锋柊浣嶇疆
    * @param {*} btn        // 鎵ц鐨勬寜閽�
    */
-  refreshByButtonResult = (menuId, position, btn) => {
+  refreshByButtonResult = (menuId, position, btn, id, lines) => {
     const { config, BID, syncConfig } = this.state
 
     if (config.uuid !== menuId) return
 
-    this.loadData()                                                            // 鏁版嵁鍒锋柊
-
-    let supModule = config.wrap.supModule
-
     if (syncConfig) {
-      supModule = syncConfig.setting.supModule
+      MKEmitter.emit('refreshByButtonResult', syncConfig.uuid, position, btn, id, lines)
 
-      MKEmitter.emit('refreshByButtonResult', syncConfig.uuid, position, btn)
-    }
+      this.loadData()
+    } else {
+      let supModule = config.wrap.supModule
 
-    if (btn.syncComponentId && btn.syncComponentId !== config.uuid && btn.syncComponentId !== supModule) {
-      MKEmitter.emit('reloadData', btn.syncComponentId)                        // 鍚岀骇鏍囩鍒锋柊
-    }
+      btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId)
 
-    if (position === 'mainline' && supModule) {                                // 涓昏〃琛屽埛鏂�
-      MKEmitter.emit('reloadData', supModule, (BID || 'empty'))
-    } else if (position === 'popclose') {                                      // 鏍囩鍏抽棴鍒锋柊
-      supModule && MKEmitter.emit('reloadData', supModule, (BID || 'empty'))
-      btn.$tabId && MKEmitter.emit('refreshPopButton', btn.$tabId)
+      if (!btn.syncComponentId || btn.syncComponentId !== supModule) {
+        if (position === 'mainline' || position === 'popclose') { // 鍒锋柊婧愮粍浠舵椂锛岄檮甯﹀埛鏂颁笂绾ц涓庡綋鍓嶇粍浠�
+          if (supModule && BID) {
+            MKEmitter.emit('reloadData', supModule, BID)
+          } else {
+            this.loadData()
+          }
+        } else {
+          this.loadData()
+        }
+      }
+      
+      if (position === 'popclose') {                                      // 鏍囩鍏抽棴鍒锋柊
+        btn.$tabId && MKEmitter.emit('refreshPopButton', btn.$tabId)
+      }
     }
   }
 

--
Gitblit v1.8.0