Commit 8962bbd6801617a7339c71cd502222c36a7c91d9
1 parent
4b60dae1
fix: DEFECT-1542 限制一下租户管理员账号和名字的长度,太长了,邮箱也做一下限制
Showing
1 changed file
with
10 additions
and
2 deletions
... | ... | @@ -46,7 +46,7 @@ |
46 | 46 | label: '账号', |
47 | 47 | component: 'Input', |
48 | 48 | componentProps: { |
49 | - maxLength: 255, | |
49 | + maxLength: 64, | |
50 | 50 | placeholder: '请输入账号', |
51 | 51 | }, |
52 | 52 | dynamicRules: ({ values }) => { |
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | required: true, |
88 | 88 | component: 'Input', |
89 | 89 | componentProps: { |
90 | - maxLength: 255, | |
90 | + maxLength: 64, | |
91 | 91 | placeholder: '请输入真实名字', |
92 | 92 | }, |
93 | 93 | rules: chineseAndEnlishRule, |
... | ... | @@ -97,12 +97,20 @@ |
97 | 97 | label: '电话号码', |
98 | 98 | required: true, |
99 | 99 | component: 'Input', |
100 | + componentProps: { | |
101 | + maxLength: 11, | |
102 | + placeholder: '请输入电话号码', | |
103 | + }, | |
100 | 104 | rules: phoneRule, |
101 | 105 | }, |
102 | 106 | { |
103 | 107 | field: 'email', |
104 | 108 | label: '邮件', |
105 | 109 | component: 'Input', |
110 | + componentProps: { | |
111 | + maxLength: 64, | |
112 | + placeholder: '请输入邮件', | |
113 | + }, | |
106 | 114 | rules: emailRule, |
107 | 115 | }, |
108 | 116 | { | ... | ... |