From 2ba0deb04c7483c0bec2d8bc978f2588cd5b51ec Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 1 Jun 2022 09:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/index.vue | 2 ++ src/views/notice/index.vue | 14 +++++++++++++- src/views/regulations/index.vue | 14 +++++++++++++- src/views/requirements/requirement.vue | 14 +++++++++++++- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/views/activity/index.vue b/src/views/activity/index.vue index b214b85..184d762 100644 --- a/src/views/activity/index.vue +++ b/src/views/activity/index.vue @@ -221,7 +221,9 @@ formLabelWidth: "120px", clientHeight: 0, form: { + cover:"", type_id:"", + area_id:"", from_id:"", province:"", city:"", diff --git a/src/views/notice/index.vue b/src/views/notice/index.vue index 0133aa1..fc210b0 100644 --- a/src/views/notice/index.vue +++ b/src/views/notice/index.vue @@ -298,7 +298,19 @@ this.dialogFormVisible = true; }, submitForm(formName) { - var that = this; + var that = this; + let listUrl = []; + for (var m of that.fileList) { + if (m.response) + listUrl.push({ + "upload_id": m.response.id + }); + else + listUrl.push({ + "upload_id": m.upload_id + }); + } + that.form.files_list = listUrl; this.$refs[formName].validate((valid) => { if (valid) { if (that.form.id) { diff --git a/src/views/regulations/index.vue b/src/views/regulations/index.vue index 7aa94be..c669d7e 100644 --- a/src/views/regulations/index.vue +++ b/src/views/regulations/index.vue @@ -294,7 +294,19 @@ this.dialogFormVisible = true; }, submitForm(formName) { - var that = this; + var that = this; + let listUrl = []; + for (var m of that.fileList) { + if (m.response) + listUrl.push({ + "upload_id": m.response.id + }); + else + listUrl.push({ + "upload_id": m.upload_id + }); + } + that.form.files_list = listUrl; this.$refs[formName].validate((valid) => { if (valid) { if (that.form.id) { diff --git a/src/views/requirements/requirement.vue b/src/views/requirements/requirement.vue index 6ecb9b4..a08420b 100644 --- a/src/views/requirements/requirement.vue +++ b/src/views/requirements/requirement.vue @@ -340,7 +340,19 @@ this.dialogFormVisible = true; }, submitForm(formName) { - var that = this; + var that = this; + let listUrl = []; + for (var m of that.fileList) { + if (m.response) + listUrl.push({ + "upload_id": m.response.id + }); + else + listUrl.push({ + "upload_id": m.upload_id + }); + } + that.form.files_list = listUrl; this.$refs[formName].validate((valid) => { if (valid) { if (that.form.id) {