Browse Source

fix:优化大屏

feature/tsjb-1.0
pengwei 1 year ago
parent
commit
de83d1b4cb
  1. 16
      src/views/datav/CaseVerif.vue
  2. 34
      src/views/datav/Lmgz.vue
  3. 31
      src/views/datav/SceneInsp.vue
  4. 12
      src/views/datav/VideoInsp.vue

16
src/views/datav/CaseVerif.vue

@ -577,16 +577,16 @@ const getCaseSourceRateAndDealSituationData = async (timeValue) => {
// tzcloption.value.series[0].data = res.dzclList; // tzcloption.value.series[0].data = res.dzclList;
// } // }
function getData() { async function getData() {
getCaseVerificationRankData(time.value); await getCaseVerificationRankData(time.value);
// getCaseProblemPropertyData(time.value) // getCaseProblemPropertyData(time.value)
getCaseVerificationCountData(time.value); await getCaseVerificationCountData(time.value);
getCaseVerificationMapData(time.value); await getCaseVerificationMapData(time.value);
getCaseVerificationTrendData(selectedYear.value); await getCaseVerificationTrendData(selectedYear.value);
getCaseSourceRateAndDealSituationData(time.value); await getCaseSourceRateAndDealSituationData(time.value);
// getConfinementAndPauseData(time.value); // getConfinementAndPauseData(time.value);
getCaseTypeFun(time.value) await getCaseTypeFun(time.value)
getConfinementBarFun(time.value) await getConfinementBarFun(time.value)
} }
// endregion // endregion

34
src/views/datav/Lmgz.vue

@ -424,22 +424,24 @@ watch(time, () => {
},{deep:true}); },{deep:true});
onMounted(() => { onMounted(() => {
getTotalData();//数量统计 /total/statistics Promise.all([
getAreaRiskData(selectedMetric.value); // 【分县市局 高业务量】 getTotalData(),//数量统计 /total/statistics
getAreaNegativeData(selectedMetric.value);// 分县 /area/negative/statistics 【分县市局 中业务量】 getAreaRiskData(selectedMetric.value),// 【分县市局 高业务量】
getAreaRateData(selectedMetric.value);// /area/rate/statistics 【分县市局 低业务量】 getAreaNegativeData(selectedMetric.value),// 分县 /area/negative/statistics 【分县市局 中业务量】
getPCSRiskData(selectedMetricPCS.value);//分机构统计风险分 派出所 /risk/org/statistics 【派出所 高业务量】 getAreaRateData(selectedMetric.value),// /area/rate/statistics 【分县市局 低业务量】
getOrgNegativeData(selectedMetricPCS.value);// 派出所 /org/negative/statistics 【派出所 中业务量】 getPCSRiskData(selectedMetricPCS.value),//分机构统计风险分 派出所 /risk/org/statistics 【派出所 高业务量】
getOrgRateData(selectedMetricPCS.value);// 派出所 /org/rate/statistics 【派出所 低业务量】 getOrgNegativeData(selectedMetricPCS.value),// 派出所 /org/negative/statistics 【派出所 中业务量】
getCarRiskData(selectedMetricJJDD.value);//分机构统计风险分 交警大队 【交警大队 高业务量】 getOrgRateData(selectedMetricPCS.value),// 派出所 /org/rate/statistics 【派出所 低业务量】
getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics 【交警大队 中业务量】 getCarRiskData(selectedMetricJJDD.value),//分机构统计风险分 交警大队 【交警大队 高业务量】
getCarOrgRateData(selectedMetricJJDD.value);// 交警人均率 /org/car/rate/statistics 【交警大队 低业务量】 getCarOrgNegativeData(selectedMetricJJDD.value),// /org/car/negative/statistics 【交警大队 中业务量】
getLeaderNegativeData(selectedMetricLD.value);// 【领导 问题数】 getCarOrgRateData(selectedMetricJJDD.value),// 交警人均率 /org/car/rate/statistics 【交警大队 低业务量】
getLeaderRiskData(selectedMetricLD.value);// 【领导 问题涉及人数】 getLeaderNegativeData(selectedMetricLD.value),// 【领导 问题数】
getPoliceANegativeData(selectedMetricMJ.value);// 【民警 问题数】 getLeaderRiskData(selectedMetricLD.value),// 【领导 问题涉及人数】
getPoliceARiskData(selectedMetricMJ.value);// 【民警 问题发生率】 getPoliceANegativeData(selectedMetricMJ.value),// 【民警 问题数】
getPoliceBNegativeData(selectedMetricXFJ.value);//【辅警/协警 问题数】 getPoliceARiskData(selectedMetricMJ.value),// 【民警 问题发生率】
getPoliceBRiskData(selectedMetricXFJ.value);//【辅警/协警 问题发生率】 getPoliceBNegativeData(selectedMetricXFJ.value),//【辅警/协警 问题数】
getPoliceBRiskData(selectedMetricXFJ.value)//【辅警/协警 问题发生率】
])
}); });
const getTotalData = async () => { const getTotalData = async () => {

31
src/views/datav/SceneInsp.vue

@ -1029,16 +1029,14 @@ const getWorkDynamicsData = async () => {
messages.value = colorNewsVoList; messages.value = colorNewsVoList;
}; };
const getData = () => { const getData =async () => {
new Promise.all([ await getChangedRankData(),
getChangedRankData(), await getSupervisionNotifyMapData(),
getProblemTypeRateData(), await getProblemTypeRateData(),
getSupervisionNotifyCountData(), await getSupervisionNotifyCountData(),
getSupervisionNotifyMapData(), await getSupervisionTrendData(),
getSupervisionTrendData(), await getYellowBetDrugData(),
getYellowBetDrugData(), await getWorkDynamicsData()
getWorkDynamicsData()
])
}; };
// endregion // endregion
@ -1111,15 +1109,17 @@ const sceneInspTrendAnimation = () => {
sceneInspTrendIntervalId = setInterval(sceneInspTrendAnimation, 2000); sceneInspTrendIntervalId = setInterval(sceneInspTrendAnimation, 2000);
// 专项督察问题排行动画 // 专项督察问题排行动画
const sceneInspZxdxRankAnimation = () => { const sceneInspZxdxRankAnimation = () => {
const dictItem = dictData.find( if(dictData.value){
const dictItem = dictData.value.find(
(item) => (item.dictValue === zxdcProRankTab.value) (item) => (item.dictValue === zxdcProRankTab.value)
); );
if (dictItem) { if (dictItem) {
const index = dictData.indexOf(dictItem); const index = dictData.value.indexOf(dictItem);
if (index === dictData.length - 1) { if (index === dictData.value.length - 1) {
zxdcProRankTab.value = dictData[0].dictValue; zxdcProRankTab.value = dictData[0]?.dictValue;
} else { } else {
zxdcProRankTab.value = dictData[index + 1].dictValue; zxdcProRankTab.value = dictData[index + 1]?.dictValue;
}
} }
} }
}; };
@ -1148,6 +1148,7 @@ sceneWorkDynamicsIntervalId = setInterval(sceneWorkDynamicsAnimation, 50);
// region 事件 // region 事件
watch(time, () => { watch(time, () => {
getData(); getData();
}); });
onMounted(() => { onMounted(() => {

12
src/views/datav/VideoInsp.vue

@ -518,13 +518,11 @@ const getVideoSuperviseProblemTypeRateData = async (timeValue) => {
}; };
const getData = async () => { const getData = async () => {
await Promise.all([ await getVideoSuperviseProblemRankData(time.value),
getVideoSuperviseProblemRankData(time.value), await getAllVideoSuperviseCountData(time.value),
getAllVideoSuperviseCountData(time.value), await getVideoSuperviseMapData(time.value),
getVideoSuperviseMapData(time.value), await getVideoSuperviseTrendData(selectedYear.value),
getVideoSuperviseTrendData(selectedYear.value), await getVideoSuperviseProblemTypeRateData(time.value)
getVideoSuperviseProblemTypeRateData(time.value),
])
}; };
// endregion // endregion

Loading…
Cancel
Save