From 209e772c0923096ab2d047738785ed732a5f0430 Mon Sep 17 00:00:00 2001 From: fanlin Date: Wed, 28 Jul 2021 17:44:35 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=85=A5=E5=BA=93=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BA=86=E9=99=84=E4=BB=B6=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=B6=EF=BC=8C=E5=86=8D=E6=AC=A1=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E4=BA=86=E4=B8=80=E4=B8=AA=E9=99=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=8E=EF=BC=8C=E6=9F=A5=E7=9C=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=99=84=E4=BB=B6=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomFormComponents/File.vue | 2 +- src/pages/processCenter/pages/creatProcess/bzrk/step2.vue | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/CustomFormComponents/File.vue b/src/components/CustomFormComponents/File.vue index 0a4ecebb4..322ac2238 100644 --- a/src/components/CustomFormComponents/File.vue +++ b/src/components/CustomFormComponents/File.vue @@ -255,7 +255,7 @@ export default { uploadSuccess(res, file, fileList) { if (res.ok) { // this.value += res.data.id + ',' - this.$emit('input', this.value + res.data.id + ',') + this.$emit('input', this.value ? this.value + ',' : this.value+ res.data.id + ',') this.$emit('success') this.$message({ message: '文件上传成功', diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index 7abdff57a..d26ffa3b0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -876,8 +876,11 @@ } }, getRule(){ - if (this.formTongGuo.approvalOpinion !== '1') { + if (this.formTongGuo.approvalOpinion === '0') { + this.rules.commentText.required = false this.$refs.formTongGuo.clearValidate('commentText') + } else { + this.rules.commentText.required = true } }, popoverHide (checkedIds, checkedData) {