king
2023-11-08 076c2b693da1d42cf3a468c0f3d631c1ed424285
src/tabviews/custom/components/form/simple-form/index.jsx
@@ -169,6 +169,12 @@
    if ((position === 'mainline' || position === 'popclose') && config.setting.supModule && BID) {
      MKEmitter.emit('reloadData', config.setting.supModule, BID)
    } else if (position === 'grid' && config.wrap.datatype === 'static') {
      this.setState({
        data: null
      }, () => {
        this.setState({data: {$$empty: true}})
      })
    } else {
      this.loadData()
    }
@@ -302,13 +308,15 @@
    }
  }
  mkFormSubmit = (btnId) => {
  mkFormSubmit = (btnId, callback) => {
    const { group } = this.state
    if (group.uuid !== btnId) return
    this.formRef.handleConfirm().then(res => {
      MKEmitter.emit('triggerFormSubmit', {menuId: btnId, form: res})
    }, () => {
      callback && callback()
    })
  }