From 6d6514b18449b4379ef71634c706af9f7ae89abd Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 12 Nov 2021 13:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=97=AF=E5=97=AF=E5=97=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/editResi.vue | 5 ++++- src/views/components/resiSearch.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index 1be440e7..cc12bf3b 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -680,8 +680,11 @@ export default { }, getGridList () { const { user } = this.$store.state + let purpose = 'query' + if (this.disabled) purpose = 'query' + else purpose = 'addorupdate' this.$http - .post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId }) + .post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose }) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index d286fee3..579c7c8b 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -455,7 +455,7 @@ export default { getGridList() { const { user } = this.$store.state this.$http - .post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId }) + .post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' }) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg)