| | |
| | | |
| | | 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' |
| | |
| | | } |
| | | |
| | | 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) { |