1
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2026-03-31 17:13:29 +08:00
parent c930480336
commit 2efb229c96
1 changed files with 12 additions and 8 deletions

View File

@ -2826,11 +2826,22 @@ export default {
this.timer = null
this.timeNum = 0
}
let index = null
this.timer = setInterval(() => {
this.timeNum++
const renderingEngine = getRenderingEngine(renderingEngineId)
renderingEngine.resize(true, false)
renderingEngine.render()
// let viewportIds = [`${this.viewportKey}-0`, `${this.viewportKey}-1`, `${this.viewportKey}-2`]
// if (!this.isMPR) {
// viewportIds = []
// for (let i = 0; i < this.cells.length; i++) {
// const viewportId = `${this.viewportKey}-${i}`
// viewportIds.push(viewportId)
// }
// }
index = index || index === 0 ? index : this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.SliceIndex
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index)
if (this.timeNum >= 3) {
clearInterval(this.timer)
this.timer = null
@ -2853,15 +2864,8 @@ export default {
})
}
if (this.isFusion || this.isMPR || this.readingTool === 3) {
if (this.isFusion) {
let viewportIds = [`${this.viewportKey}-0`, `${this.viewportKey}-1`, `${this.viewportKey}-2`]
if (!this.isFusion && !this.isMPR) {
viewportIds = []
for (let i = 0; i < this.cells.length; i++) {
const viewportId = `${this.viewportKey}-${i}`
viewportIds.push(viewportId)
}
}
viewportIds.forEach(id => {
const index = this.$refs[id][0].series.SliceIndex
this.$refs[id][0].setFullScreen(index)