diff --git a/SafeCampus.WEB/src/views/screen/component/index/peopeleNum.vue b/SafeCampus.WEB/src/views/screen/component/index/peopeleNum.vue index 202fa47..4ba7d67 100644 --- a/SafeCampus.WEB/src/views/screen/component/index/peopeleNum.vue +++ b/SafeCampus.WEB/src/views/screen/component/index/peopeleNum.vue @@ -239,6 +239,7 @@ const getCharts2 = data => { // 设备统计 const count = ref(0); const getCharts3 = () => { + count.value = 0; const chart = echarts.init(chart3.value); let data = props.screenData.camera || []; let xArr = data.map(e => e.cameraInfos.length); diff --git a/SafeCampus.WEB/src/views/screen/component/index/todayNotice.vue b/SafeCampus.WEB/src/views/screen/component/index/todayNotice.vue index 22211ab..af84e82 100644 --- a/SafeCampus.WEB/src/views/screen/component/index/todayNotice.vue +++ b/SafeCampus.WEB/src/views/screen/component/index/todayNotice.vue @@ -82,6 +82,7 @@ const getData = () => { typeStatisti.value = props.screenData.alarmStatisti.typeStatisti.sort((a, b) => { return b.value - a.value; }); + typeStatistiCount.value = 0; typeStatisti.value.forEach(e => { typeStatistiCount.value += e.value; });