数据匿名应用时清除遮盖标记
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9da7c1a159
commit
7ebbfb9621
|
|
@ -100,6 +100,7 @@ cornerstoneTools.toolColors.setActiveColor('rgb(0, 255, 0)')
|
|||
// cornerstoneTools.init({ showSVGCursors: true })
|
||||
cornerstoneTools.init()
|
||||
const ToolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager
|
||||
console.log(cornerstoneTools, 'cornerstoneTools')
|
||||
import DicomTags from './DicomTags'
|
||||
export default {
|
||||
name: 'DicomCanvas',
|
||||
|
|
@ -947,6 +948,20 @@ export default {
|
|||
|
||||
// this.reloadImage(this.canvas, image.imageId)
|
||||
},
|
||||
removeNote_RectangleRoi() {
|
||||
const toolState = cornerstoneTools.getToolState(this.canvas, 'Note_RectangleRoi');
|
||||
|
||||
if (toolState && toolState.data.length > 0) {
|
||||
toolState.data.forEach(item => {
|
||||
// 例如:删除列表中最后一个矩形
|
||||
const dataToRemove = item
|
||||
// 调用 removeToolState 删除指定的数据对象
|
||||
cornerstoneTools.removeToolState(this.canvas, 'Note_RectangleRoi', dataToRemove);
|
||||
})
|
||||
// 刷新视图
|
||||
cornerstone.updateImage(this.canvas);
|
||||
}
|
||||
},
|
||||
setToolActive(toolName) {
|
||||
cornerstoneTools.setToolActiveForElement(this.canvas, toolName, {
|
||||
mouseButtonMask: 1,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</div>
|
||||
<div :class="{ btn: true, isNoted: isComparison }" @click="anonymousImage(false)">{{
|
||||
$t('DicomViewer:anonymous:Application') }}</div>
|
||||
<div :class="{ btn: true, isNoted: isComparison }" @click="anonymousImage(true)">{{
|
||||
<div :class="{ btn: true, isNoted: isComparison }" v-if="!isMultiple" @click="anonymousImage(true)">{{
|
||||
$t('DicomViewer:anonymous:ApplicationAll') }}</div>
|
||||
<!-- <div class="btn">刷新图像</div> -->
|
||||
<div class="btn" v-if="!isComparison" @click="comparison(true)">{{
|
||||
|
|
@ -485,6 +485,11 @@ export default {
|
|||
isEdit: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isMultiple() {
|
||||
return this.series?.instanceInfoList[0]?.NumberOfFrames > 0
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
let type = this.$router.currentRoute.query.type ? this.$router.currentRoute.query.type : ''
|
||||
this.hasAnonymous = type === 'Study'
|
||||
|
|
@ -752,8 +757,11 @@ export default {
|
|||
// // this.loadImageStack(this.series)
|
||||
// this.$refs[`dicomCanvas0`].loadImageStack(this.series)
|
||||
}
|
||||
this.$emit('loadStudy', this.series.seriesId)
|
||||
this.$emit("update:loading", false)
|
||||
this.$refs[`dicomCanvas0`].removeNote_RectangleRoi()
|
||||
setTimeout(() => {
|
||||
this.$emit('loadStudy', this.series.seriesId)
|
||||
this.$emit("update:loading", false)
|
||||
}, 500)
|
||||
})
|
||||
},
|
||||
openAnonymous() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue