From 2c4a5cad4c52568f849f757e21bff96e236101a0 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 6 May 2022 21:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=9B=E7=9B=BE=E8=B0=83=E8=A7=A3=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/saas/AppConflictMediation/add.vue | 39 ++++++++++++++------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/saas/AppConflictMediation/add.vue b/src/saas/AppConflictMediation/add.vue index 8ea6f608..4a05a27d 100644 --- a/src/saas/AppConflictMediation/add.vue +++ b/src/saas/AppConflictMediation/add.vue @@ -62,7 +62,7 @@

上报网格

- @@ -168,6 +168,7 @@ export default { methods: { handleSelectGrid(v) { + this.form.girdId = v?.id this.form.girdName = v?.girdName || "" }, chooseAddress() { @@ -250,24 +251,24 @@ export default { this.flag = true this.$http - .post(`/app/appclapeventinfo/addOrUpdate?`, { - ...this.form, - files: this.form.files, - finishFiles: this.form.finishFiles, - groupName: this.dictList.filter((v) => v.value === this.form.groupId)[0].label, - eventStatus: this.form.opts == 0 ? '2' : '0', - }) - .then((res) => { - this.$u.toast('上报成功') - this.flag = false - if (res.code == 0) { - uni.$emit('update') - this.$forceUpdate() - setTimeout(() => { - uni.navigateBack() - }, 600) - } - }) + .post(`/app/appclapeventinfo/addOrUpdate?`, { + ...this.form, + files: this.form.files, + finishFiles: this.form.finishFiles, + groupName: this.dictList.filter((v) => v.value === this.form.groupId)[0].label, + eventStatus: this.form.opts == 0 ? '2' : '0', + }) + .then((res) => { + this.$u.toast('上报成功') + this.flag = false + if (res.code == 0) { + uni.$emit('update') + this.$forceUpdate() + setTimeout(() => { + uni.navigateBack() + }, 600) + } + }) }, }, }