king
2024-06-21 b78198e00a34eaa2b0a761bb6f42bf14e7771883
src/mob/searchconfig/index.jsx
@@ -223,7 +223,7 @@
        return
      }
      if (['checkcard'].includes(res.type) && res.resourceType === '1' && /\s/.test(res.dataSource)) {
      if (['checkcard'].includes(res.type) && res.resourceType === '1' && res.database !== 'sso' && /\s/.test(res.dataSource)) {
        this.setState({
          sqlVerifing: true
        })
@@ -232,12 +232,7 @@
        ${res.dataSource}`
        sql = sql.replace(/@\$|\$@/ig, '')
        
        let rduri = ''
        if (window.GLOB.mainSystemApi && res.database === 'sso') {
          rduri = window.GLOB.mainSystemApi
        }
        Api.sDebug(sql, rduri).then(result => {
        Api.sDebug(sql).then(result => {
          if (result.status || result.ErrCode === '-2') {
            this.setState({
              sqlVerifing: false,
@@ -537,7 +532,7 @@
        <Modal
          title="编辑"
          visible={this.state.visible}
          width={850}
          width={950}
          onCancel={this.editModalCancel}
          onOk={this.handleSubmit}
          confirmLoading={this.state.sqlVerifing}