ir上传dicom
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f52b2f151b
commit
e52378d5d4
|
@ -417,6 +417,7 @@
|
|||
<study-view
|
||||
v-if="model_cfg.visible"
|
||||
:model_cfg="model_cfg"
|
||||
:IsDicom="true"
|
||||
:modelList="modelList"
|
||||
/>
|
||||
</div>
|
||||
|
@ -1172,7 +1173,7 @@ export default {
|
|||
o.imageColumns,
|
||||
o.imageRows
|
||||
)
|
||||
let thumbnailPath = `/${params.trialId}/Image/${params.trialSiteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}.png`
|
||||
let thumbnailPath = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${v.seriesUid}.png`
|
||||
let OSSclient = scope.OSSclient
|
||||
let seriesRes = await OSSclient.put(
|
||||
thumbnailPath,
|
||||
|
@ -1257,7 +1258,7 @@ export default {
|
|||
}
|
||||
let text = JSON.stringify(Record)
|
||||
let logJsonBlob = scope.generateTxtFile(text)
|
||||
let logJsonObjectName = `/${params.trialId}/Image/${params.trialSiteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
||||
let logJsonObjectName = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.visitTaskId}/${dicomInfo.studyUid}/${params.studyMonitorId}.txt`
|
||||
let logRes
|
||||
try {
|
||||
logRes = await scope.OSSclient.put(
|
||||
|
@ -1302,7 +1303,7 @@ export default {
|
|||
params.RecordPath = scope.$getObjectName(logRes.url)
|
||||
if (scope.isClose) return false
|
||||
console.log(params)
|
||||
params.VisitTaskId = dicomInfo.VisitTaskId
|
||||
params.VisitTaskId = dicomInfo.visitTaskId
|
||||
addOrUpdateArchiveTaskStudy(params)
|
||||
.then((res) => {
|
||||
if (dicomInfo.failedFileCount === dicomInfo.fileCount) {
|
||||
|
@ -1336,7 +1337,8 @@ export default {
|
|||
resolve()
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
let Record = {
|
||||
Failed: [],
|
||||
Existed: [],
|
||||
|
@ -1376,6 +1378,17 @@ export default {
|
|||
reason()
|
||||
})
|
||||
},
|
||||
canvasToBlob(canvas) {
|
||||
return new Promise((resolve) => {
|
||||
canvas.toBlob((blob) => {
|
||||
resolve(blob)
|
||||
})
|
||||
})
|
||||
},
|
||||
generateTxtFile(text) {
|
||||
let blob = new Blob(['\ufeff', text], { type: 'text/plain' })
|
||||
return blob
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1467,7 +1467,7 @@ export default {
|
|||
name: `${data.SubjectCode}_${data.VisitName}_${this.$fd(
|
||||
'IsDicom',
|
||||
true
|
||||
)}/${study.StudyCode}_${study.StudyTime}_${
|
||||
)}/${study.StudyCode}_${study.StudyTime.split(" ")[0]}_${
|
||||
series.Modality
|
||||
}/${fileName}`,
|
||||
url: this.OSSclientConfig.basePath + instance.Path,
|
||||
|
@ -1504,7 +1504,7 @@ export default {
|
|||
name: `${data.SubjectCode}_${data.VisitName}_${this.$fd(
|
||||
'IsDicom',
|
||||
true
|
||||
)}/${study.StudyCode}_${study.ImageDate}_${study.Modality}/${
|
||||
)}/${study.StudyCode}_${study.ImageDate.split(" ")[0]}_${study.Modality}/${
|
||||
item.FileName
|
||||
}`,
|
||||
url: this.OSSclientConfig.basePath + item.Path,
|
||||
|
|
Loading…
Reference in New Issue