From 87e97d5644b5940ccf47f967b5413413ede492f9 Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Fri, 19 Dec 2025 15:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A4=A7=E5=B1=8F-=E6=80=BB?= =?UTF-8?q?=E8=A7=88=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/screen/gobal.ts | 13 +++++++++---- src/views/datav/Global.vue | 8 ++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/api/screen/gobal.ts b/src/api/screen/gobal.ts index c369f19..68e4b38 100644 --- a/src/api/screen/gobal.ts +++ b/src/api/screen/gobal.ts @@ -9,13 +9,18 @@ import request from "@/api/request"; /* * 获取信息大屏统计数据 */ -export function getAllGlobalCount(times) { - return request.get({ - url: `/datav/dataGlobalScreen/getAllGlobalCount?beginTime=${times[0]}&endTime=${times[1]}` +// export function getAllGlobalCount(times) { +// return request.get({ +// url: `/datav/dataGlobalScreen/getAllGlobalCount?beginTime=${times[0]}&endTime=${times[1]}` +// }); +// } +export function getAllGlobalCount(body) { + return request.post({ + url: `/datav/dataGlobalScreen/getAllGlobalCount`, + body }); } - /** * 获取问题趋势数据 */ diff --git a/src/views/datav/Global.vue b/src/views/datav/Global.vue index 9888f72..ba2dad6 100644 --- a/src/views/datav/Global.vue +++ b/src/views/datav/Global.vue @@ -453,8 +453,12 @@ const getBusinessRateData = async (timeValue = time.value) => { ywlxPieOption.value.series[0].data = res.ywzblist; }; const getAllGlobalCountData = async (timeValue = time.value) => { - const res = await getAllGlobalCount(timeValue); - overview.value = res.overview; + const body = { + beginTime: time.value[0], + endTime: time.value[1] + } + const res = await getAllGlobalCount(body); + overview.value = res.overview; }; const getGlobalMapData = async (timeValue = time.value) => { const body = {