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