From 8b818e82b47421328c03acf70c832a7b4e7ad2d6 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 21 Apr 2023 10:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fengdu/app/AppIntegratingAudit/components/Detail.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/project/fengdu/app/AppIntegratingAudit/components/Detail.vue b/project/fengdu/app/AppIntegratingAudit/components/Detail.vue index 665dc79b..cfbdb3e8 100644 --- a/project/fengdu/app/AppIntegratingAudit/components/Detail.vue +++ b/project/fengdu/app/AppIntegratingAudit/components/Detail.vue @@ -133,7 +133,7 @@ auditStatus: '' }, eventForm: { - files: [], + files: null, images: [], videos: [], content: '', @@ -188,12 +188,16 @@ }, onEventConfirm () { + if ((this.eventForm.images.length + this.eventForm.videos.length) > 9) { + return this.$message.error('图片和视频不得超过9个') + } else { + this.eventForm.files = [...this.eventForm.images,...this.eventForm.videos] + } this.$refs.eventForm.validate((valid) => { if (valid) { this.instance.post(`/app/appintegraluserapply/updateByGirdMember`, { ...this.eventForm, id: this.params.id, - files: [...this.eventForm.images, this.eventForm.videos] }).then(res => { if (res.code == 0) { this.$message.success('编辑成功!')