forked from integrated_whb/integrated_whb_vue
BUG优化 人员类型不显示
parent
ad35c2cf4c
commit
6c6086a63d
|
@ -741,14 +741,16 @@ const router = useRouter();
|
|||
const { USER_ID } = route.query;
|
||||
const fnHasEmail = async (rule, value, callback) => {
|
||||
if (value) {
|
||||
try {
|
||||
await getVerifyDuplicateEmail({
|
||||
EMAIL: value,
|
||||
PHONE: data.form.PHONE,
|
||||
});
|
||||
callback();
|
||||
} catch {
|
||||
callback(new Error("邮箱重复"));
|
||||
const result = await getVerifyDuplicateEmail({
|
||||
EMAIL: value,
|
||||
PHONE: data.form.PHONE
|
||||
});
|
||||
if(USER_ID) {
|
||||
if(result.pd) {
|
||||
if(result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) {
|
||||
callback();
|
||||
}else callback(new Error("邮箱重复"))
|
||||
}else callback();
|
||||
}
|
||||
} else {
|
||||
callback();
|
||||
|
|
Loading…
Reference in New Issue