|
@@ -163,19 +163,19 @@ import {patternEmail,isMobileNo,checkPassWord} from '@/utils/commonOptions';
|
|
}
|
|
}
|
|
}, trigger: 'blur'}],
|
|
}, trigger: 'blur'}],
|
|
depart:[{ required: true, message: this.$t('SystemManage.DepartManage.use_add_valid_msg08'), trigger: 'change' }],
|
|
depart:[{ required: true, message: this.$t('SystemManage.DepartManage.use_add_valid_msg08'), 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(this.$t('SystemManage.DepartManage.use_add_valid_msg09')))
|
|
|
|
- }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(this.$t('SystemManage.DepartManage.use_add_valid_msg09')))
|
|
|
|
+ // }else{
|
|
|
|
+ // callback()
|
|
|
|
+ // }
|
|
|
|
+ // },trigger:'blur'}],
|
|
role:[{ required: true, message: this.$t('SystemManage.DepartManage.use_add_valid_msg10'), trigger: 'change' }],
|
|
role:[{ required: true, message: this.$t('SystemManage.DepartManage.use_add_valid_msg10'), trigger: 'change' }],
|
|
}
|
|
}
|
|
},
|
|
},
|