shuishen
2023-02-11 b04e93372b970e10206b267d0b1bcc65d86163b8
现有设备统计数值错误解决
1 files modified
4 ■■■■ changed files
src/views/home/components/rightContainer.vue 4 ●●●● patch | view | raw | blame | history
src/views/home/components/rightContainer.vue
@@ -479,9 +479,9 @@
                    let faultData = { value: 0, name: '离线', color: '#ffd600', online: false, label: { color: oneColor[2] } }
                    res.data.forEach(item => {
                        this.regionTotal += item.count
                        this.regionTotal = Number(this.regionTotal) + Number(item.count)
                        normalData.value += item.online
                        normalData.value = Number(normalData.value) + Number(item.online)
                        for (let key in typeData) {
                            if (item.type == typeData[key]) {