Browse Source

部门管理,用户信息的工号字段去掉四位数字限制

hbchen 1 year ago
parent
commit
0fbc8f97cc
1 changed files with 13 additions and 13 deletions
  1. 13 13
      src/views/system_manage/components/addUserDialog.vue

+ 13 - 13
src/views/system_manage/components/addUserDialog.vue

@@ -147,19 +147,19 @@ import {patternEmail,isMobileNo,checkPassWord} from '@/utils/commonOptions'
                         }
                     }, trigger: 'blur'}],
                     depart:[{ required: true, message: '部门分组不能为空', trigger: 'change' }],
-                    employeeNumber:[{validator:(rule,value,callback)=>{
-                        if(!value){
-                            callback()
-                            return 
-                        }
-                        // 取消空格
-                        let tempValue = parseInt(value.replaceAll(' ',''))
-                        if(!tempValue || value.replaceAll(' ','').length!=4){
-                            callback(new Error('请输入四位数字'))
-                        }else{
-                            callback()
-                        }
-                    },trigger:'blur'}],
+                    // employeeNumber:[{validator:(rule,value,callback)=>{
+                    //     if(!value){
+                    //         callback()
+                    //         return 
+                    //     }
+                    //     // 取消空格
+                    //     let tempValue = parseInt(value.replaceAll(' ',''))
+                    //     if(!tempValue || value.replaceAll(' ','').length!=4){
+                    //         callback(new Error('请输入四位数字'))
+                    //     }else{
+                    //         callback()
+                    //     }
+                    // },trigger:'blur'}],
                     role:[{ required: true, message: '角色不能为空', trigger: 'change' }],
                 },
                 form_departProp:{