密码的验证
Showing
1 changed file
with
4 additions
and
4 deletions
| ... | @@ -106,7 +106,7 @@ const schemaParam1 = ref([ | ... | @@ -106,7 +106,7 @@ const schemaParam1 = ref([ |
| 106 | field: 'password', | 106 | field: 'password', |
| 107 | default: '', | 107 | default: '', |
| 108 | clearable: true, | 108 | clearable: true, |
| 109 | required: true, | 109 | required: !isEdit.value, |
| 110 | autocompleteSetting: { | 110 | autocompleteSetting: { |
| 111 | autocomplete: "one-time-code", | 111 | autocomplete: "one-time-code", |
| 112 | }, | 112 | }, |
| ... | @@ -193,11 +193,11 @@ const schemaParamRules = ref({ | ... | @@ -193,11 +193,11 @@ const schemaParamRules = ref({ |
| 193 | staffName: [required(), minChineseCount()], | 193 | staffName: [required(), minChineseCount()], |
| 194 | mobileNo: [required(), phone()], | 194 | mobileNo: [required(), phone()], |
| 195 | funcPermissionTemplateJson: [{ type: 'array', required: true, trigger: 'change', message: "请选择功能权限" }], | 195 | funcPermissionTemplateJson: [{ type: 'array', required: true, trigger: 'change', message: "请选择功能权限" }], |
| 196 | password: [{ | 196 | password: (isEdit.value ? [] : [{ |
| 197 | required: true, | 197 | required: true, |
| 198 | message: "该项为必填项", | 198 | message: "该项为必填项", |
| 199 | trigger: "blur", | 199 | trigger: "blur", |
| 200 | }, | 200 | }]).concat([ |
| 201 | { | 201 | { |
| 202 | validator: (rule: any, value: any, callback: any) => { | 202 | validator: (rule: any, value: any, callback: any) => { |
| 203 | let getStorage = (key) => { | 203 | let getStorage = (key) => { |
| ... | @@ -219,7 +219,7 @@ const schemaParamRules = ref({ | ... | @@ -219,7 +219,7 @@ const schemaParamRules = ref({ |
| 219 | } | 219 | } |
| 220 | }, | 220 | }, |
| 221 | trigger: ['change', 'blur'] | 221 | trigger: ['change', 'blur'] |
| 222 | }], | 222 | }]) as any[], |
| 223 | }); | 223 | }); |
| 224 | 224 | ||
| 225 | // 页面按钮配置 | 225 | // 页面按钮配置 | ... | ... |
-
Please register or sign in to post a comment