king
7 天以前 a1e9b18a4dbfd21e1bf4d5cb60974ac2f0115efd
src/tabviews/custom/components/form/simple-form/index.jsx
@@ -403,12 +403,12 @@
    }
  }
  mkFormSubmit = (btnId, callback, formId) => {
  mkFormSubmit = (btnId, callback, formId, errId) => {
    const { group } = this.state
    if (group.uuid !== btnId) return
    this.formRef.handleConfirm(formId).then(res => {
    this.formRef.handleConfirm(formId, errId).then(res => {
      MKEmitter.emit('triggerFormSubmit', {menuId: btnId, form: res})
    }, () => {
      callback && callback()
@@ -460,7 +460,7 @@
          data={data}
          action={group}
          unload={config.setting.supModule && !BID}
          inputSubmit={(id) => this.mkFormSubmit(group.uuid, null, id)}
          inputSubmit={(id, errId) => this.mkFormSubmit(group.uuid, null, id, errId)}
          wrappedComponentRef={(inst) => this.formRef = inst}
        /> : null}
        {data ? <div className={'mk-form-action ' + (group.$button || '')}>