| | |
| | | } |
| | | |
| | | 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} |
| | |
| | | |
| | | 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 |
| | |
| | | }) |
| | | } else { |
| | | this.setState({ BID: id, BData: data }, () => { |
| | | this.loadData() |
| | | if (config.wrap.datatype !== 'public') { |
| | | this.loadData() |
| | | } |
| | | }) |
| | | } |
| | | } |
| | |
| | | |
| | | 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 |
| | | } |
| | | |
| | |
| | | |
| | | 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 |
| | | } |
| | | |