|
|
@@ -43,8 +43,7 @@ const sysUserProps = reactive<FormProps.Base<SysUserPersonnel.SysUserPerInfo>>({ |
|
|
|
disabled: false |
|
|
|
}); |
|
|
|
const checkAgeNumber = (rule: any, value: any, callback: any) => { |
|
|
|
if (value === "") callback("请输入年龄"); |
|
|
|
if (value > 100 || value < 0) { |
|
|
|
if (value && (value > 100 || value <= 0)) { |
|
|
|
callback(new Error("请输入正确的年龄(年龄范围1-100岁)")); |
|
|
|
} else { |
|
|
|
return callback(); |
|
|
|