|
@@ -193,6 +193,15 @@ export default {
|
|
|
console.log(arr)
|
|
|
this.$store.commit('SETSCPZTABLE', arr)
|
|
|
}
|
|
|
+ if (data.Data[0].Elements.Nodes.length > 0) {
|
|
|
+ this.$store.commit('SETTYPENUM', '')
|
|
|
+ let Lengd = data.Data[0].Elements.Nodes
|
|
|
+ Lengd.forEach(el => {
|
|
|
+ if (el.Type == 'Image' && el.Num > 1) {
|
|
|
+ this.$store.commit('SETTYPENUM', el.Num)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
// 放到后边 $cookie graphId
|
|
|
this.$cookie.set('graphId', data.Data[0].ID, 3)
|
|
|
if (this.$cookie.get('graphId')) {
|
|
@@ -390,10 +399,11 @@ export default {
|
|
|
},
|
|
|
getEvent() {
|
|
|
bus.$on('changeShow', res => {
|
|
|
- this.topologyParser && this.topologyParser.zoneLegendList.forEach(t => {
|
|
|
- let id = t.data.GraphElementId
|
|
|
- t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
- })
|
|
|
+ this.topologyParser &&
|
|
|
+ this.topologyParser.zoneLegendList.forEach(t => {
|
|
|
+ let id = t.data.GraphElementId
|
|
|
+ t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ })
|
|
|
// this.topologyParser.textMarkerList.forEach(t => {
|
|
|
// let id = t.data.GraphElementId
|
|
|
// t.maskFlag = !(res.indexOf(id) > -1)
|
|
@@ -406,14 +416,16 @@ export default {
|
|
|
// let id = t.data.GraphElementId
|
|
|
// t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
// })
|
|
|
- this.topologyParser && this.topologyParser.imageLegendList.forEach(t => {
|
|
|
- let id = t.data.GraphElementId
|
|
|
- t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
- })
|
|
|
- this.topologyParser && this.topologyParser.relationList.forEach(t => {
|
|
|
- let id = t.data.GraphElementId || t.data.GraphElementID
|
|
|
- t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
- })
|
|
|
+ this.topologyParser &&
|
|
|
+ this.topologyParser.imageLegendList.forEach(t => {
|
|
|
+ let id = t.data.GraphElementId
|
|
|
+ t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ })
|
|
|
+ this.topologyParser &&
|
|
|
+ this.topologyParser.relationList.forEach(t => {
|
|
|
+ let id = t.data.GraphElementId || t.data.GraphElementID
|
|
|
+ t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
},
|