diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue index 4fac4075..f62b3a33 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/customize/QuestionList.vue @@ -545,18 +545,18 @@ export default { const stateHandlers = { [STATE.BIND]: () => this.$emit('setReadingToolPassive'), [STATE.ADD]: () => this.$emit('setReadingToolActive', ImageTool), - [STATE.VIEW]: this.handleViewState, + [STATE.VIEW]: this.handleViewAnnotation, [STATE.CHANGE]: () => this.$emit('setReadingToolPassive'), - [STATE.REMOVE]: this.handleRemoveState, - [STATE.SAVE_OUTER]: this.handleSaveOuterState, - [STATE.UPDATE]: this.handleUpdateState, - [STATE.SAVE_TABLE]: this.handleSaveTableState + [STATE.REMOVE]: this.handleRemoveAnnotation, + [STATE.SAVE_OUTER]: this.handleSaveOuterQuestions, + [STATE.UPDATE]: this.handleUpdateValue, + [STATE.SAVE_TABLE]: this.handleSaveTableQuestions } const handler = stateHandlers[operateStateEnum] handler && await handler.call(this, obj) }, - async handleViewState(obj) { + async handleViewAnnotation(obj) { const index = this.findMarkIndex(obj.question) if (index === -1) return const annotation = this.questionMarkInfoList[index].MeasureData @@ -565,7 +565,7 @@ export default { annotation }) }, - handleRemoveState(obj) { + handleRemoveAnnotation(obj) { const index = this.findMarkIndex(obj.question) if (index === -1) return Object.assign(this.questionMarkInfoList[index], { @@ -582,7 +582,7 @@ export default { isSaved: false }) }, - async handleSaveOuterState(obj) { + async handleSaveOuterQuestions(obj) { this.loading = true; try { const answers = [{ id: obj.question.Id, answer: this.questionForm[obj.question.Id] }] @@ -613,7 +613,7 @@ export default { this.loading = false } }, - handleUpdateState(obj) { + handleUpdateValue(obj) { const key = this.operateRowId ? `${this.operateRowId}_${obj.question.Id}` : obj.question.Id @@ -622,7 +622,7 @@ export default { isSaved: false }) }, - async handleSaveTableState(obj) { + async handleSaveTableQuestions(obj) { const loading = this.$loading({ fullscreen: true }) try { let annotation = null