图像窗口添加切换访视功能
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 public
dist dist
src/* # src/*
src/views/trials/trials-panel/visit/* src/views/trials/trials-panel/visit/*
src/App.vue src/App.vue
src/views/trials/trials-panel/reading/global-review/* 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 registerWebImageLoader from './../js/registerWebImageLoader'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import store from '@/store' import store from '@/store'
import { readUint16 } from '../../../../../../../static/pdfjs/build/pdf.worker'
const { ViewportType } = Enums const { ViewportType } = Enums
const renderingEngineId = 'myRenderingEngine' const renderingEngineId = 'myRenderingEngine'
const { ToolGroupManager, Enums: csToolsEnums, StackScrollTool } = cornerstoneTools const { ToolGroupManager, Enums: csToolsEnums, StackScrollTool } = cornerstoneTools

View File

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

View File

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