fix:project-alert列显示悬浮 刷新 topo图的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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]))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user