Browse Source

二级首页大屏--总览数据+问题机构排名

master
buaixuexideshitongxue 2 months ago
parent
commit
37236ab1a2
  1. 14
      src/api/screen/subScreen/subOneGlobal.ts
  2. 2
      src/components/data/gab-import.vue
  3. 14
      src/views/datav/subonedatav/SubOneGlobal.vue

14
src/api/screen/subScreen/subOneGlobal.ts

@ -7,9 +7,10 @@ export function getSubOneStreetMap(departId) {
});
}
export function getSubOneOrganizationRank(departId, times) {
return request.get({
url: `/datav/sub1/getSubOneOrganizationRank?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
export function getSubOneOrganizationRank(body) {
return request.post({
url: `/datav/sub1/getSubOneOrganizationRank`,
body
});
}
@ -20,9 +21,10 @@ export function getSubOneBusinessRate(departId, times) {
}
export function getSubOneAllCount(departId, times) {
return request.get({
url: `/datav/sub1/getSubOneAllCount?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
export function getSubOneAllCount(body) {
return request.post({
url: `/datav/sub1/getSubOneAllCount`,
body
});
}

2
src/components/data/gab-import.vue

@ -310,7 +310,7 @@ const onPreviewChange = (index) => {
};
const imageList = [
{
url: "/imgs/gabxftp.jpg",
url: "/v2/imgs/gabxftp.jpg",
},
];
const srcList = imageList.map(i => i.url);

14
src/views/datav/subonedatav/SubOneGlobal.vue

@ -442,7 +442,12 @@ const getMapJSON = async (departId = currentDepartId) => {
subOneGlobalMap.value.chart.setOption(option.value);
}
const getOrganizationProRankData = async (departId = currentDepartId, timeValue = time.value) => {
const res = await getSubOneOrganizationRank(departId, timeValue);
const body={
departId: currentDepartId,
beginTime: time.value[0],
endTime: time.value[1]
}
const res = await getSubOneOrganizationRank(body);
fxsjlist.value = res.fxsjlist;
jsdwlist.value = res.jsdwlist;
}
@ -451,7 +456,12 @@ const getBusinessRateData = async (departId = currentDepartId, timeValue = time.
ywlxPieOption.value.series[0].data = res.ywzblist;
}
const getAllGlobalCountData = async (departId = currentDepartId, timeValue = time.value) => {
const res = await getSubOneAllCount(departId, timeValue);
const body={
departId: currentDepartId,
beginTime: time.value[0],
endTime: time.value[1]
}
const res = await getSubOneAllCount(body);
overviewData.value = res.overview;
}
const getSubOneGlobalMapIcon = async (departId = currentDepartId, timeValue = time.value) => {

Loading…
Cancel
Save