|
@@ -386,7 +386,7 @@ export default {
|
|
|
},
|
|
|
getEvent() {
|
|
|
bus.$on('changeShow', res => {
|
|
|
- this.topologyParser.zoneLegendList.forEach(t => {
|
|
|
+ this.topologyParser && this.topologyParser.zoneLegendList.forEach(t => {
|
|
|
let id = t.data.GraphElementId
|
|
|
t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
})
|
|
@@ -402,11 +402,11 @@ export default {
|
|
|
// let id = t.data.GraphElementId
|
|
|
// t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
// })
|
|
|
- this.topologyParser.imageLegendList.forEach(t => {
|
|
|
+ this.topologyParser && this.topologyParser.imageLegendList.forEach(t => {
|
|
|
let id = t.data.GraphElementId
|
|
|
t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
})
|
|
|
- this.topologyParser.relationList.forEach(t => {
|
|
|
+ this.topologyParser && this.topologyParser.relationList.forEach(t => {
|
|
|
let id = t.data.GraphElementId || t.data.GraphElementID
|
|
|
t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
})
|