数据匿名多个编辑选框应用时清除
continuous-integration/drone/push Build is failing Details

main
wangxiaoshuang 2026-05-09 10:56:21 +08:00
parent e8dda21459
commit 27a9ccd3c2
2 changed files with 9 additions and 8 deletions

View File

@ -950,15 +950,11 @@ export default {
},
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);
let arr = toolState.data.map(item => item)
arr.forEach(item => {
cornerstoneTools.removeToolState(this.canvas, 'Note_RectangleRoi', item);
})
//
cornerstone.updateImage(this.canvas);
}
},

View File

@ -510,7 +510,7 @@ export default {
},
methods: {
comparison(f) {
setToolsPassive() {
const elements = document.querySelectorAll('.dicom-item')
const scope = this
Array.from(elements).forEach((element, index) => {
@ -519,6 +519,9 @@ export default {
}
})
scope.activeTool = null
},
comparison(f) {
this.setToolsPassive()
if (f) {
this.$refs[`dicomCanvas0`].getNote_RectangleRoi().then(obj => {
let { image } = obj
@ -570,6 +573,7 @@ export default {
},
recovery(isAll = false) {
if (this.isComparison) return false
this.setToolsPassive()
this.$refs[`dicomCanvas0`].getNote_RectangleRoi().then(async obj => {
let { image } = obj
let instanceInfo = this.series.instanceInfoList.find(item => {
@ -616,6 +620,7 @@ export default {
},
anonymousImage(isAll = false) {
if (this.isComparison) return false
this.setToolsPassive()
this.$refs[`dicomCanvas0`].getNote_RectangleRoi().then(async obj => {
let { toolInfo, image } = obj
if (!toolInfo || toolInfo.data.length <= 0) return this.$confirm(this.$t("DicomViewer:anonymous:notMark"))