设备列表、电价列表、综合搜索、图表详情优化

This commit is contained in:
白菜
2025-10-21 15:42:00 +08:00
parent 96e4f7874f
commit 5c150b0d26
5 changed files with 64 additions and 13 deletions

View File

@ -37,12 +37,12 @@
label="设备名称">
</el-table-column>
<el-table-column
prop="deviceType"
label="设备类">
prop="categoryName"
label="设备类">
</el-table-column>
<el-table-column
prop="communicationStatus"
label="通信状态">
label="在线状态">
<template slot-scope="scope">
<span>{{$store.state.ems.communicationStatusOptions[scope.row.communicationStatus]}}</span>
</template>
@ -251,14 +251,19 @@ export default {
//获取站点列表
getZdList(){
this.searchLoading=true
getAllSites().then(response => {
return getAllSites().then(response => {
this.siteList = response?.data || []
if(this.siteList.length>0) this.siteId = this.siteList[0].siteId
}).finally(() => {this.searchLoading=false})
}
},
mounted() {
this.onReset()
this.getZdList()
this.loading=true
this.siteId=''
this.pageNum =1//每次搜索从1开始搜索
this.getZdList().then(()=>{
this.getData()
})
}
}
</script>