335f847f by lihua

密码的验证

1 parent 9cb3d0dc
......@@ -106,7 +106,7 @@ const schemaParam1 = ref([
field: 'password',
default: '',
clearable: true,
required: true,
required: !isEdit.value,
autocompleteSetting: {
autocomplete: "one-time-code",
},
......@@ -193,11 +193,11 @@ const schemaParamRules = ref({
staffName: [required(), minChineseCount()],
mobileNo: [required(), phone()],
funcPermissionTemplateJson: [{ type: 'array', required: true, trigger: 'change', message: "请选择功能权限" }],
password: [{
password: (isEdit.value ? [] : [{
required: true,
message: "该项为必填项",
trigger: "blur",
},
}]).concat([
{
validator: (rule: any, value: any, callback: any) => {
let getStorage = (key) => {
......@@ -219,7 +219,7 @@ const schemaParamRules = ref({
}
},
trigger: ['change', 'blur']
}],
}]) as any[],
});
// 页面按钮配置
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!