非dicom标记更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f69a297b2b
commit
ffdf3d2376
|
|
@ -1331,7 +1331,8 @@ export default {
|
||||||
const { annotation } = e.detail
|
const { annotation } = e.detail
|
||||||
if (!annotation.highlighted) return
|
if (!annotation.highlighted) return
|
||||||
if (!annotation) return
|
if (!annotation) return
|
||||||
// if (!annotation.annotationId) return
|
const savedAnnotationId = annotation.id || annotation.annotationId
|
||||||
|
if (!savedAnnotationId && annotation.metadata.toolName !== 'Lengthscale') return
|
||||||
let i = this.tools.findIndex(i => i.toolName === annotation.metadata.toolName)
|
let i = this.tools.findIndex(i => i.toolName === annotation.metadata.toolName)
|
||||||
if (i === -1 && annotation.metadata.toolName !== 'Lengthscale') {
|
if (i === -1 && annotation.metadata.toolName !== 'Lengthscale') {
|
||||||
this.setToolsPassive()
|
this.setToolsPassive()
|
||||||
|
|
@ -1482,6 +1483,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
const measureData = Object.assign({}, annotation)
|
const measureData = Object.assign({}, annotation)
|
||||||
const params = {}
|
const params = {}
|
||||||
|
const savedAnnotationId = annotation.id || annotation.annotationId
|
||||||
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
|
const i = this.viewportInfos.findIndex(i => i.index === this.activeCanvasIndex)
|
||||||
this.loading = true
|
this.loading = true
|
||||||
await this.getScreenshots({
|
await this.getScreenshots({
|
||||||
|
|
@ -1491,7 +1493,7 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
const pictureObj = await this.uploadScreenshots(`${Date.now()}`, base64Str)
|
const pictureObj = await this.uploadScreenshots(`${Date.now()}`, base64Str)
|
||||||
let picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
|
let picturePath = pictureObj.isSuccess ? this.$getObjectName(pictureObj.result.url) : ''
|
||||||
if (annotation.id) params.Id = annotation.id
|
if (savedAnnotationId) params.Id = savedAnnotationId
|
||||||
if (!isNaN(parseFloat(ps))) params.Proportion = ps
|
if (!isNaN(parseFloat(ps))) params.Proportion = ps
|
||||||
params.PicturePath = picturePath
|
params.PicturePath = picturePath
|
||||||
params.Path = annotation.path || ''
|
params.Path = annotation.path || ''
|
||||||
|
|
@ -1505,6 +1507,7 @@ export default {
|
||||||
const res = await addNoneDicomMark(params)
|
const res = await addNoneDicomMark(params)
|
||||||
annotation.markId = params.MarkId
|
annotation.markId = params.MarkId
|
||||||
annotation.id = res.Result
|
annotation.id = res.Result
|
||||||
|
annotation.annotationId = res.Result
|
||||||
if (!isNaN(parseFloat(ps))) this.$emit('getEcrf', { type: "changePlottingScaleChangeAnswer", VisitTaskId: this.taskInfo.VisitTaskId, noneDicomFileId: annotation.noneDicomFileId, path: annotation.path || '', picturePath, psArr: this.psArr, isRemovePlottingScale: ps < 0 ? true : false })
|
if (!isNaN(parseFloat(ps))) this.$emit('getEcrf', { type: "changePlottingScaleChangeAnswer", VisitTaskId: this.taskInfo.VisitTaskId, noneDicomFileId: annotation.noneDicomFileId, path: annotation.path || '', picturePath, psArr: this.psArr, isRemovePlottingScale: ps < 0 ? true : false })
|
||||||
|
|
||||||
this.$emit('getMarkedFileIds', { type: "add", visitTaskId: this.taskInfo.VisitTaskId, fileId: annotation.noneDicomFileId })
|
this.$emit('getMarkedFileIds', { type: "add", visitTaskId: this.taskInfo.VisitTaskId, fileId: annotation.noneDicomFileId })
|
||||||
|
|
@ -2154,6 +2157,14 @@ export default {
|
||||||
if (i === -1) return
|
if (i === -1) return
|
||||||
if (this.curOperation.type === 'Modified') {
|
if (this.curOperation.type === 'Modified') {
|
||||||
let annotation = this.curOperation.annotation
|
let annotation = this.curOperation.annotation
|
||||||
|
const savedAnnotationId = annotation.id || annotation.annotationId
|
||||||
|
if (!savedAnnotationId && annotation.metadata.toolName !== 'Lengthscale') {
|
||||||
|
this.curOperation = {
|
||||||
|
type: '',
|
||||||
|
annotation: null
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
if (annotation.metadata.toolName === 'Lengthscale') {
|
if (annotation.metadata.toolName === 'Lengthscale') {
|
||||||
this.$emit('getEcrf', { type: "verifyFileIsBound", VisitTaskId: this.taskInfo.VisitTaskId, annotation })
|
this.$emit('getEcrf', { type: "verifyFileIsBound", VisitTaskId: this.taskInfo.VisitTaskId, annotation })
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
@ -2176,6 +2187,9 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
if ((annotation.metadata.toolName === 'ArrowAnnotate' && annotation.data.label === 'Annotation') || annotation.data.label === '') {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.saveCustomAnnotation(annotation)
|
this.saveCustomAnnotation(annotation)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -236,6 +236,7 @@ export default {
|
||||||
return i
|
return i
|
||||||
})
|
})
|
||||||
this.$set(this.visitTaskList[taskIdx], 'Annotations', annotations)
|
this.$set(this.visitTaskList[taskIdx], 'Annotations', annotations)
|
||||||
|
this.$refs[visitTaskId][0].initCurrentMaredFiles()
|
||||||
this.$refs.fileViewer.resetAnnotations({ annotations, visitTaskId })
|
this.$refs.fileViewer.resetAnnotations({ annotations, visitTaskId })
|
||||||
},
|
},
|
||||||
setReadingTaskState(state) {
|
setReadingTaskState(state) {
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initCurrentMaredFiles() {
|
initCurrentMaredFiles() {
|
||||||
|
this.currentMarkedFiles = {}
|
||||||
this.visitTaskInfo.Annotations.map(i => {
|
this.visitTaskInfo.Annotations.map(i => {
|
||||||
if (!Object.hasOwn(this.currentMarkedFiles, i.NoneDicomFileId)) {
|
if (!Object.hasOwn(this.currentMarkedFiles, i.NoneDicomFileId)) {
|
||||||
this.$set(this.currentMarkedFiles, i.NoneDicomFileId, { count: 1 })
|
this.$set(this.currentMarkedFiles, i.NoneDicomFileId, { count: 1 })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue