使用全等判断 删除不需要的log

This commit is contained in:
白菜
2025-06-20 14:19:05 +08:00
parent 51a479923e
commit 48c93b3efd
6 changed files with 11 additions and 16 deletions

View File

@ -36,7 +36,7 @@
label="状态"
>
<template slot-scope="scope">
<span class="warning-status">{{ scope.row.status == 0 ? '中断':'todo不是0是什么告警'}}</span>
<span class="warning-status">{{ scope.row.status === 0 ? '中断':'todo不是0是什么告警'}}</span>
</template>
</el-table-column>
<el-table-column
@ -96,10 +96,9 @@ export default {
methods:{
getData(siteId){
getDzjkHomeView(siteId).then(response => {
console.log(`获取单站监控id=${siteId}的基本信息`,response)
const data = response.data || {}
this.sjglData.forEach(item=>{
item.value = (data[item.attr] || data[item.attr] == 0) ? data[item.attr] : '-'
item.value = (data[item.attr] || data[item.attr] === 0) ? data[item.attr] : '-'
})
this.tableData = data?.siteMonitorHomeAlarmVo || []
this.$refs.nllzChart.setOption(data)