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) {