| | |
| | | * @param {*} position // 刷新位置 |
| | | * @param {*} btn // 执行的按钮 |
| | | */ |
| | | refreshByButtonResult = (menuId, position, btn) => { |
| | | refreshByButtonResult = (menuId, position, btn, id) => { |
| | | const { config, group } = this.state |
| | | |
| | | if (group.uuid !== menuId) return |
| | |
| | | |
| | | if (config.wrap.datatype !== 'static' && config.setting) { |
| | | this.loadData(btn) |
| | | } else { |
| | | this.execSuccess(btn) |
| | | } |
| | | |
| | | if (id) { |
| | | MKEmitter.emit('resetSelectLine', config.uuid, id, '') |
| | | } |
| | | |
| | | this.execSuccess(btn, id) |
| | | } |
| | | |
| | | resetParentParam = (MenuID, id) => { |
| | |
| | | } |
| | | } |
| | | |
| | | execSuccess = (btn) => { |
| | | execSuccess = (btn, id) => { |
| | | const { config, group } = this.state |
| | | |
| | | if (config.subcards.length > group.sort) { |
| | |
| | | let newtab = { |
| | | ...menu, |
| | | selected: true, |
| | | param: {} |
| | | param: {$BID: id || ''} |
| | | } |
| | | |
| | | let tabs = this.props.tabviews.filter((tab, i) => { |
| | | tab.selected = false |
| | | return tab.MenuID !== newtab.MenuID |