From 3aff83fdfd4cf53ee7096a848342be968267a341 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Wed, 8 Sep 2021 13:34:59 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E4=B8=9A=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BA=BA=E9=AA=8C=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/WorkingGroupMemberUnitModule.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue b/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue index aafb3cb..d875cd1 100644 --- a/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue +++ b/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue @@ -529,14 +529,18 @@ export default { * @param callback */ validateContact(rule, value, callback) { - const contactObj = this.form.getFieldsValue(['contactsIdOne', 'contactsIdTwo', 'contactsIdThree']) - const contactArr = Object.values(contactObj) - contactArr.filter(tt => tt !== undefined) - console.log(contactArr) - if (isRepeat(contactArr)) { - callback('请选择不同的企业联系人') - } else { + if (value) { + const contactObj = this.form.getFieldsValue(['contactsIdOne', 'contactsIdTwo', 'contactsIdThree']) + const contactArr = Object.values(contactObj) + contactArr.filter(tt => tt !== undefined) + console.log(contactArr) + if (isRepeat(contactArr)) { + callback('请选择不同的企业联系人') + } else { + callback() + } callback() + return } callback() }