From e7991254fab9ba2d940f51eaefc55c359127c517 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 24 Jun 2024 16:50:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCorpStatistics/AppCorpOverview.vue | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue index 53ca6ee5..01f50390 100644 --- a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue +++ b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue @@ -116,7 +116,7 @@ export default { methods: { loadNode(node, resolve) { if (node.level == 0) { - this.instance.post(`/api/appCorpStat/getCorpStatTotal`).then((res) => { + this.instance.post(`/api/appcorp2/getCorpStatTotal`).then((res) => { if (res.data) { return resolve([{name: `全国 (${res.data})`}]); } @@ -128,11 +128,11 @@ export default { if (node.level == 1) { //全国 areaId = '' } - this.instance.post(`/api/appCorpStat/getCorpStatByArea?areaId=${areaId}`).then((res) => { + this.instance.post(`/api/appcorp2/getCorpStatByArea?areaId=${areaId}`).then((res) => { if (res.data) { res.data.map((item) => { item.name = item.name + `(${item.total})` - item.leaf = !/0{8}$/.test(item.id) + item.leaf = !/0{10}$/.test(item.id) }) resolve(res.data) } @@ -159,21 +159,18 @@ export default { }, getInfo() { - this.info = {} - this.instance.post(`/api/appCorpStat/getLatestInfo?areaId=${this.areaId}`).then(res => { - if (res.code === 0) { - this.info = res.data + this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`).then(res => { + if (res?.data) { + this.info = res.data || {} } }) }, getTableData() { - this.instance.post(`/api/appCorp/page?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => { - if (res.code === 0) { - if (res.data) { - this.gropList = res.data.records - this.page.total = res.data.total - } + this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => { + if (res?.data) { + this.gropList = res.data.records + this.page.total = res.data.total } }) }, @@ -252,7 +249,6 @@ export default { gap: 16px; - .title { line-height: 60px; font-size: 18px;