添加必输项

main
yangyuanshuai 10 months ago
parent 1b9cba9de8
commit 4e73acd1a5

@ -40,7 +40,10 @@ const formSchema = reactive<FormSchema[]>([
const res = await getCategory({ paramName: 'reportingType_param', systemCode: 'ordb' }); const res = await getCategory({ paramName: 'reportingType_param', systemCode: 'ordb' });
return transfDictList(res.body.result); return transfDictList(res.body.result);
}, },
value: '1' value: '1',
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'createUser', field: 'createUser',
@ -49,6 +52,9 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
}, },
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'tVersion', field: 'tVersion',
@ -57,6 +63,9 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
}, },
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'tStatus', field: 'tStatus',
@ -65,7 +74,10 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
options:REPORTING_STATUS_LIST options:REPORTING_STATUS_LIST
}, },
value:'1' value:'1',
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'tDescription', field: 'tDescription',

@ -33,6 +33,9 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
}, },
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'repName', field: 'repName',
@ -41,6 +44,9 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
}, },
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'indexCode', field: 'indexCode',
@ -49,6 +55,9 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
}, },
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'indexName', field: 'indexName',
@ -57,6 +66,9 @@ const formSchema = reactive<FormSchema[]>([
componentProps: { componentProps: {
}, },
formItemProps: {
rules: [required()],
},
}, },
{ {
field: 'indexRule', field: 'indexRule',

Loading…
Cancel
Save