Compare commits
No commits in common. "8dbe02438ccd8c6d45d49b8584329b2bdc5ccfa1" and "3bbe3b3fa3a30ba1b5340e09f1b23dfaed4cb463" have entirely different histories.
8dbe02438c
...
3bbe3b3fa3
|
@ -795,23 +795,11 @@ export default {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
getDicomSeriesInfo({ seriesId }).then(res => {
|
getDicomSeriesInfo({ seriesId }).then(res => {
|
||||||
var series = res.Result
|
var series = res.Result
|
||||||
var imageIds = []
|
var imageIds = series.InstancePathList.map(path => `wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${path}`
|
||||||
var instanceList = []
|
)
|
||||||
series.InstanceInfoList.forEach(instance => {
|
|
||||||
if (instance.NumberOfFrames && instance.NumberOfFrames > 1) {
|
|
||||||
for (let i = 0; i < instance.NumberOfFrames; i++) {
|
|
||||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instance.Path}?frame=${i}`
|
|
||||||
imageIds.push(imageId)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${instance.Path}`
|
|
||||||
imageIds.push(imageId)
|
|
||||||
}
|
|
||||||
instanceList.push(instance.Id)
|
|
||||||
})
|
|
||||||
resolve({
|
resolve({
|
||||||
imageIds: imageIds,
|
imageIds: imageIds,
|
||||||
instanceList: instanceList,
|
instanceList: series.InstanceList,
|
||||||
seriesId: series.Id,
|
seriesId: series.Id,
|
||||||
imageIdIndex: 0,
|
imageIdIndex: 0,
|
||||||
seriesUid: series.SeriesInstanceUid,
|
seriesUid: series.SeriesInstanceUid,
|
||||||
|
|
Loading…
Reference in New Issue