king
2020-09-03 af02b8f3c3ec9e5684be1084904d673429421d2b
src/menu/datasourcecomponent/verifycard/index.jsx
@@ -78,15 +78,15 @@
      {
        title: 'SQL',
        dataIndex: 'sql',
        width: '60%',
        width: '65%',
        render: (text) => (
          <Paragraph copyable ellipsis={{ rows: 5, expandable: true }}>{text}</Paragraph>
          <Paragraph copyable ellipsis={{ rows: 4, expandable: true }}>{text}</Paragraph>
        )
      },
      {
        title: '状态',
        dataIndex: 'status',
        width: '20%',
        width: '15%',
        render: (text, record) => record.status === 'false' ?
          (
            <div>
@@ -335,16 +335,6 @@
        activeKey: val,
        loading: false
      })
      // this.sqlverify(() => { // 验证成功
      //   this.setState({
      //     activeKey: val,
      //     loading: false
      //   })
      // }, () => {             // 验证失败
      //   this.setState({
      //     loading: false
      //   })
      // }, true)
    } else if (activeKey === 'scripts') {
      let _loading = false
      if (this.scriptsForm && this.scriptsForm.state.editItem) {
@@ -491,6 +481,7 @@
            <SettingForm
              menuId={this.props.menuId}
              dict={this.props.dict}
              config={this.props.config}
              permFuncField={this.props.permFuncField}
              columns={columns}
              setting={setting}