king
2021-08-20 ec98e336b79afc2a43c998134b46b71e0e201049
src/tabviews/custom/components/form/normal-form/index.jsx
@@ -195,7 +195,7 @@
   * @param {*} position   // 刷新位置
   * @param {*} btn        // 执行的按钮
   */
  refreshByButtonResult = (menuId, position, btn) => {
  refreshByButtonResult = (menuId, position, btn, id) => {
    const { config, group } = this.state
    if (group.uuid !== menuId) return
@@ -206,9 +206,13 @@
    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) => {
@@ -221,7 +225,7 @@
    }
  }
  execSuccess = (btn) => {
  execSuccess = (btn, id) => {
    const { config, group } = this.state
    if (config.subcards.length > group.sort) {
@@ -243,8 +247,9 @@
      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