From ece292c45aaa8aede587eaa715b27d9384bab4ff Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 27 Jun 2024 15:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statistics/AppCorpStatistics/AppCorpOverview.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue index 3171d108..c26f420b 100644 --- a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue +++ b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue @@ -122,7 +122,7 @@ export default { methods: { loadNode(node, resolve) { if (node.level == 0) { - this.instance.post(`/api/appcorp2/getCorpStatTotal`, null, {...this.globalParams}).then((res) => { + this.instance.post(`/api/appcorp2/getCorpStatTotal`, null, {params: this.globalParams}).then((res) => { if (res.data) { return resolve([{name: `全国 (${res.data})`}]); } @@ -134,7 +134,9 @@ export default { if (node.level == 1) { //全国 areaId = '' } - this.instance.post(`/api/appcorp2/getCorpStatByArea`, null, {areaId, ...this.globalParams}).then((res) => { + this.instance.post(`/api/appcorp2/getCorpStatByArea`, null, { + params: {areaId, ...this.globalParams} + }).then((res) => { if (res.data) { res.data.map((item) => { item.name = item.name + `(${item.total})` @@ -161,7 +163,7 @@ export default { this.getTableData() }, getInfo() { - this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`, null, {...this.globalParams}).then(res => { + this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`, null, {params: this.globalParams}).then(res => { if (res?.data) { this.info = res.data || {} } @@ -169,8 +171,7 @@ export default { }, getTableData() { this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}&name=${this.name}`, null, { - ...this.page, - ...this.globalParams + params: {...this.page, ...this.globalParams} }).then(res => { if (res?.data) { this.gropList = res.data.records