diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue index ccc5bb77..be90aa94 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -3071,10 +3071,11 @@ export default { const series = this.$refs[`${this.viewportKey}-${this.activeViewportIndex}`][0].series let index = series.SliceIndex const seriesArr = [] + let activeViewportIndex = 0 if (v === 1) { this.rows = 1 this.cols = 1 - this.activeViewportIndex = 0 + activeViewportIndex = 0 series.curIndex = index if (typeof series === 'object') { seriesArr.push(series) @@ -3082,7 +3083,7 @@ export default { } else if (v === 2) { this.rows = 1 this.cols = 2 - this.activeViewportIndex = 1 + activeViewportIndex = 1 series.curIndex = index if (typeof series === 'object') { seriesArr.push(series) @@ -3129,7 +3130,7 @@ export default { seriesArr.push(series) } } - this.activeViewportIndex = 1 + activeViewportIndex = 1 } else if (v === 4) { this.rows = 2 this.cols = 2 @@ -3140,10 +3141,12 @@ export default { seriesArr.push(series) seriesArr.push(series) } - this.activeViewportIndex = 3 + activeViewportIndex = 3 } - seriesArr.map((i, index) => { - this.$refs[`${this.viewportKey}-${index}`][0].setSeriesInfo(i) + seriesArr.map(async (i, index) => { + await this.$refs[`${this.viewportKey}-${index}`][0].setSeriesInfo(i) + if (index === seriesArr.length - 1) this.activeViewportIndex = activeViewportIndex + }) this.$nextTick(() => { const renderingEngine = getRenderingEngine(renderingEngineId) 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 8d334b66..6e791fdd 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 @@ -27,15 +27,15 @@
- + {{ $t('trials:readingReport:button:skip') }} - + {{ $t('common:button:save') }} - + {{ $t('common:button:submit') }}
@@ -121,7 +121,8 @@ export default { digitPlaces: 2, questionImageToolAttributeInfo: {}, unSaveTargets: [], - isTableVisible: false + isTableVisible: false, + isSaved: false } }, mounted() { @@ -283,6 +284,7 @@ export default { const res = await changeDicomReadingQuestionAnswer(params) if (res.IsSuccess) { if (isMsg) { + this.isSaved = true this.$message.success(this.$t('common:message:savedSuccessfully')) } this.loading = false @@ -1444,6 +1446,12 @@ export default { deep: true, immediate: true }, + questionForm: { + handler() { + this.isSaved = false + }, + deep: true + } // questionMarkInfoList: { // handler() { // console.log(this.questionMarkInfoList, 'questionMarkInfoList')