NEZ-1221 fix: diagram 类型图 因为鼠标滚轮放大缩小导致悬浮展示有误的问题
This commit is contained in:
@@ -1515,7 +1515,10 @@ export default {
|
|||||||
const arr = []
|
const arr = []
|
||||||
arr.push(this.$get(`/asset/asset/${assetId}`))
|
arr.push(this.$get(`/asset/asset/${assetId}`))
|
||||||
arr.push(this.$get(`/asset/asset/feature/${assetId}`))
|
arr.push(this.$get(`/asset/asset/feature/${assetId}`))
|
||||||
this.$refs['editChart' + chartInfo.id][0].showLoad()
|
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 => {
|
// this.$get('/asset/info?id=' + assetId).then(response => {
|
||||||
// if (response.code == 200) {
|
// if (response.code == 200) {
|
||||||
|
|||||||
@@ -1408,6 +1408,10 @@ export default {
|
|||||||
if (this.$refs.topTool) {
|
if (this.$refs.topTool) {
|
||||||
this.$refs.topTool.scaleNum = parseInt(data * 100)
|
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
|
break
|
||||||
}
|
}
|
||||||
case 'locked': {
|
case 'locked': {
|
||||||
@@ -1924,6 +1928,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
|
const domRect = document.getElementById('topology-canvas' + this.topologyIndexF).getBoundingClientRect()
|
||||||
getTopology(this.topologyIndex).canvasPos = domRect
|
getTopology(this.topologyIndex).canvasPos = domRect
|
||||||
|
getTopology(this.topologyIndex).resize()
|
||||||
}, 100)
|
}, 100)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1448,6 +1448,10 @@ export default {
|
|||||||
if (this.$refs.topTool) {
|
if (this.$refs.topTool) {
|
||||||
this.$refs.topTool.scaleNum = parseInt(data * 100)
|
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
|
break
|
||||||
}
|
}
|
||||||
case 'locked': {
|
case 'locked': {
|
||||||
|
|||||||
Reference in New Issue
Block a user