|
|
|
@ -2,7 +2,10 @@
|
|
|
|
|
import { Form, FormSchema } from '@/components/Form'
|
|
|
|
|
import { useForm } from '@/hooks/web/useForm'
|
|
|
|
|
import { PropType, reactive, watch } from 'vue'
|
|
|
|
|
import { WHETHER_UUID_LIST,WHETHER_UNITEDKEY_LIST } from '../constants'
|
|
|
|
|
import { useValidator } from '@/hooks/web/useValidator'
|
|
|
|
|
import { ElButton, ElMessage, ElMessageBox } from 'element-plus';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { required } = useValidator()
|
|
|
|
|
|
|
|
|
@ -55,7 +58,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'mappingName',
|
|
|
|
|
label: '映射目标列名称)',
|
|
|
|
|
label: '映射目标列名称',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
@ -96,10 +99,14 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'primarykey',
|
|
|
|
|
label: '组成联合主键',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
options:WHETHER_UNITEDKEY_LIST
|
|
|
|
|
},
|
|
|
|
|
value:'0',
|
|
|
|
|
formItemProps: {
|
|
|
|
|
rules: [required()],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'primaryKeyNum',
|
|
|
|
@ -112,10 +119,14 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'uuid',
|
|
|
|
|
label: '标识是否为uuid',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
options:WHETHER_UUID_LIST
|
|
|
|
|
},
|
|
|
|
|
value:'0',
|
|
|
|
|
formItemProps: {
|
|
|
|
|
rules: [required()],
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|