非dicom画标记问题
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-07-21 17:28:28 +08:00
parent 12da4c5d9f
commit 276d8adac0
2 changed files with 13 additions and 6 deletions

View File

@ -276,7 +276,7 @@ export default {
window.opener.postMessage(data, window.location)
},
async receiveMsg(event) {
console.log('nonedicoms', event.data.type)
// console.log('nonedicoms', event.data.type)
if (event.data.type === 'isCanActiveNoneDicomTool') {
if (event.data.data.isCanActiveTool) {
// this.model = 'ArrowAnnotate'
@ -304,8 +304,12 @@ export default {
// this.canvasData.splice(i, 1)
// }
// }
var idx = this.canvasData.findIndex(item => item.data.uuid === event.data.data.data.uuid)
this.canvasData.splice(idx, 1)
if (!event.data.data) {
this.canvasData = []
} else {
var idx = this.canvasData.findIndex(item => item.data.uuid === event.data.data.data.uuid)
this.canvasData.splice(idx, 1)
}
ctx.clearRect(0, 0, this.canvasSize.width, this.canvasSize.height) //
await ctx.drawImage(
this.currentImg,
@ -512,6 +516,11 @@ export default {
this.canvasData.push(this.currentDrawData) //
}
}
//
if (this.model) {
var data = { type: 'setMeasurement', data: this.currentDrawData }
window.opener.postMessage(data, window.location)
}
this.isMouseDown = false //
this.model = ''
this.lesionName = ''
@ -519,9 +528,6 @@ export default {
x: e.offsetX, //
y: e.offsetY
}
//
var data = { type: 'setMeasurement', data: this.currentDrawData }
window.opener.postMessage(data, window.location)
},
//

View File

@ -1489,6 +1489,7 @@ export default {
this.getOuterQuestions()
this.getTableQuestions()
this.$emit('resetAnnotations', this.visitTaskId)
DicomEvent.$emit('removeNoneDicomMeasureData', null)
}
loading.close()
} catch (e) {