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 = {