king
2023-11-05 e01d39d4a2c3137fdce5f18f9589a34df13b7963
src/menu/components/table/edit-table/columns/editColumn/index.jsx
@@ -6,6 +6,7 @@
import Api from '@/api'
import Utils from '@/utils/utils.js'
import { checkSQL } from '@/utils/utils-custom.js'
import { getColumnForm } from './formconfig'
import asyncComponent from '@/utils/asyncComponent'
import { formRule } from '@/utils/option.js'
@@ -521,16 +522,9 @@
        }
        if (values.dataSource) {
          let error = Utils.verifySql(values.dataSource)
          let pass = checkSQL(values.dataSource)
  
          if (error) {
            notification.warning({
              top: 92,
              message: '数据源中不可使用' + error,
              duration: 5
            })
            return
          }
          if (!pass) return
        }
        if (values.editType === 'select' && values.resourceType === '1' && values.dataSource) {