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(",");