feat:chart 添加topolog图

This commit is contained in:
zhangyu
2021-06-29 14:10:41 +08:00
parent b1d1513e48
commit ae5dbcdf00
13 changed files with 3025 additions and 28 deletions

View File

@@ -106,7 +106,7 @@ export default {
}
},
mounted () {
const dataOption = getTopology(this.index).data
const dataOption = this.index == -2 ? getTopology(-1).data : getTopology(this.index).data
Object.keys(this.option).forEach(key => {
if (key === 'scale') {
this.scaleNum = (JSON.stringify(dataOption[key]) ? parseInt(dataOption[key] * 100) : this.scaleNum)