|
|
@@ -136,7 +136,7 @@ const getTree = async () => {
|
|
|
label: monthItem.label,
|
|
|
children: data.map(item => {
|
|
|
return {
|
|
|
- label: item.collectorid || '未知电表',
|
|
|
+ label: item.collectorid + '【' + item.description + '】',
|
|
|
mid: item.mid,
|
|
|
rq: rqValue
|
|
|
}
|
|
|
@@ -161,7 +161,7 @@ const hztableData = ref([])
|
|
|
const handleNodeClick = async (node) => {
|
|
|
console.log('点击节点:', node)
|
|
|
if (!node.children) {
|
|
|
- const res = await StatisticEleDay({mid: node.mid,collectorid: node.label,riqi: node.rq})
|
|
|
+ const res = await StatisticEleDay({mid: node.mid,collectorid: node.label.split('【')[0],riqi: node.rq})
|
|
|
console.log('获取数据:', res)
|
|
|
if(res.code === 0){
|
|
|
hztableData.value = res.data
|