Commit c3607d8c594d51e7068a82918f124b61a139e34a
fix:检查修复了之前字段有些验证失效问题,修复了账号管理的租户管理员用户名需要显示已经存在问题,修复组织管理默认展开,修复了消息模板邮件里面的有些字段为数组问题
Showing
5 changed files
with
4 additions
and
42 deletions
... | ... | @@ -72,19 +72,6 @@ export const formSchema: FormSchema[] = [ |
72 | 72 | maxLength: 255, |
73 | 73 | placeholder: '请输入配置名称', |
74 | 74 | }, |
75 | - dynamicRules: () => { | |
76 | - return [ | |
77 | - { | |
78 | - required: true, | |
79 | - validator: (_, value) => { | |
80 | - if (String(value).length > 255) { | |
81 | - return Promise.reject('字数不超过255个字'); | |
82 | - } | |
83 | - return Promise.resolve(); | |
84 | - }, | |
85 | - }, | |
86 | - ]; | |
87 | - }, | |
88 | 75 | }, |
89 | 76 | { |
90 | 77 | field: 'messageType', |
... | ... | @@ -136,19 +123,7 @@ export const formSchema: FormSchema[] = [ |
136 | 123 | maxLength: 36, |
137 | 124 | placeholder: '请输入accessKeySecret', |
138 | 125 | }, |
139 | - dynamicRules: () => { | |
140 | - return [ | |
141 | - { | |
142 | - required: true, | |
143 | - validator: (_, value) => { | |
144 | - if (String(value).length > 36) { | |
145 | - return Promise.reject('字数不超过36个字'); | |
146 | - } | |
147 | - return Promise.resolve(); | |
148 | - }, | |
149 | - }, | |
150 | - ]; | |
151 | - }, | |
126 | + | |
152 | 127 | ifShow: ({ values }) => isMessage(Reflect.get(values, 'messageType')), |
153 | 128 | }, |
154 | 129 | { |
... | ... | @@ -159,7 +134,7 @@ export const formSchema: FormSchema[] = [ |
159 | 134 | component: 'Input', |
160 | 135 | componentProps: { |
161 | 136 | maxLength: 36, |
162 | - placeholder: '请输入服务器地址', | |
137 | + placeholder: '请输入accessKeySecret', | |
163 | 138 | }, |
164 | 139 | |
165 | 140 | ifShow: ({ values }) => isEmail(Reflect.get(values, 'messageType')), |
... | ... | @@ -187,19 +162,6 @@ export const formSchema: FormSchema[] = [ |
187 | 162 | maxLength: 255, |
188 | 163 | placeholder: '请输入用户名', |
189 | 164 | }, |
190 | - dynamicRules: () => { | |
191 | - return [ | |
192 | - { | |
193 | - required: true, | |
194 | - validator: (_, value) => { | |
195 | - if (String(value).length > 255) { | |
196 | - return Promise.reject('字数不超过255个字'); | |
197 | - } | |
198 | - return Promise.resolve(); | |
199 | - }, | |
200 | - }, | |
201 | - ]; | |
202 | - }, | |
203 | 165 | |
204 | 166 | ifShow: ({ values }) => isEmail(Reflect.get(values, 'messageType')), |
205 | 167 | }, | ... | ... |