Commit 9d7d2ee1cbc66314bc173a7f2884407faed91b3b
Merge branch 'ft-dev' into 'main'
fix:修改字典管理中的字典值字段名长度为255 See merge request huang/yun-teng-iot-front!110
Showing
1 changed file
with
1 additions
and
14 deletions
| @@ -127,7 +127,7 @@ export const formSchema: FormSchema[] = [ | @@ -127,7 +127,7 @@ export const formSchema: FormSchema[] = [ | ||
| 127 | required: true, | 127 | required: true, |
| 128 | component: 'Input', | 128 | component: 'Input', |
| 129 | componentProps: { | 129 | componentProps: { |
| 130 | - maxLength: 32, | 130 | + maxLength: 255, |
| 131 | placeholder: '请输入字典值', | 131 | placeholder: '请输入字典值', |
| 132 | }, | 132 | }, |
| 133 | }, | 133 | }, |
| @@ -159,18 +159,5 @@ export const formSchema: FormSchema[] = [ | @@ -159,18 +159,5 @@ export const formSchema: FormSchema[] = [ | ||
| 159 | componentProps: { | 159 | componentProps: { |
| 160 | maxLength: 255, | 160 | maxLength: 255, |
| 161 | }, | 161 | }, |
| 162 | - dynamicRules: () => { | ||
| 163 | - return [ | ||
| 164 | - { | ||
| 165 | - required: false, | ||
| 166 | - validator: (_, value) => { | ||
| 167 | - if (String(value).length > 255) { | ||
| 168 | - return Promise.reject('字数不超过255个字'); | ||
| 169 | - } | ||
| 170 | - return Promise.resolve(); | ||
| 171 | - }, | ||
| 172 | - }, | ||
| 173 | - ]; | ||
| 174 | - }, | ||
| 175 | }, | 162 | }, |
| 176 | ]; | 163 | ]; |