体数据放大变形问题解决
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2026-03-31 16:47:16 +08:00
parent b39ea3a032
commit c930480336
1 changed files with 29 additions and 4 deletions

View File

@ -760,7 +760,9 @@ export default {
},
fusionOverlayModality: null,
lastUpper: null,
hasFusionUpperInitialized: false
hasFusionUpperInitialized: false,
timer: null,
timeNum: 0
}
},
computed: {
@ -2817,6 +2819,25 @@ export default {
this.forceFitToWindow = !forceFitToWindow
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].resize(forceFitToWindow)
},
//
resetRenderingEngine() {
if (this.timer) {
clearInterval(this.timer)
this.timer = null
this.timeNum = 0
}
this.timer = setInterval(() => {
this.timeNum++
const renderingEngine = getRenderingEngine(renderingEngineId)
renderingEngine.resize(true, false)
renderingEngine.render()
if (this.timeNum >= 3) {
clearInterval(this.timer)
this.timer = null
this.timeNum = 0
}
}, 500)
},
//
toggleFullScreen(e, index) {
this.fullScreenIndex = this.fullScreenIndex === index ? null : index
@ -2824,9 +2845,8 @@ export default {
if (this.readingTool === 3 || this.isMPR) {
// this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setSeriesInfo(this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series)
this.$nextTick(() => {
const renderingEngine = getRenderingEngine(renderingEngineId)
renderingEngine.resize(true, false)
renderingEngine.render()
this.resetRenderingEngine()
if (this.readingTool === 3) {
DicomEvent.$emit('isloaded', { isChange: false })
}
@ -3930,6 +3950,11 @@ export default {
clearTimeout(this.saveCustomAnnotationTimer)
this.saveCustomAnnotationTimer = null
}
if (this.timer) {
clearInterval(this.timer)
this.timer = null
this.timeNum = 0
}
workSpeedclose(true)
}
}