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('编辑成功!')