fix:project-alert列显示悬浮 刷新 topo图的问题

This commit is contained in:
zhangyu
2022-02-25 17:06:47 +08:00
parent 68ac416c3e
commit f90bf99b45
3 changed files with 3 additions and 4 deletions

View File

@@ -551,7 +551,7 @@ export default {
deep: true,
immediate: true,
handler (n, o) {
if (n && n.id && n.id !== o.id) {
if (n && n.id) {
// if (getTopology(this.topologyIndex)) {
// getTopology(this.topologyIndex).destroy()
// setTopology(this.topologyIndex, null)

View File

@@ -108,7 +108,6 @@
<script>
import table from '@/components/common/mixin/table'
import alertDaysInfo from '@/components/common/alert/alertDaysInfo'
export default {
name: 'projectTable',
mixins: [table],
@@ -156,7 +155,7 @@ export default {
},
methods: {
changeProjectTopo (project) {
this.$store.commit('currentProjectChange', project)
this.$store.commit('currentProjectChange', JSON.parse(JSON.stringify(project)))
},
jumpModule (row) {
localStorage.setItem('moduleProjectId', JSON.stringify([row.id, row.name]))

View File

@@ -164,7 +164,7 @@ export default {
})
}
if (!this.$store.state.currentProject.id) {
this.$store.commit('currentProjectChange', response.data.list[0])
this.$store.commit('currentProjectChange', JSON.parse(JSON.stringify(response.data.list[0])))
}
this.tableData = response.data.list
this.pageObj.total = response.data.total