Browse Source

大屏首页统计数字相关完善

master
yxq 1 month ago
parent
commit
5590ff776d
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      SafeCampus.WEB/src/views/screen/component/index/peopeleNum.vue
  2. +1
    -0
      SafeCampus.WEB/src/views/screen/component/index/todayNotice.vue

+ 1
- 0
SafeCampus.WEB/src/views/screen/component/index/peopeleNum.vue View File

@@ -239,6 +239,7 @@ const getCharts2 = data => {
// 设备统计 // 设备统计
const count = ref(0); const count = ref(0);
const getCharts3 = () => { const getCharts3 = () => {
count.value = 0;
const chart = echarts.init(chart3.value); const chart = echarts.init(chart3.value);
let data = props.screenData.camera || []; let data = props.screenData.camera || [];
let xArr = data.map(e => e.cameraInfos.length); let xArr = data.map(e => e.cameraInfos.length);


+ 1
- 0
SafeCampus.WEB/src/views/screen/component/index/todayNotice.vue View File

@@ -82,6 +82,7 @@ const getData = () => {
typeStatisti.value = props.screenData.alarmStatisti.typeStatisti.sort((a, b) => { typeStatisti.value = props.screenData.alarmStatisti.typeStatisti.sort((a, b) => {
return b.value - a.value; return b.value - a.value;
}); });
typeStatistiCount.value = 0;
typeStatisti.value.forEach(e => { typeStatisti.value.forEach(e => {
typeStatistiCount.value += e.value; typeStatistiCount.value += e.value;
}); });


Loading…
Cancel
Save