瀏覽代碼

禅道bug处理

master
suyanyan 1 月之前
父節點
當前提交
b6386e988d
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. +1
    -2
      SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue
  2. +1
    -2
      SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue

+ 1
- 2
SafeCampus.WEB/src/views/userManage/keyPersonnel/components/form/index.vue 查看文件

@@ -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();


+ 1
- 2
SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue 查看文件

@@ -44,8 +44,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();


Loading…
取消
儲存