dicom上传时排除DICOMDIR文件

uat_us
caiyiling 2024-04-11 15:48:36 +08:00
parent d8401d57f7
commit 15cc9c00be
1 changed files with 6 additions and 1 deletions

View File

@ -728,10 +728,14 @@ export default {
var p = new Promise(function(resolve) { var p = new Promise(function(resolve) {
resolve() resolve()
}) })
var validFilesCount = 0
for (var i = 0; i < files.length; ++i) { for (var i = 0; i < files.length; ++i) {
(function(index) { (function(index) {
p = p.then(function() { p = p.then(function() {
if(files[index].name.indexOf('DICOMDIR') === -1){
validFilesCount = validFilesCount + 1
return scope.parseDicomFile(files[index]) return scope.parseDicomFile(files[index])
}
}) })
})(i) })(i)
} }
@ -742,6 +746,7 @@ export default {
scope.scanState = 'finished' scope.scanState = 'finished'
scope.isScan = true scope.isScan = true
}) })
} }
}, },
// UUID // UUID