king
2024-08-07 e45bb599c2fa110056dc4c9f44204eab333260b2
src/menu/datasource/index.jsx
@@ -288,6 +288,12 @@
    })
  }
  cancel = () => {
    this.verifyRef.closeDataSource(() => {
      this.setState({ visible: false, loading: false })
    })
  }
  creatFunc = () => {
    const { config } = this.props
    const { mainSearch } = this.state
@@ -330,7 +336,7 @@
          onCancel={() => {this.setState({ visible: false, loading: false }) }}
          footer={[
            config.subtype !== 'dualdatacard' && record.interType === 'inner' ? <CreateFunc key="create" getMsg={this.creatFunc}/> : null,
            <Button key="cancel" onClick={() => { this.setState({ visible: false, loading: false }) }}>取消</Button>,
            <Button key="cancel" onClick={this.cancel}>取消</Button>,
            <Button key="confirm" type="primary" loading={loading} onClick={this.verifySubmit}>确定</Button>
          ]}
          destroyOnClose