Browse Source

首页大屏-总览数据查询重构

master
buaixuexideshitongxue 2 months ago
parent
commit
87e97d5644
  1. 13
      src/api/screen/gobal.ts
  2. 6
      src/views/datav/Global.vue

13
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
});
}
/**
*
*/

6
src/views/datav/Global.vue

@ -453,7 +453,11 @@ const getBusinessRateData = async (timeValue = time.value) => {
ywlxPieOption.value.series[0].data = res.ywzblist;
};
const getAllGlobalCountData = async (timeValue = time.value) => {
const res = await getAllGlobalCount(timeValue);
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) => {

Loading…
Cancel
Save