king
2025-05-08 b6c698c8833836971184a0a9c2645a15f8174d37
src/tabviews/custom/components/form/simple-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}
@@ -267,8 +271,8 @@
      })
    }
    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
@@ -304,7 +308,9 @@
        })
      } else {
        this.setState({ BID: id, BData: data }, () => {
          this.loadData()
          if (config.wrap.datatype !== 'public') {
            this.loadData()
          }
        })
      }
    }
@@ -413,6 +419,14 @@
    const { group } = this.state
    MKEmitter.emit('closeTabView', group.subButton.$MenuID)
    let tabId = ''
    if (group.closeButton.refreshTab && group.closeButton.refreshTab.length > 0 && window.GLOB.appType !== 'pc') {
      tabId = group.closeButton.refreshTab[group.closeButton.refreshTab.length - 1]
    }
    if (tabId && group.subButton.$MenuID !== tabId) { // 刷新当前菜单时无效
      MKEmitter.emit('reloadMenuView', tabId)
    }
  }
  resetTab = () => {