fix:project-alert列显示悬浮 刷新 topo图的问题
This commit is contained in:
@@ -551,7 +551,7 @@ export default {
|
|||||||
deep: true,
|
deep: true,
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler (n, o) {
|
handler (n, o) {
|
||||||
if (n && n.id && n.id !== o.id) {
|
if (n && n.id) {
|
||||||
// if (getTopology(this.topologyIndex)) {
|
// if (getTopology(this.topologyIndex)) {
|
||||||
// getTopology(this.topologyIndex).destroy()
|
// getTopology(this.topologyIndex).destroy()
|
||||||
// setTopology(this.topologyIndex, null)
|
// setTopology(this.topologyIndex, null)
|
||||||
|
|||||||
@@ -108,7 +108,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import table from '@/components/common/mixin/table'
|
import table from '@/components/common/mixin/table'
|
||||||
import alertDaysInfo from '@/components/common/alert/alertDaysInfo'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'projectTable',
|
name: 'projectTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
@@ -156,7 +155,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeProjectTopo (project) {
|
changeProjectTopo (project) {
|
||||||
this.$store.commit('currentProjectChange', project)
|
this.$store.commit('currentProjectChange', JSON.parse(JSON.stringify(project)))
|
||||||
},
|
},
|
||||||
jumpModule (row) {
|
jumpModule (row) {
|
||||||
localStorage.setItem('moduleProjectId', JSON.stringify([row.id, row.name]))
|
localStorage.setItem('moduleProjectId', JSON.stringify([row.id, row.name]))
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (!this.$store.state.currentProject.id) {
|
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.tableData = response.data.list
|
||||||
this.pageObj.total = response.data.total
|
this.pageObj.total = response.data.total
|
||||||
|
|||||||
Reference in New Issue
Block a user