融合页面结构更改
parent
c653ab607f
commit
df5a6b7fdd
|
@ -795,11 +795,23 @@ 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 = series.InstancePathList.map(path => `wadouri:${localStorage.getItem('location') !== 'USA' ? this.OSSclientConfig.basePath : this.OSSclientConfig.basePath}${path}`
|
var imageIds = []
|
||||||
)
|
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: series.InstanceList,
|
instanceList: instanceList,
|
||||||
seriesId: series.Id,
|
seriesId: series.Id,
|
||||||
imageIdIndex: 0,
|
imageIdIndex: 0,
|
||||||
seriesUid: series.SeriesInstanceUid,
|
seriesUid: series.SeriesInstanceUid,
|
||||||
|
|
Loading…
Reference in New Issue