|
@@ -7,12 +7,12 @@
|
|
|
<!-- 用户名称 -->
|
|
|
<a-form-item label="用户名称" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }">
|
|
|
<a-input
|
|
|
- placeholder="请输入用户名称"
|
|
|
+ placeholder="请输入用户名称30个字以内"
|
|
|
id="userModal-name"
|
|
|
:maxLength="30"
|
|
|
v-decorator="['formData.name', {
|
|
|
initialValue: formData.name,
|
|
|
- rules: [{ required: true, message: '请输入用户名称!' },{pattern:'^[^<|>]{1,20}$',message:'请输入不含<或>的字符,最多30个字符'}] }]"
|
|
|
+ rules: [{ required: true, message: '请输入用户名称!' },{pattern:'^[^<|>]{1,30}$',message:'请输入不含<或>的字符,最多30个字符'}] }]"
|
|
|
/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -178,7 +178,6 @@ export default {
|
|
|
console.log(values, 'values222')
|
|
|
if (!err) {
|
|
|
values.formData.roleNames = values.formData.roleNames.join(',')
|
|
|
-
|
|
|
console.log(values.formData, ' formData.type222222222')
|
|
|
console.log(Object.assign({ id: this.data.id ? this.data.id : '' }, values.formData))
|
|
|
saveUserPower(Object.assign({ id: this.data.id ? this.data.id : '' }, values.formData)).then(res => {
|