图像窗口添加切换访视功能
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
d69d8802cd
commit
d1159a09b4
|
@ -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/*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue