|
|
|
|
@ -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", () => { |
|
|
|
|
|