mpr切换单视口时分割列表报错问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
be137b3840
commit
c9f9615488
|
|
@ -2971,9 +2971,9 @@ export default {
|
|||
const renderingEngine = getRenderingEngine(renderingEngineId)
|
||||
renderingEngine.resize(true, false)
|
||||
renderingEngine.render()
|
||||
if (this.readingTool === 3) {
|
||||
DicomEvent.$emit('isloaded', { isChange: false })
|
||||
}
|
||||
// if (this.readingTool === 3) {
|
||||
// DicomEvent.$emit('isloaded', { isChange: false })
|
||||
// }
|
||||
})
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,8 @@
|
|||
<template slot="title">
|
||||
<div class="SegmentTitle">
|
||||
{{ $t('trials:reading:Segmentations:title:Segment') }}
|
||||
<svg-icon icon-class="individuation" class="svg-icon" style="margin-right: 10px;" @click.stop="changeShowSegmentConfig" />
|
||||
<svg-icon icon-class="individuation" class="svg-icon" style="margin-right: 10px;"
|
||||
@click.stop="changeShowSegmentConfig" />
|
||||
</div>
|
||||
</template>
|
||||
<div class="addSegmentBox viewHover" @click.stop="addSegment" v-if="segmentList.length <= 0">
|
||||
|
|
@ -120,7 +121,7 @@
|
|||
</el-switch>
|
||||
<span style="margin-left: 5px;">{{
|
||||
$t('trials:reading:Segmentations:title:InactiveSegmentationsShow')
|
||||
}}</span>
|
||||
}}</span>
|
||||
</div>
|
||||
<!-- <div class="SegmentConfig" v-if="SegmentConfig.InactiveSegmentations.show">
|
||||
<span>{{ $t('trials:reading:Segmentations:title:Opacity') }}</span>
|
||||
|
|
@ -202,7 +203,7 @@
|
|||
<div v-for="k in statsKey" :key="k" class="statsBox">
|
||||
<span>{{ k }}</span>
|
||||
<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>
|
||||
</template>
|
||||
<div class="serialNum" slot="reference">{{ index + 1 }}</div>
|
||||
|
|
@ -1567,7 +1568,7 @@ export default {
|
|||
let res = await getSegmentationList(data);
|
||||
this.loading = false;
|
||||
if (res.IsSuccess) {
|
||||
// this.segmentList = []
|
||||
this.segmentList = []
|
||||
let list = res.Result.CurrentPageData;
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
let item = list[i]
|
||||
|
|
@ -1627,9 +1628,20 @@ export default {
|
|||
})
|
||||
}
|
||||
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 o = this.segmentList.find(item => item.segmentationId === this.segmentationId)
|
||||
if (o) {
|
||||
let s = o.segments.find(item => item.segmentIndex === this.segmentIndex)
|
||||
this.selectSegmentGroup(s)
|
||||
} else {
|
||||
this.segmentationId = this.segmentList[0].segmentationId
|
||||
this.segmentIndex = this.segmentationId ? this.segmentList[0].segments[0].segmentIndex : null
|
||||
if (this.segmentationId && this.segmentIndex) {
|
||||
this.selectSegmentGroup(this.segmentList[0].segments[0])
|
||||
}
|
||||
|
||||
}
|
||||
// console.log(segment, 'segment')
|
||||
this.selectSegmentGroup(segment)
|
||||
|
||||
// this.selectSegment(segment)
|
||||
}
|
||||
this.isloaded = false
|
||||
|
|
|
|||
|
|
@ -316,6 +316,7 @@ class ScaleOverlayTool extends AnnotationDisplayTool {
|
|||
width: canvas.width / window.devicePixelRatio || 1,
|
||||
height: canvas.height / window.devicePixelRatio || 1,
|
||||
};
|
||||
if(!annotation||!annotation.data) return false
|
||||
const topLeft = annotation.data.handles.points[0];
|
||||
const topRight = annotation.data.handles.points[1];
|
||||
const bottomLeft = annotation.data.handles.points[2];
|
||||
|
|
|
|||
Loading…
Reference in New Issue