@@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user