|
@@ -91,10 +91,6 @@ export default {
|
|
|
let imgItem = new SImageItem(null, `${this.mapServerURL}/webtheme/${this.fmapID}/${window.fengmapData.frImg}`)
|
|
|
this.scene.addItem(imgItem)
|
|
|
this.view.scene = this.scene
|
|
|
- this.view.minScale = this.view.scale
|
|
|
- if (this.$refs.canvasFun) {
|
|
|
- this.$refs.canvasFun.everyScale = this.view.scale
|
|
|
- }
|
|
|
this.view.fitSceneToView()
|
|
|
}
|
|
|
} else {
|
|
@@ -108,7 +104,6 @@ export default {
|
|
|
this.fParser.parseData(res)
|
|
|
this.fParser.spaceList.forEach(t => {
|
|
|
this.scene.addItem(t)
|
|
|
- t.nameSize = 16
|
|
|
if (t.data.Name && this.bunkObj[t.data.Name]) {
|
|
|
t.name = this.bunkObj[t.data.Name].detailtype
|
|
|
} else {
|
|
@@ -122,10 +117,6 @@ export default {
|
|
|
this.fParser.casementList.forEach(t => this.scene.addItem(t))
|
|
|
this.view.scene = this.scene
|
|
|
this.view.fitSceneToView()
|
|
|
- this.view.minScale = this.view.scale
|
|
|
- if (this.$refs.canvasFun) {
|
|
|
- this.$refs.canvasFun.everyScale = this.view.scale
|
|
|
- }
|
|
|
})
|
|
|
} else {
|
|
|
console.log('楼层不正确')
|
|
@@ -191,6 +182,10 @@ export default {
|
|
|
this.scene.addItem(t)
|
|
|
})
|
|
|
this.view.fitSceneToView()
|
|
|
+ this.view.minScale = this.view.scale
|
|
|
+ if (this.$refs.canvasFun) {
|
|
|
+ this.$refs.canvasFun.everyScale = this.view.scale
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
clearGraphy() {
|
|
@@ -342,25 +337,25 @@ export default {
|
|
|
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)
|
|
|
- })
|
|
|
- this.topologyParser.imageMarkerList.forEach(t => {
|
|
|
- let id = t.data.GraphElementId
|
|
|
- t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
- })
|
|
|
- this.topologyParser.lineMarkerList.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)
|
|
|
+ // })
|
|
|
+ // this.topologyParser.imageMarkerList.forEach(t => {
|
|
|
+ // let id = t.data.GraphElementId
|
|
|
+ // t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ // })
|
|
|
+ // this.topologyParser.lineMarkerList.forEach(t => {
|
|
|
+ // let id = t.data.GraphElementId
|
|
|
+ // t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ // })
|
|
|
this.topologyParser.imageLegendList.forEach(t => {
|
|
|
let id = t.data.GraphElementId
|
|
|
- t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ t.selected = (res.indexOf(id) > -1)
|
|
|
})
|
|
|
this.topologyParser.relationList.forEach(t => {
|
|
|
let id = t.data.GraphElementId
|
|
|
- t.maskFlag = !(res.indexOf(id) > -1)
|
|
|
+ t.selected = (res.indexOf(id) > -1)
|
|
|
})
|
|
|
})
|
|
|
}
|