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