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) {
|
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',
|
type: 'warning',
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
callback: action => {}
|
callback: action => {}
|
||||||
|
|
|
@ -1107,18 +1107,21 @@ export default {
|
||||||
if (!res || !res.url) {
|
if (!res || !res.url) {
|
||||||
params.failedFileCount++
|
params.failedFileCount++
|
||||||
} else {
|
} else {
|
||||||
dicomInfo.failedFileCount++
|
|
||||||
if (ii === 0 && o.modality !== 'SR') {
|
if (ii === 0 && o.modality !== 'SR') {
|
||||||
let fileId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
try {
|
||||||
o.file
|
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 blob = await scope.dicomToPng(fileId, o.imageColumns, o.imageRows)
|
||||||
let OSSclient = scope.OSSclient
|
let thumbnailPath = `/${params.trialId}/Image/${params.siteId}/${params.subjectId}/${params.subjectVisitId}/${dicomInfo.studyUid}/${v.seriesUid}/${v.seriesUid}.png`
|
||||||
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
let OSSclient = scope.OSSclient
|
||||||
console.log('seriesRes', seriesRes)
|
let seriesRes = await OSSclient.put(thumbnailPath, blob)
|
||||||
if (seriesRes && seriesRes.url) {
|
console.log('seriesRes', seriesRes)
|
||||||
ImageResizePath = scope.$getObjectName(seriesRes.url)
|
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)
|
path: scope.$getObjectName(res.url)
|
||||||
})
|
})
|
||||||
Record.Uploaded.push(name)
|
Record.Uploaded.push(name)
|
||||||
|
dicomInfo.failedFileCount++
|
||||||
Record.FileCount++
|
Record.FileCount++
|
||||||
} else {
|
} else {
|
||||||
Record.Failed.push(name)
|
Record.Failed.push(name)
|
||||||
|
|
Loading…
Reference in New Issue