From 400fee62fb40006a9839f1c3a8244b82566b5057 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 08 五月 2025 16:30:39 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/tabviews/custom/components/form/step-form/index.jsx |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/custom/components/form/step-form/index.jsx b/src/tabviews/custom/components/form/step-form/index.jsx
index 7b48e9c..cb32043 100644
--- a/src/tabviews/custom/components/form/step-form/index.jsx
+++ b/src/tabviews/custom/components/form/step-form/index.jsx
@@ -46,8 +46,12 @@
     }
 
     if (_config.wrap.datatype === 'dynamic') {
-      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
+      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
 
+      if (_config.setting.supModule && !BID) {
+        _config.setting.onload = 'false'
+      }
+      
       if (_config.setting.sync === 'true' && window.GLOB.SyncData.has(_config.dataName)) {
         _data = window.GLOB.SyncData.get(_config.dataName) || []
         _data = _data[0] || {$$empty: true}
@@ -265,8 +269,8 @@
 
     if (config.uuid !== menuId) return
 
-    if ((position === 'mainline' || position === 'popclose') && config.setting.supModule && BID) {
-      MKEmitter.emit('reloadData', config.setting.supModule, BID)
+    if (['mainline', 'maingrid', 'popclose'].includes(position) && config.setting.supModule) {
+      MKEmitter.emit('reloadData', config.setting.supModule, position === 'maingrid' ? '' : BID)
     } else if (position === 'grid' && config.wrap.datatype === 'static') {
       this.setState({
         data: null
@@ -302,7 +306,9 @@
         })
       } else {
         this.setState({ BID: id, BData: data }, () => {
-          this.loadData()
+          if (config.wrap.datatype !== 'public') {
+            this.loadData()
+          }
         })
       }
     }
@@ -434,6 +440,14 @@
 
     if (group.prevButton.actionType === 'close') {
       MKEmitter.emit('closeTabView', group.subButton.$MenuID)
+
+      let tabId = ''
+      if (group.prevButton.refreshTab && group.prevButton.refreshTab.length > 0 && window.GLOB.appType !== 'pc') {
+        tabId = group.prevButton.refreshTab[group.prevButton.refreshTab.length - 1]
+      }
+      if (tabId && group.subButton.$MenuID !== tabId) { // 鍒锋柊褰撳墠鑿滃崟鏃舵棤鏁�
+        MKEmitter.emit('reloadMenuView', tabId)
+      }
       return
     }
 
@@ -449,6 +463,14 @@
 
     if (group.nextButton.actionType === 'close') {
       MKEmitter.emit('closeTabView', group.subButton.$MenuID)
+
+      let tabId = ''
+      if (group.nextButton.refreshTab && group.nextButton.refreshTab.length > 0 && window.GLOB.appType !== 'pc') {
+        tabId = group.nextButton.refreshTab[group.nextButton.refreshTab.length - 1]
+      }
+      if (tabId && group.subButton.$MenuID !== tabId) { // 鍒锋柊褰撳墠鑿滃崟鏃舵棤鏁�
+        MKEmitter.emit('reloadMenuView', tabId)
+      }
       return
     }
 

--
Gitblit v1.8.0