From 53fbc45ba2500843fe66890c0346f125caab3c34 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 29 Aug 2025 14:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=B8=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/reading/dicoms/components/StudyList.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/StudyList.vue b/src/views/trials/trials-panel/reading/dicoms/components/StudyList.vue index 4b27aff..3d5e691 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/StudyList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/StudyList.vue @@ -333,6 +333,7 @@ export default { } } DicomEvent.$emit('loadImageStacks', res) + console.log('initStudyInfo') loading.close() this.isRender = true }).catch(() => { @@ -350,7 +351,6 @@ export default { }) }, getStudyList() { - console.log('getStudyList') if (!this.isRender) { var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId) if (idx > -1 && this.visitTaskList[idx].StudyList && this.visitTaskList[idx].StudyList.length > 0) { @@ -358,7 +358,6 @@ export default { this.studyList = this.visitTaskList[idx].StudyList var sIdx = this.studyList.findIndex(s => s.IsDicom) if (sIdx > -1) { - console.log(this.studyIndex, this.studyIndex) // this.studyIndex = sIdx // c = 0 this.activeNames = [`${this.studyList[sIdx].StudyId}`] @@ -394,7 +393,7 @@ export default { var isReadingTaskViewInOrder = parseInt(this.$router.currentRoute.query.isReadingTaskViewInOrder) var idx = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId) this.studyList = this.visitTaskList[idx].StudyList - const studyList = this.visitTaskList[idx].StudyList.filter(i => i.IsDicom) + const studyList = this.visitTaskList[idx].StudyList.filter(i => i.IsDicom && !i.IsCriticalSequence) const seriesArr = studyList.map(s => s.SeriesList).flat() if (isReadingTaskViewInOrder === 2) { // 受试者内随机 @@ -592,12 +591,12 @@ export default { } } if (Object.keys(obj).length === 0) { - const sIdx = studyList.findIndex(s => s.IsDicom) + const sIdx = studyList.findIndex(s => s.IsDicom && !s.IsCriticalSequence) if (sIdx > -1) { obj.studyIndex = sIdx obj.seriesIndex = 0 obj.series = studyList[obj.studyIndex].SeriesList[obj.seriesIndex] - const imageIdIndex = Math.floor(obj.series.imageIds.length / 2) + const imageIdIndex = obj.series && obj.series.imageIds ? Math.floor(obj.series.imageIds.length / 2) : 0 obj.series.imageIdIndex = imageIdIndex >= 0 ? imageIdIndex : 0 // obj.seriesId = series.seriesId obj.isMarked = false