diff --git a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue index 5240577f..92988712 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue @@ -1091,6 +1091,7 @@ export default { if (annotation.id) { let res = await deleteTrialFileType(annotation.id) + this.$emit('getMarkedFileIds', { type: "remove", visitTaskId: this.taskInfo.VisitTaskId, fileId: annotation.noneDicomFileId }) if (!res.IsSuccess) throw '' } if (annotation.metadata.toolName === 'Lengthscale') { @@ -1113,7 +1114,6 @@ export default { // const errorMsg = { message: 'annotation Not allowed to operate' } // throw errorMsg // } - this.$emit('getMarkedFileIds', { type: "remove", visitTaskId: this.taskInfo.VisitTaskId, fileId: annotation.noneDicomFileId }) } catch (err) { cornerstoneTools.annotation.state.addAnnotation(annotation) const renderingEngine = getRenderingEngine(renderingEngineId) @@ -1123,7 +1123,7 @@ export default { viewport.render() } console.log(e) - } + }addNoneDicomMark }) } @@ -1268,7 +1268,6 @@ export default { // } } }) - this.$emit('getMarkedFileIds', { type: "add", visitTaskId: this.taskInfo.VisitTaskId, fileId: annotation.noneDicomFileId }) }, annotationSelectionChangeListener(e) { console.log('selection') @@ -1321,6 +1320,8 @@ export default { annotation.markId = params.MarkId annotation.id = 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 }) + + this.$emit('getMarkedFileIds', { type: "add", visitTaskId: this.taskInfo.VisitTaskId, fileId: annotation.noneDicomFileId }) }) } catch (e) {