Compare commits
No commits in common. "eb5fc74d4698d4d292af8260fbc5a41f546a2757" and "53336c5a7c8a7ff8302df2df674036e901e34d6a" have entirely different histories.
eb5fc74d46
...
53336c5a7c
|
@ -225,11 +225,9 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
// 获取某个访视下所有的检查信息
|
||||
async getStudiesInfo() {
|
||||
try {
|
||||
getStudiesInfo() {
|
||||
this.studyList = []
|
||||
const res = await getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading)
|
||||
if (res.IsSuccess) {
|
||||
getVisitStudyList(this.trialId, this.subjectVisitId, this.isReading).then(res => {
|
||||
res.Result.forEach((study) => {
|
||||
const data = {}
|
||||
data.StudyId = study.StudyId
|
||||
|
@ -242,6 +240,13 @@ export default {
|
|||
var seriesList = []
|
||||
study.SeriesList.forEach((series) => {
|
||||
const imageIds = []
|
||||
|
||||
// series.InstanceList.forEach((id) => {
|
||||
// imageIds.push(`wadouri:/api/instance/content/${id}`)
|
||||
// })
|
||||
// series.InstanceList.forEach((id) => {
|
||||
// imageIds.push(`wadouri:http://123.56.94.154:7000/instance/content/${id}`)
|
||||
// })
|
||||
series.InstancePathList.forEach((path) => {
|
||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${path}`)
|
||||
})
|
||||
|
@ -275,10 +280,7 @@ export default {
|
|||
instanceId = instanceId.split('.')[0]
|
||||
this.firstInstanceId = instanceId
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
})
|
||||
},
|
||||
showSeriesImage(e, studyIndex, seriesIndex, series) {
|
||||
const element = e.currentTarget
|
||||
|
@ -375,11 +377,12 @@ export default {
|
|||
}
|
||||
},
|
||||
// 根据关联检查获取序列信息
|
||||
async getRelationSeriesByStudy(studyId, index) {
|
||||
getRelationSeriesByStudy(studyId, index) {
|
||||
if (this.relationStudyList[index].seriesCount) {
|
||||
this.relationStudyList[index].showSeries = !this.relationStudyList[index].showSeries
|
||||
this.$forceUpdate()
|
||||
} else {
|
||||
const scope = this
|
||||
const loading = this.$loading({
|
||||
target: document.querySelector(`.relation-study-wrapper-${index}`),
|
||||
fullscreen: false,
|
||||
|
@ -388,22 +391,25 @@ export default {
|
|||
background: 'rgb(49 49 49 / 50%)',
|
||||
spinner: 'el-icon-loading'
|
||||
})
|
||||
try {
|
||||
const basePath = this.OSSclientConfig.basePath
|
||||
const data = await getStudyInfo(studyId)
|
||||
if (!data.IsSuccess) {
|
||||
getStudyInfo(studyId).then(data => {
|
||||
scope.relationStudyList[index].studyCode = data.Result.StudyCode
|
||||
scope.relationStudyList[index].modality = data.Result.Modalities
|
||||
scope.relationStudyList[index].seriesCount = data.Result.SeriesCount
|
||||
getSeriesList(`/series/list/${studyId}`).then(data => {
|
||||
loading.close()
|
||||
return
|
||||
}
|
||||
this.relationStudyList[index].studyCode = data.Result.StudyCode
|
||||
this.relationStudyList[index].modality = data.Result.Modalities
|
||||
this.relationStudyList[index].seriesCount = data.Result.SeriesCount
|
||||
getSeriesList(`/series/list/${studyId}`).then(res => {
|
||||
if (data.Result != null && data.Result.length > 0) {
|
||||
var seriesList = []
|
||||
res.Result.forEach(function(item) {
|
||||
const res = data.Result
|
||||
res.forEach(function(item) {
|
||||
const imageIds = []
|
||||
// item.InstanceList.forEach(function(id) {
|
||||
// imageIds.push(`wadouri:/api/instance/content/${id}`)
|
||||
// })
|
||||
// item.InstanceList.forEach((id) => {
|
||||
// imageIds.push(`wadouri:http://123.56.94.154:7000/instance/content/${id}`)
|
||||
// })
|
||||
item.InstancePathList.forEach((path) => {
|
||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? basePath : basePath}${path}`)
|
||||
imageIds.push(`wadouri:${localStorage.getItem('location') !== 'USA' ? scope.OSSclientConfig.basePath : scope.OSSclientConfig.basePath}${path}`)
|
||||
})
|
||||
seriesList.push({
|
||||
imageIds: imageIds,
|
||||
|
@ -413,23 +419,22 @@ export default {
|
|||
sliceThickness: item.SliceThickness,
|
||||
modality: item.Modality,
|
||||
description: item.Description,
|
||||
previewImageUrl: item.ImageResizePath ? basePath + item.ImageResizePath : `/api/series/preview/${item.Id}`,
|
||||
previewImageUrl: item.ImageResizePath ? this.OSSclientConfig.basePath + item.ImageResizePath : `/api/series/preview/${item.Id}`,
|
||||
instanceCount: item.InstanceCount,
|
||||
prefetchInstanceCount: 0,
|
||||
hasLabel: item.HasLabel,
|
||||
keySeries: item.KeySeries,
|
||||
loadStatus: false,
|
||||
imageloadedArr: []
|
||||
})
|
||||
})
|
||||
this.relationStudyList[index].seriesCount = seriesList.length
|
||||
this.relationStudyList[index].seriesList = seriesList
|
||||
this.relationStudyList[index].showSeries = true
|
||||
this.$forceUpdate()
|
||||
loading.close()
|
||||
})
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
loading.close()
|
||||
scope.relationStudyList[index].seriesCount = seriesList.length
|
||||
scope.relationStudyList[index].seriesList = seriesList
|
||||
scope.relationStudyList[index].showSeries = true
|
||||
scope.$forceUpdate()
|
||||
}
|
||||
}).catch(() => { loading.close() })
|
||||
}).catch(() => { loading.close() })
|
||||
}
|
||||
},
|
||||
showRelationSeriesImage(e, series, index) {
|
||||
|
@ -547,7 +552,7 @@ export default {
|
|||
cornerstoneImageLoaded(e) {
|
||||
if (e.detail.image.imageId.includes(this.firstInstanceId) && !this.isStartLoad) {
|
||||
// 初始化图像加载完成时,自动下载
|
||||
// this.loadAllImages()
|
||||
this.loadAllImages()
|
||||
this.isStartLoad = true
|
||||
// requestPoolManager.executeTask()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue