fix:aseet 添加关系图(20%)

This commit is contained in:
zhangyu
2022-03-17 16:42:56 +08:00
parent 291562452a
commit 430b8b1dce
15 changed files with 1699 additions and 17 deletions

View File

@@ -2,6 +2,8 @@ import bus from '@/libs/bus'
import { tableSet } from '@/components/common/js/tools'
import { fromRoute } from '@/components/common/js/constants'
import routerPathParams from '@/components/common/mixin/routerPathParams'
import defaultData from '@/components/chart/defaultLineData'
import lodash from 'lodash'
export default {
mixins: [routerPathParams],
props: {
@@ -305,6 +307,15 @@ export default {
}
this.silenceBoxShow = true
},
topology (row, type) {
const chartInfo = lodash.cloneDeep(defaultData)
chartInfo.id = row.id
chartInfo.type = 'topologyLink'
chartInfo.linkType = type
chartInfo.datasource = 'topology'
chartInfo.name = '关系图'
this.$store.dispatch('showTopology', chartInfo)
},
closeDialog () {
this.silenceBoxShow = false
},