From 15e9f9d760472112c1fa9ef077c0c9f7fdae038e Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 27 Jun 2024 09:18:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0aiEnable=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=83=85=E5=86=B5=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCorpStatistics/AppCorpOverview.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue index bd8f1b8e..f29c5b8d 100644 --- a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue +++ b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue @@ -107,6 +107,10 @@ export default { {label: 'CORP_ID', prop: "corpId"}, {slot: 'options'} ] + }, + globalParams: v => { + const {aiEnable} = v.$route.query + return {aiEnable} } }, mounted() { @@ -116,7 +120,7 @@ export default { methods: { loadNode(node, resolve) { if (node.level == 0) { - this.instance.post(`/api/appcorp2/getCorpStatTotal`).then((res) => { + this.instance.post(`/api/appcorp2/getCorpStatTotal`, null, {...this.globalParams}).then((res) => { if (res.data) { return resolve([{name: `全国 (${res.data})`}]); } @@ -128,7 +132,7 @@ export default { if (node.level == 1) { //全国 areaId = '' } - this.instance.post(`/api/appcorp2/getCorpStatByArea?areaId=${areaId}`).then((res) => { + this.instance.post(`/api/appcorp2/getCorpStatByArea`, null, {areaId, ...this.globalParams}).then((res) => { if (res.data) { res.data.map((item) => { item.name = item.name + `(${item.total})` @@ -155,14 +159,17 @@ export default { this.getTableData() }, getInfo() { - this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`).then(res => { + this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`, null, {...this.globalParams}).then(res => { if (res?.data) { this.info = res.data || {} } }) }, getTableData() { - this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => { + this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}&name=${this.name}`, null, { + ...this.page, + ...this.globalParams + }).then(res => { if (res?.data) { this.gropList = res.data.records this.page.total = res.data.total