feat: topo 重构 (80%)

This commit is contained in:
zhangyu
2023-02-21 19:05:49 +08:00
parent e468be83e1
commit 22b6043478
15 changed files with 662 additions and 147 deletions

View File

@@ -4,7 +4,7 @@ export default {
topoData: {},
querysArray: [],
meta2dType: '',
timeType: 1
params: {}
}
},
watch: {
@@ -22,11 +22,19 @@ export default {
if (res.data && res.data.topo) {
this.topoData = res.data.topo.topo || {}
this.querysArray = res.data.topo.elements || []
this.timeType = res.data.topo.timeType || 1
this.params = {
timeType: res.data.topo.timeType || 1,
unit: res.data.topo.unit || 1,
statistic: res.data.topo.statistic || 'last',
}
} else {
this.topoData = {}
this.querysArray = []
this.timeType = 1
this.params = {
timeType: 1,
unit: 1,
statistic: 'last'
}
}
})
}