比例尺页面放大缩小报错问题
continuous-integration/drone/push Build is failing Details

uat_us
wangxiaoshuang 2026-04-01 09:35:36 +08:00
parent 3d538d6e67
commit 8a88a64c36
3 changed files with 8 additions and 14 deletions

View File

@ -762,7 +762,6 @@ export default {
lastUpper: null, lastUpper: null,
hasFusionUpperInitialized: false, hasFusionUpperInitialized: false,
timer: null, timer: null,
timeNum: 0,
FullTimerOut: null, FullTimerOut: null,
isDelay: false isDelay: false
} }
@ -2826,22 +2825,17 @@ export default {
if (this.timer) { if (this.timer) {
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
this.timeNum = 0
} }
let index = null let index = null
this.timer = setInterval(() => { this.timer = setTimeout(() => {
this.timeNum++
index = index || index === 0 ? index : this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.SliceIndex index = index || index === 0 ? index : this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series.SliceIndex
const renderingEngine = getRenderingEngine(renderingEngineId) const renderingEngine = getRenderingEngine(renderingEngineId)
renderingEngine.resize(true, false) renderingEngine.resize(true, false)
renderingEngine.render() renderingEngine.render()
this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index) this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].setFullScreen(index)
if (this.timeNum >= 3) { clearTimeout(this.timer)
clearInterval(this.timer) this.timer = null
this.timer = null }, 100)
this.timeNum = 0
}
}, 500)
}, },
setDelay(time) { setDelay(time) {
if (this.FullTimerOut) return false if (this.FullTimerOut) return false
@ -3962,7 +3956,6 @@ export default {
if (this.timer) { if (this.timer) {
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
this.timeNum = 0
} }
if (this.FullTimerOut) { if (this.FullTimerOut) {
clearTimeout(this.FullTimerOut) clearTimeout(this.FullTimerOut)

View File

@ -120,7 +120,7 @@
</el-switch> </el-switch>
<span style="margin-left: 5px;">{{ <span style="margin-left: 5px;">{{
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow') $t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
}}</span> }}</span>
</div> </div>
<!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show"> <!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show">
<span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span> <span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span>
@ -202,7 +202,7 @@
<div v-for="k in statsKey" :key="k" class="statsBox"> <div v-for="k in statsKey" :key="k" class="statsBox">
<span>{{ k }}</span> <span>{{ k }}</span>
<span v-if="item.stats[k]">{{ Number(item.stats[k].value).toFixed(2) <span v-if="item.stats[k]">{{ Number(item.stats[k].value).toFixed(2)
}}<i>{{ item.stats[k].unit }}</i></span> }}<i>{{ item.stats[k].unit }}</i></span>
</div> </div>
</template> </template>
<div class="serialNum" slot="reference">{{ index + 1 }}</div> <div class="serialNum" slot="reference">{{ index + 1 }}</div>
@ -1624,7 +1624,7 @@ export default {
this.getBidirectional(obj.segments, null, false) this.getBidirectional(obj.segments, null, false)
}) })
} }
if (this.segmentationId && this.segmentIndex) { if (this.segmentationId && this.segmentIndex && this.segmentList && this.segmentList.length > 0) {
let segment = this.segmentList.find(item => item.segmentationId === this.segmentationId).segments.find(item => item.segmentIndex === this.segmentIndex) let segment = this.segmentList.find(item => item.segmentationId === this.segmentationId).segments.find(item => item.segmentIndex === this.segmentIndex)
console.log(segment, 'segment') console.log(segment, 'segment')
this.selectSegmentGroup(segment) this.selectSegmentGroup(segment)

View File

@ -321,6 +321,7 @@ class ScaleOverlayTool extends AnnotationDisplayTool {
const bottomLeft = annotation.data.handles.points[2]; const bottomLeft = annotation.data.handles.points[2];
const bottomRight = annotation.data.handles.points[3]; const bottomRight = annotation.data.handles.points[3];
const pointSet1 = [topLeft, bottomLeft, topRight, bottomRight]; const pointSet1 = [topLeft, bottomLeft, topRight, bottomRight];
if(!bottomLeft) return false
const worldWidthViewport = vec3.distance(bottomLeft, bottomRight); const worldWidthViewport = vec3.distance(bottomLeft, bottomRight);
const worldHeightViewport = vec3.distance(topLeft, bottomLeft); const worldHeightViewport = vec3.distance(topLeft, bottomLeft);
const hscaleBounds = this.computeScaleBounds(canvasSize, 0.05, 0.05, location); const hscaleBounds = this.computeScaleBounds(canvasSize, 0.05, 0.05, location);