Browse Source

fix:优化大屏

master
pengwei 1 month ago
parent
commit
d9de5bb103
  1. 21
      src/views/datav/CaseVerif.vue
  2. 2
      src/views/datav/Lmgz.vue
  3. 74
      src/views/datav/SceneInsp.vue
  4. 2
      src/views/datav/subonedatav/SubOneSceneInsp.vue

21
src/views/datav/CaseVerif.vue

@ -578,17 +578,16 @@ const getCaseSourceRateAndDealSituationData = async (timeValue) => {
// }
async function getData() {
Promise.all([
getCaseVerificationRankData(time.value),
// getCaseProblemPropertyData(time.value)
getCaseVerificationCountData(time.value),
getCaseVerificationMapData(time.value),
getCaseVerificationTrendData(selectedYear.value),
getCaseSourceRateAndDealSituationData(time.value),
// getConfinementAndPauseData(time.value);
getCaseTypeFun(time.value),
getConfinementBarFun(time.value)
])
getCaseVerificationRankData(time.value),
// getCaseProblemPropertyData(time.value)
getCaseVerificationCountData(time.value),
getCaseVerificationTrendData(selectedYear.value),
getCaseSourceRateAndDealSituationData(time.value),
// getConfinementAndPauseData(time.value);
getCaseTypeFun(time.value),
getConfinementBarFun(time.value),
getCaseVerificationMapData(time.value)
}
// endregion

2
src/views/datav/Lmgz.vue

@ -425,7 +425,7 @@ watch(time, () => {
onMounted(() => {
Promise.all([
getTotalData(),// /total/statistics
getTotalData(),// /total/statistics
getAreaRiskData(selectedMetric.value),//
getAreaNegativeData(selectedMetric.value),// /area/negative/statistics
getAreaRateData(selectedMetric.value),// /area/rate/statistics

74
src/views/datav/SceneInsp.vue

@ -969,8 +969,12 @@ const getSupervisionNotifyCountData = async () => {
const data = await getSupervisionNotifyCount(time.value);
overview.value = data
};
const getSupervisionNotifyMapData = async () => {
const res = await getSupervisionNotifyMap(time.value);
const mappedData = mapOrgNameMapping(
res.superviseTempMapVoList,
"totalPro"
@ -1030,15 +1034,13 @@ const getWorkDynamicsData = async () => {
};
const getData =async () => {
Promise.all([
getChangedRankData(),
getSupervisionNotifyMapData(),
getProblemTypeRateData(),
getSupervisionNotifyCountData(),
getSupervisionTrendData(),
getYellowBetDrugData(),
getWorkDynamicsData()
])
getChangedRankData();
getProblemTypeRateData();
getSupervisionNotifyCountData();
getSupervisionTrendData();
getYellowBetDrugData();
getWorkDynamicsData();
getSupervisionNotifyMapData()
};
// endregion
@ -1110,24 +1112,24 @@ const sceneInspTrendAnimation = () => {
};
sceneInspTrendIntervalId = setInterval(sceneInspTrendAnimation, 2000);
//
const sceneInspZxdxRankAnimation = () => {
if(dictData.value){
const dictItem = dictData.value.find(
(item) => (item.dictValue === zxdcProRankTab.value)
);
if (dictItem) {
const index = dictData.value.indexOf(dictItem);
if (index === dictData.value.length - 1) {
zxdcProRankTab.value = dictData[0]?.dictValue;
} else {
zxdcProRankTab.value = dictData[index + 1]?.dictValue;
}
}
}
};
// const sceneInspZxdxRankAnimation = () => {
// if(dictData.value){
// const dictItem = dictData.value.find(
// (item) => (item.dictValue === zxdcProRankTab.value)
// );
// if (dictItem != null) {
// const index = dictData.value.indexOf(dictItem);
// if (index === dictData.value.length - 1) {
// zxdcProRankTab.value = dictData[0]?.dictValue;
// } else {
// zxdcProRankTab.value = dictData[index + 1]?.dictValue;
// }
// }
// }
// };
onMounted(() => {
sceneInspZxdxIntervalId = setInterval(sceneInspZxdxRankAnimation, 5000);
// sceneInspZxdxIntervalId = setInterval(sceneInspZxdxRankAnimation, 5000);
});
//
@ -1154,7 +1156,7 @@ watch(time, () => {
getData();
});
onMounted(() => {
getData();
setupEventListeners();
});
const handleCommand = (year) => {
@ -1185,7 +1187,7 @@ const setupEventListeners = () => {
sceneProblemTypeRateAnimationStop();
sceneInspMapAnimationStop();
SceneInspTrendAnimationStop();
sceneInspZxdxRankAnimationStop();
// sceneInspZxdxRankAnimationStop();
sceneWorkDynamicsAnimationStop();
};
const sceneInspRcdxRankAnimationStop = () => {
@ -1255,15 +1257,15 @@ const SceneInspTrendAnimationStop = () => {
sceneInspTrendIntervalId = setInterval(sceneInspTrendAnimation, 2000);
});
};
const sceneInspZxdxRankAnimationStop = () => {
const temp = sceneInspZxdcProRankTabs.value?.$el;
temp.addEventListener("mouseenter", () => {
clearInterval(sceneInspZxdxIntervalId);
});
temp.addEventListener("mouseleave", () => {
clearInterval(sceneInspZxdxIntervalId);
});
};
// const sceneInspZxdxRankAnimationStop = () => {
// const temp = sceneInspZxdcProRankTabs.value?.$el;
// temp.addEventListener("mouseenter", () => {
// clearInterval(sceneInspZxdxIntervalId);
// });
// temp.addEventListener("mouseleave", () => {
// clearInterval(sceneInspZxdxIntervalId);
// });
// };
const sceneWorkDynamicsAnimationStop = () => {
const temp = sceneScrollbar.value?.$el;
temp.addEventListener("mouseenter", () => {

2
src/views/datav/subonedatav/SubOneSceneInsp.vue

@ -355,7 +355,7 @@
<el-table-column prop="reportName" label="督察报告名称"></el-table-column>
<el-table-column prop="crtTime" label="创建时间" >
<template #default="{row}">
{{ timeFormat(row.crtTime) }}
{{row.crtTime }}
</template>
</el-table-column>
<el-table-column prop="superviseNumber" label="督察问题数">

Loading…
Cancel
Save