重新上传流程
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
cca1e8ce73
commit
c4b83701e3
|
@ -567,7 +567,8 @@ export default {
|
||||||
relationInfo: null,
|
relationInfo: null,
|
||||||
trialBodyPartTypes: [],
|
trialBodyPartTypes: [],
|
||||||
trialModalitys: [],
|
trialModalitys: [],
|
||||||
myInterval: []
|
myInterval: [],
|
||||||
|
studyErrorList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -881,6 +882,7 @@ export default {
|
||||||
// 上传之前校验基本信息及检查是否已上传
|
// 上传之前校验基本信息及检查是否已上传
|
||||||
beginUploadQueues() {
|
beginUploadQueues() {
|
||||||
this.scanState = 'uploading'
|
this.scanState = 'uploading'
|
||||||
|
this.studyErrorList = []
|
||||||
console.log(this.uploadQueues, this.selectArr)
|
console.log(this.uploadQueues, this.selectArr)
|
||||||
this.warningArr = []
|
this.warningArr = []
|
||||||
for (let i = 0; i < this.selectArr.length; ++i) {
|
for (let i = 0; i < this.selectArr.length; ++i) {
|
||||||
|
@ -1019,6 +1021,15 @@ export default {
|
||||||
})
|
})
|
||||||
this.$refs.pathClear.value = ''
|
this.$refs.pathClear.value = ''
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
|
if (this.studyErrorList.length > 0) {
|
||||||
|
let msg = this.$t('trials:uploadDicomFiles2:message:studyErrorList')
|
||||||
|
msg = msg.replaceAll('xxx', this.studyErrorList.join('、'))
|
||||||
|
this.$confirm(msg, this.$t('trials:hotkeys:message:tip'), {
|
||||||
|
confirmButtonText: this.$t('trials:uploadDicomFiles2:button:reupload')
|
||||||
|
}).then(() => {
|
||||||
|
this.beginUploadQueues()
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}).catch(_ => { this.btnLoading = false })
|
}).catch(_ => { this.btnLoading = false })
|
||||||
},
|
},
|
||||||
|
@ -1242,7 +1253,15 @@ export default {
|
||||||
let text = JSON.stringify(Record)
|
let text = JSON.stringify(Record)
|
||||||
let logJsonBlob = scope.generateTxtFile(text)
|
let logJsonBlob = scope.generateTxtFile(text)
|
||||||
let logJsonObjectName = `/${params.trialId}/Image/${params.siteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
let logJsonObjectName = `/${params.trialId}/Image/${params.siteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
||||||
let logRes = await scope.OSSclient.put(logJsonObjectName, logJsonBlob)
|
let logRes
|
||||||
|
try {
|
||||||
|
logRes = await scope.OSSclient.put(logJsonObjectName, logJsonBlob)
|
||||||
|
} catch (e) {
|
||||||
|
scope.uploadQueues[index].uploadState.record = Record
|
||||||
|
scope.studyErrorList.push(dicomInfo.accNumber)
|
||||||
|
clearInterval(t)
|
||||||
|
resolve()
|
||||||
|
}
|
||||||
for (let i = 0; i < seriesList.length; i++) {
|
for (let i = 0; i < seriesList.length; i++) {
|
||||||
let v = seriesList[i]
|
let v = seriesList[i]
|
||||||
let o = params.study.seriesList.find(o => {
|
let o = params.study.seriesList.find(o => {
|
||||||
|
@ -1269,7 +1288,7 @@ export default {
|
||||||
if (dicomInfo.failedFileCount === dicomInfo.fileCount) {
|
if (dicomInfo.failedFileCount === dicomInfo.fileCount) {
|
||||||
scope.$message.success(scope.$t('trials:uploadDicomList:label:uploaded'))
|
scope.$message.success(scope.$t('trials:uploadDicomList:label:uploaded'))
|
||||||
} else {
|
} else {
|
||||||
scope.$alert(scope.$t('trials:uploadDicomList:label:uploadFailed'))
|
scope.studyErrorList.push(dicomInfo.accNumber)
|
||||||
}
|
}
|
||||||
scope.uploadQueues[index].uploadState.record = Record
|
scope.uploadQueues[index].uploadState.record = Record
|
||||||
scope.getStudyInfo()
|
scope.getStudyInfo()
|
||||||
|
@ -1279,21 +1298,21 @@ export default {
|
||||||
clearInterval(t)
|
clearInterval(t)
|
||||||
resolve()
|
resolve()
|
||||||
}).catch((res) => {
|
}).catch((res) => {
|
||||||
reject()
|
|
||||||
scope.uploadQueues[index].uploadState.record = Record
|
scope.uploadQueues[index].uploadState.record = Record
|
||||||
scope.$alert(scope.$t('trials:uploadDicomList:label:generateLogFailed'))
|
scope.studyErrorList.push(dicomInfo.accNumber)
|
||||||
clearInterval(t)
|
clearInterval(t)
|
||||||
|
resolve()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
reject()
|
|
||||||
scope.uploadQueues[index].uploadState.record = Record
|
scope.uploadQueues[index].uploadState.record = Record
|
||||||
scope.$alert(scope.$t('trials:uploadDicomList:label:generateLogFailed'))
|
scope.studyErrorList.push(dicomInfo.accNumber)
|
||||||
clearInterval(t)
|
clearInterval(t)
|
||||||
|
resolve()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
reject()
|
resolve()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue