From e5175568088cf24077837dcd88e7c7dcde3e0e85 Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Tue, 3 Sep 2024 14:12:39 +0800 Subject: [PATCH] =?UTF-8?q?crc=E4=B8=8A=E4=BC=A0dicom=E6=B7=BB=E5=8A=A0Fil?= =?UTF-8?q?eSize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/oss.js | 1 + .../visit/crc-upload/components/uploadDicomFiles2.vue | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/utils/oss.js b/src/utils/oss.js index 72766652..7bd76414 100644 --- a/src/utils/oss.js +++ b/src/utils/oss.js @@ -22,6 +22,7 @@ async function ossGenerateSTS() { switch (res.Result.ObjectStoreUse) { case 'AliyunOSS': Vue.prototype.OSSclientConfig.bucket = Vue.prototype.OSSclientConfig.bucketName + Vue.prototype.OSSclientConfig.stsToken = Vue.prototype.OSSclientConfig.securityToken Vue.prototype.OSSclientConfig.timeout = 10 * 60 * 1000 let OSSclient = new OSS(Vue.prototype.OSSclientConfig) Vue.prototype.OSSclient = { diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue index ccbcb19f..d00b004b 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles2.vue @@ -1291,6 +1291,7 @@ export default { windowWidth: data.string('x00281051') || '', modality: data.string('x00080060') || '', file: file, + FileSize: file.size, } instanceList.push(instanceItem) } @@ -1661,6 +1662,7 @@ export default { windowCenter: o.windowCenter, windowWidth: o.windowWidth, path: o.myPath, + FileSize: o.FileSize, }) Record.Uploaded.push(name) dicomInfo.failedFileCount++ @@ -1741,6 +1743,7 @@ export default { windowCenter: o.windowCenter, windowWidth: o.windowWidth, path: scope.$getObjectName(res.url), + FileSize: o.FileSize, }) o.myPath = scope.$getObjectName(res.url) Record.Uploaded.push(name)