crc上传数量对不上
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8081b33a97
commit
932efb308b
|
@ -125,7 +125,7 @@ service.interceptors.response.use(
|
|||
}
|
||||
}
|
||||
if (!window.navigator.onLine) {
|
||||
MessageBox.confirm(store.state.lang.language === 'en'? 'Please check your network' : '请检查您的网络', store.state.lang.language === 'en'? 'Warning' : '警告', {
|
||||
MessageBox.confirm(store.state.lang.language === 'en'? 'Please check your network' : '请检查您的网络,稍后刷新页面重试!', store.state.lang.language === 'en'? 'Warning' : '警告', {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
callback: action => {}
|
||||
|
|
|
@ -1107,18 +1107,21 @@ export default {
|
|||
if (!res || !res.url) {
|
||||
params.failedFileCount++
|
||||
} else {
|
||||
dicomInfo.failedFileCount++
|
||||
if (ii === 0 && o.modality !== 'SR') {
|
||||
let fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
||||
o.file
|
||||
)
|
||||
let blob = await scope.dicomToPng(fileId, o.imageColumns, o.imageRows)
|
||||
let thumbnailPath = `/${params.trialId}/Image/${params.siteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}/${v.seriesUid}.png`
|
||||
let OSSclient = scope.OSSclient
|
||||
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
||||
console.log('seriesRes', seriesRes)
|
||||
if (seriesRes && seriesRes.url) {
|
||||
ImageResizePath = scope.$getObjectName(seriesRes.url)
|
||||
try {
|
||||
let fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
||||
o.file
|
||||
)
|
||||
let blob = await scope.dicomToPng(fileId, o.imageColumns, o.imageRows)
|
||||
let thumbnailPath = `/${params.trialId}/Image/${params.siteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}/${v.seriesUid}.png`
|
||||
let OSSclient = scope.OSSclient
|
||||
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
||||
console.log('seriesRes', seriesRes)
|
||||
if (seriesRes && seriesRes.url) {
|
||||
ImageResizePath = scope.$getObjectName(seriesRes.url)
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1142,6 +1145,7 @@ export default {
|
|||
path: scope.$getObjectName(res.url)
|
||||
})
|
||||
Record.Uploaded.push(name)
|
||||
dicomInfo.failedFileCount++
|
||||
Record.FileCount++
|
||||
} else {
|
||||
Record.Failed.push(name)
|
||||
|
|
Loading…
Reference in New Issue