Showing
3 changed files
with
4 additions
and
2 deletions
@@ -9,6 +9,7 @@ export const formSchemas: FormSchema[] = [ | @@ -9,6 +9,7 @@ export const formSchemas: FormSchema[] = [ | ||
9 | field: CheckExistenceFieldsEnum.MESSAGE_NAMES, | 9 | field: CheckExistenceFieldsEnum.MESSAGE_NAMES, |
10 | component: 'Select', | 10 | component: 'Select', |
11 | label: CheckExistenceFieldsNameEnum.MESSAGE_NAMES, | 11 | label: CheckExistenceFieldsNameEnum.MESSAGE_NAMES, |
12 | + rules: [{ required: true, type: 'array' }], | ||
12 | componentProps: { | 13 | componentProps: { |
13 | mode: 'tags', | 14 | mode: 'tags', |
14 | open: false, | 15 | open: false, |
@@ -20,6 +21,7 @@ export const formSchemas: FormSchema[] = [ | @@ -20,6 +21,7 @@ export const formSchemas: FormSchema[] = [ | ||
20 | field: CheckExistenceFieldsEnum.METADATA_NAMES, | 21 | field: CheckExistenceFieldsEnum.METADATA_NAMES, |
21 | component: 'Select', | 22 | component: 'Select', |
22 | label: CheckExistenceFieldsNameEnum.METADATA_NAMES, | 23 | label: CheckExistenceFieldsNameEnum.METADATA_NAMES, |
24 | + rules: [{ required: true, type: 'array' }], | ||
23 | componentProps: { | 25 | componentProps: { |
24 | mode: 'tags', | 26 | mode: 'tags', |
25 | open: false, | 27 | open: false, |
@@ -25,7 +25,7 @@ export const getFormSchemas = (route: RouteLocationNormalizedLoaded): FormSchema | @@ -25,7 +25,7 @@ export const getFormSchemas = (route: RouteLocationNormalizedLoaded): FormSchema | ||
25 | component: 'ApiSearchSelect', | 25 | component: 'ApiSearchSelect', |
26 | componentProps: () => { | 26 | componentProps: () => { |
27 | return { | 27 | return { |
28 | - placeholder: '请选择所属产品', | 28 | + placeholder: '请选择规则链', |
29 | showSearch: true, | 29 | showSearch: true, |
30 | params: { | 30 | params: { |
31 | pageSize: 50, | 31 | pageSize: 50, |
@@ -62,7 +62,7 @@ export const formSchemas: FormSchema[] = [ | @@ -62,7 +62,7 @@ export const formSchemas: FormSchema[] = [ | ||
62 | { | 62 | { |
63 | field: FormFieldsEnum.STATUS, | 63 | field: FormFieldsEnum.STATUS, |
64 | label: '状态', | 64 | label: '状态', |
65 | - component: 'Input', | 65 | + component: 'Select', |
66 | componentProps: { | 66 | componentProps: { |
67 | options: Object.keys(StatusEnum).map((value) => ({ label: StatusNameEnum[value], value })), | 67 | options: Object.keys(StatusEnum).map((value) => ({ label: StatusNameEnum[value], value })), |
68 | allowClear: true, | 68 | allowClear: true, |