From 00a9fc566638a77c551228fe84293d1d304758b5 Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Wed, 22 Sep 2021 10:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=85=A5=E5=BA=93,=E7=BB=8F?= =?UTF-8?q?=E7=90=86=E4=BA=BA=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step2.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index 997ffbe6a..c824fdf07 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -919,10 +919,9 @@ } }, getRule(){ - - if (this.formTongGuo.approvalOpinion === '0') { - this.rules.commentText[0].required = false; - this.$refs.formTongGuo.clearValidate('commentText') + if (this.formTongGuo.approvalOpinion === 0) { + this.rules.commentText[0].required = false; + this.$refs.formTongGuo.clearValidate('commentText') }else { this.rules.commentText[0].required = true; } @@ -1055,11 +1054,12 @@ this.handleSubmit() }, handle2(){ - this.formTongGuo.approvalOpinion = 0 - this.handleSubmit() + this.formTongGuo.approvalOpinion = 0 + this.handleSubmit() }, handleSubmit() { - const val= this.form.country; + this.getRule() + const val= this.form.country; if (val !== '' && val !== null && typeof (val) !== 'undefined') { if (val instanceof Array) { this.form.country = val.join(",");