From 1fc632f097640ae6cd929211ab5953d97b0e9afc Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 21 Apr 2023 10:23:55 +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 --- .../AppIntegratingAudit/components/Detail.vue | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/project/fengdu/app/AppIntegratingAudit/components/Detail.vue b/project/fengdu/app/AppIntegratingAudit/components/Detail.vue index 4e6b93e2..f93add86 100644 --- a/project/fengdu/app/AppIntegratingAudit/components/Detail.vue +++ b/project/fengdu/app/AppIntegratingAudit/components/Detail.vue @@ -36,11 +36,17 @@ - +
-
- - +
+ +
+
+ + +
+
+
@@ -78,13 +84,22 @@ - + + acceptType=".jpg,.png,.jpeg" + v-model="eventForm.images" + :limit="9"> + + + + @@ -112,6 +127,8 @@ }, eventForm: { files: [], + images: [], + video: [], content: '', applyIntegral: '' }, @@ -144,6 +161,8 @@ this.eventForm.content = res.data.content this.eventForm.applyIntegral = res.data.applyIntegral } + this.info.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.postfix.split('.')[1]))) + this.info.videos = res.data.files.filter(e => (['mp4', 'MOV'].includes(e.postfix.split('.')[1]))) } } }) @@ -166,7 +185,8 @@ if (valid) { this.instance.post(`/app/appintegraluserapply/updateByGirdMember`, { ...this.eventForm, - id: this.params.id + id: this.params.id, + files: [...this.eventForm.images, this.eventForm.videos] }).then(res => { if (res.code == 0) { this.$message.success('编辑成功!')