NEZ-1221 fix: diagram 类型图 因为鼠标滚轮放大缩小导致悬浮展示有误的问题

This commit is contained in:
zhangyu
2021-11-11 11:34:34 +08:00
parent 6abf76db08
commit ce18288599
3 changed files with 13 additions and 1 deletions

View File

@@ -1515,7 +1515,10 @@ export default {
const arr = []
arr.push(this.$get(`/asset/asset/${assetId}`))
arr.push(this.$get(`/asset/asset/feature/${assetId}`))
console.log(this.$refs['editChart' + chartInfo.id][0])
if (this.$refs['editChart' + chartInfo.id][0]) {
this.$refs['editChart' + chartInfo.id][0].showLoad()
}
// this.$get('/asset/info?id=' + assetId).then(response => {
// if (response.code == 200) {

View File

@@ -1408,6 +1408,10 @@ export default {
if (this.$refs.topTool) {
this.$refs.topTool.scaleNum = parseInt(data * 100)
}
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
if (getTopology(this.topologyIndex)) {
getTopology(this.topologyIndex).canvasPos = domRect
}
break
}
case 'locked': {
@@ -1924,6 +1928,7 @@ export default {
}
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
getTopology(this.topologyIndex).canvasPos = domRect
getTopology(this.topologyIndex).resize()
}, 100)
},

View File

@@ -1448,6 +1448,10 @@ export default {
if (this.$refs.topTool) {
this.$refs.topTool.scaleNum = parseInt(data * 100)
}
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
if (getTopology(this.topologyIndex)) {
getTopology(this.topologyIndex).canvasPos = domRect
}
break
}
case 'locked': {