图像窗口添加切换访视功能
continuous-integration/drone/push Build is running Details

uat
caiyiling 2025-02-21 17:04:18 +08:00
parent d69d8802cd
commit d1159a09b4
4 changed files with 9 additions and 8 deletions

View File

@ -4,7 +4,7 @@ src/utils/*
public
dist
src/*
# src/*
src/views/trials/trials-panel/visit/*
src/App.vue
src/views/trials/trials-panel/reading/global-review/*

View File

@ -90,7 +90,6 @@ import hardcodedMetaDataProvider from './../js/hardcodedMetaDataProvider'
import registerWebImageLoader from './../js/registerWebImageLoader'
import { mapGetters } from 'vuex'
import store from '@/store'
import { readUint16 } from '../../../../../../../static/pdfjs/build/pdf.worker'
const { ViewportType } = Enums
const renderingEngineId = 'myRenderingEngine'
const { ToolGroupManager, Enums: csToolsEnums, StackScrollTool } = cornerstoneTools

View File

@ -201,9 +201,11 @@ export default {
await this.getReadingImageFile(id, idx)
}
this.activeTaskVisitId = id
if (isInitActiveFile) {
this.$refs[id][0].setInitActiveFile()
}
this.$nextTick(() => {
if (isInitActiveFile) {
this.$refs[id][0].setInitActiveFile()
}
})
},
//
async toggleTaskByViewer(visitTaskNum) {

View File

@ -82,14 +82,14 @@ export default {
setInitActiveFile() {
if (this.studyList.length === 0) return
this.activeNames.push(this.studyList[0].Id)
this.selectFile(this.studyList[0].NoneDicomStudyFileList, 0, 0)
this.selectFile(this.studyList[0], 0, 0)
},
//
selectFile(study, studyIndex, fileIndex) {
this.activeStudyIndex = studyIndex
this.activeFileIndex = fileIndex
let fileList = study.NoneDicomStudyFileList
this.$emit('selectFile', { fileInfo: fileList[fileIndex], fileList, visitTaskInfo: this.visitTaskInfo, fileIndex: fileIndex, studyId: study.Id})
const fileList = study.NoneDicomStudyFileList
this.$emit('selectFile', { fileInfo: fileList[fileIndex], fileList, visitTaskInfo: this.visitTaskInfo, fileIndex: fileIndex, studyId: study.Id })
}
}
}