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