king
2024-06-12 ed719ec5d86d3373ee95df8262eba3f456f94d60
src/menu/components/table/edit-table/columns/editColumn/index.jsx
@@ -580,7 +580,7 @@
          if (!pass) return
        }
        if (values.editType === 'select' && values.resourceType === '1' && values.dataSource) {
        if (values.editType === 'select' && values.resourceType === '1' && values.database !== 'sso' && values.dataSource) {
          let _option = Utils.getSelectQueryOptions(values)
          let sql = `declare @mk_departmentcode nvarchar(512),@mk_organization nvarchar(512),@mk_user_type nvarchar(20)
@@ -588,13 +588,8 @@
  
          // LoginUID|SessionUid|UserID|Appkey 已替换
          sql = sql.replace(/@\$|\$@/ig, '')
          let rduri = ''
          if (window.GLOB.mainSystemApi && values.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({visible: false, loading: false, formlist: null})
              this.props.submitCol(values)