From 781c77fa51b6b126dc84eafa435bf16a329c9496 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 2 Jun 2022 16:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/notice/index.vue | 11 ----------- src/views/regulations/index.vue | 18 ++++-------------- src/views/requirements/requirement.vue | 14 -------------- 3 files changed, 4 insertions(+), 39 deletions(-) diff --git a/src/views/notice/index.vue b/src/views/notice/index.vue index 80b4b4b..a390eed 100644 --- a/src/views/notice/index.vue +++ b/src/views/notice/index.vue @@ -340,17 +340,6 @@ }, submitForm(formName) { 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) { diff --git a/src/views/regulations/index.vue b/src/views/regulations/index.vue index 6344438..2f24dfd 100644 --- a/src/views/regulations/index.vue +++ b/src/views/regulations/index.vue @@ -316,19 +316,7 @@ this.dialogFormVisible = true; }, submitForm(formName) { - 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; + var that = this; this.$refs[formName].validate((valid) => { if (valid) { if (that.form.id) { @@ -410,7 +398,9 @@ return this.$confirm(`确定移除 ${ file.name }?`); }, handlesuccess(response, file, fileList) { - let listUrl = []; + let listUrl = []; + console.log("fileList",fileList); + console.log("aafileList",this.fileList); for (var m of fileList) { if (m.response) listUrl.push({ diff --git a/src/views/requirements/requirement.vue b/src/views/requirements/requirement.vue index 308736e..a90ecf4 100644 --- a/src/views/requirements/requirement.vue +++ b/src/views/requirements/requirement.vue @@ -363,20 +363,6 @@ }, submitForm(formName) { 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; - console.log(this.fileList); - console.log(that.form); this.$refs[formName].validate((valid) => { if (valid) {