parent
334882cc68
commit
a14aefca2c
|
@ -936,19 +936,19 @@ export default {
|
||||||
) {
|
) {
|
||||||
++instanceIndex
|
++instanceIndex
|
||||||
}
|
}
|
||||||
if (instanceIndex >= fileList.length) {
|
// if (instanceIndex >= fileList.length) {
|
||||||
fileList.push({
|
// fileList.push({
|
||||||
instanceUid: instanceUid,
|
// instanceUid: instanceUid,
|
||||||
file: file,
|
// file: file,
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
// scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||||
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
// scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||||
(prev, next) => {
|
// (prev, next) => {
|
||||||
return prev + next.file.size
|
// return prev + next.file.size
|
||||||
},
|
// },
|
||||||
0
|
// 0
|
||||||
)
|
// )
|
||||||
|
|
||||||
var seriesUid = data.string('x0020000e')
|
var seriesUid = data.string('x0020000e')
|
||||||
var seriesList = scope.uploadQueues[studyIndex].seriesList
|
var seriesList = scope.uploadQueues[studyIndex].seriesList
|
||||||
|
@ -1046,6 +1046,19 @@ export default {
|
||||||
}
|
}
|
||||||
instanceList.push(instanceItem)
|
instanceList.push(instanceItem)
|
||||||
}
|
}
|
||||||
|
if (instanceIndex >= fileList.length) {
|
||||||
|
fileList.push({
|
||||||
|
instanceUid: instanceUid,
|
||||||
|
file: file,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||||
|
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||||
|
(prev, next) => {
|
||||||
|
return prev + next.file.size
|
||||||
|
},
|
||||||
|
0
|
||||||
|
)
|
||||||
resolve()
|
resolve()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|
|
@ -952,19 +952,19 @@ export default {
|
||||||
) {
|
) {
|
||||||
++instanceIndex
|
++instanceIndex
|
||||||
}
|
}
|
||||||
if (instanceIndex >= fileList.length) {
|
// if (instanceIndex >= fileList.length) {
|
||||||
fileList.push({
|
// fileList.push({
|
||||||
instanceUid: instanceUid,
|
// instanceUid: instanceUid,
|
||||||
file: file,
|
// file: file,
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
// scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||||
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
// scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||||
(prev, next) => {
|
// (prev, next) => {
|
||||||
return prev + next.file.size
|
// return prev + next.file.size
|
||||||
},
|
// },
|
||||||
0
|
// 0
|
||||||
)
|
// )
|
||||||
|
|
||||||
var seriesUid = data.string('x0020000e')
|
var seriesUid = data.string('x0020000e')
|
||||||
var seriesList = scope.uploadQueues[studyIndex].seriesList
|
var seriesList = scope.uploadQueues[studyIndex].seriesList
|
||||||
|
@ -1065,6 +1065,19 @@ export default {
|
||||||
}
|
}
|
||||||
instanceList.push(instanceItem)
|
instanceList.push(instanceItem)
|
||||||
}
|
}
|
||||||
|
if (instanceIndex >= fileList.length) {
|
||||||
|
fileList.push({
|
||||||
|
instanceUid: instanceUid,
|
||||||
|
file: file,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
scope.uploadQueues[studyIndex].dicomInfo.fileCount = fileList.length
|
||||||
|
scope.uploadQueues[studyIndex].dicomInfo.fileSize = fileList.reduce(
|
||||||
|
(prev, next) => {
|
||||||
|
return prev + next.file.size
|
||||||
|
},
|
||||||
|
0
|
||||||
|
)
|
||||||
resolve()
|
resolve()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|
Loading…
Reference in New Issue