From e7991254fab9ba2d940f51eaefc55c359127c517 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 24 Jun 2024 16:50:05 +0800 Subject: [PATCH 1/6] =?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; From 18dd1937ced406e343dd4318fc51884bad04c24e Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 24 Jun 2024 17:01:50 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue index 01f50390..8463a4fc 100644 --- a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue +++ b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue @@ -98,7 +98,7 @@ export default { }, colConfigs() { return [ - {label: "企微名称", prop: "name", align: 'center', width: 250}, + {label: "企微名称", prop: "name", width: 250}, {label: "地区", prop: "areaName", align: 'center', width: 150}, {label: "地区编码", prop: "areaId", align: 'center', width: 150}, {label: "创建时间", prop: "createTime", align: 'center', width: 200}, From 5c29d7ca5d472253d6959bf478d3da6ce71d564a Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 24 Jun 2024 17:59:21 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCorpStatistics/AppCorpOverview.vue | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue index 8463a4fc..27d43cf3 100644 --- a/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue +++ b/project/oms/apps/statistics/AppCorpStatistics/AppCorpOverview.vue @@ -43,10 +43,10 @@ + @getList="getTableData" :col-configs="colConfigs" :dict="dict" height="calc(100% - 64px)"> @@ -60,9 +60,11 @@