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 { USER_ID } = route.query;
|
||||||
const fnHasEmail = async (rule, value, callback) => {
|
const fnHasEmail = async (rule, value, callback) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
try {
|
const result = await getVerifyDuplicateEmail({
|
||||||
await getVerifyDuplicateEmail({
|
|
||||||
EMAIL: value,
|
EMAIL: value,
|
||||||
PHONE: data.form.PHONE,
|
PHONE: data.form.PHONE
|
||||||
});
|
});
|
||||||
|
if(USER_ID) {
|
||||||
|
if(result.pd) {
|
||||||
|
if(result.pd.EMAIL === value && result.pd.PHONE === data.form.PHONE) {
|
||||||
callback();
|
callback();
|
||||||
} catch {
|
}else callback(new Error("邮箱重复"))
|
||||||
callback(new Error("邮箱重复"));
|
}else callback();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
|
|
Loading…
Reference in New Issue