diff --git a/src/api/load.js b/src/api/load.js
index 91981151..f867992c 100644
--- a/src/api/load.js
+++ b/src/api/load.js
@@ -8,11 +8,11 @@ export function requestPackageAndAnonymizImage(params) {
})
}
// 获取影像上传列表
-export function getSubjectImageUploadList(params) {
+export function getSubjectImageUploadList(data) {
return request({
url: '/DownloadAndUpload/getSubjectImageUploadList',
- method: 'get',
- params
+ method: 'post',
+ data
})
}
// 预上传
@@ -71,4 +71,12 @@ export function getIRUploadTaskNoneDicomStudyList(data) {
method: 'post',
data
})
+}
+// 校验上传影像
+export function verifyIRStudyAllowUpload(data) {
+ return request({
+ url: '/DownloadAndUpload/verifyIRStudyAllowUpload',
+ method: 'post',
+ data
+ })
}
\ No newline at end of file
diff --git a/src/components/uploadDicomAndNonedicom/dicomFile.vue b/src/components/uploadDicomAndNonedicom/dicomFile.vue
index 78f81af3..0b8f31ea 100644
--- a/src/components/uploadDicomAndNonedicom/dicomFile.vue
+++ b/src/components/uploadDicomAndNonedicom/dicomFile.vue
@@ -3,38 +3,48 @@
{{ $t('upload:dicom:title') }}
-
- {{ $t('upload:dicom:button:upload') }}
-
-
- {{ $t('upload:dicom:button:preview') }}
-
-
- {{ $t('upload:dicom:button:delete') }}
-
+
-
-
+
+
-
+
-
+
0
-
+
-
-
-
-
+ prop="UploadStudyList"
+ :label="$t('upload:dicom:table:uploadStudyListNum')"
+ >
+ {{
+ scope.row.UploadStudyList && Array.isArray(scope.row.UploadStudyList)
+ ? scope.row.UploadStudyList.length
+ : 0
+ }}
+
-
-
-
-
+
-
+
+ {{ $t('upload:dicom:uploadTitle') }}
+
-
@@ -238,11 +278,6 @@
min-width="150"
show-overflow-tooltip
>
-
+
\ No newline at end of file
diff --git a/src/components/uploadDicomAndNonedicom/index.vue b/src/components/uploadDicomAndNonedicom/index.vue
index 67bad8bc..058f4514 100644
--- a/src/components/uploadDicomAndNonedicom/index.vue
+++ b/src/components/uploadDicomAndNonedicom/index.vue
@@ -12,7 +12,12 @@
:label="$t('uploadDicomAndNonedicom:label:dicom')"
name="dicom"
>
-
+
{
return {
SubjectId: null,
@@ -377,6 +380,7 @@ export default {
btnLoading: false,
currentRow: {},
studyMonitorId: null,
+ open: null,
}
},
watch: {
@@ -404,7 +408,7 @@ export default {
store.dispatch('trials/setUnLock', this.btnLoading)
},
},
- mounted() {
+ created() {
this.getList()
},
methods: {
@@ -534,10 +538,22 @@ export default {
// 预览文件
previewFile(row) {
// window.open(row.FullFilePath, '_blank')
- this.imgObj.url = row.FullFilePath
+ this.imgObj.url = row.FullFilePath || row.Path
this.imgObj.loading = true
this.imgObj.visible = true
},
+ // 预览单个检查下非Dicom文件
+ handlePreviewNoneDicomFiles(row) {
+ if (this.open) {
+ this.open.close()
+ }
+ let trialId = this.$route.query.trialId
+ var token = getToken()
+ const routeData = this.$router.resolve({
+ path: `/showNoneDicoms?trialId=${trialId}&subjectVisitId=${row.SourceSubjectVisitId}&studyId=${row.Id}&TokenKey=${token}`,
+ })
+ this.open = window.open(routeData.href, '_blank')
+ },
// 删除
async remove(item) {
try {
diff --git a/src/utils/multipartUpload/aws.js b/src/utils/multipartUpload/aws.js
index cac0d313..3de55a21 100644
--- a/src/utils/multipartUpload/aws.js
+++ b/src/utils/multipartUpload/aws.js
@@ -126,13 +126,13 @@ async function uploadFile({ s3, fileInformation, uploadId, bucket, changeStatus,
let timeList = Object.keys(bytesReceivedPerSecond).sort((a, b) => a - b);
let bytesTime = timeList.find(item => time - item < 1000);
if (bytesTime) {
- bytesReceivedPerSecond[bytesTime] += fileInformation.file.size * percentage;
+ bytesReceivedPerSecond[bytesTime] += fileInformation.file.size * (percentage - lastPercentage);
} else {
console.log("未查询到时间")
if (timeList.length > 0) {
- bytesReceivedPerSecond[timeList[timeList.length - 1]] += fileInformation.file.size * percentage;
+ bytesReceivedPerSecond[timeList[timeList.length - 1]] += fileInformation.file.size * (percentage - lastPercentage);
} else {
- bytesReceivedPerSecond[time] = fileInformation.file.size * percentage;
+ bytesReceivedPerSecond[time] = fileInformation.file.size * (percentage - lastPercentage);
}
}
}
diff --git a/src/utils/multipartUpload/oss.js b/src/utils/multipartUpload/oss.js
index b4eab44f..5ee667b4 100644
--- a/src/utils/multipartUpload/oss.js
+++ b/src/utils/multipartUpload/oss.js
@@ -57,13 +57,13 @@ async function multipartUpload(OSSclient, partSize, saveFileId, uploadFile, data
let timeList = Object.keys(bytesReceivedPerSecond).sort((a, b) => a - b);
let bytesTime = timeList.find(item => time - item < 1000);
if (bytesTime) {
- bytesReceivedPerSecond[bytesTime] += data.file.size * percentage;
+ bytesReceivedPerSecond[bytesTime] += data.file.size * (percentage - checkData[saveFileId]);
} else {
console.log("未查询到时间")
if (timeList.length > 0) {
- bytesReceivedPerSecond[timeList[timeList.length - 1]] += data.file.size * percentage;
+ bytesReceivedPerSecond[timeList[timeList.length - 1]] += data.file.size * (percentage - checkData[saveFileId]);
} else {
- bytesReceivedPerSecond[time] = data.file.size * percentage;
+ bytesReceivedPerSecond[time] = data.file.size * (percentage - checkData[saveFileId]);
}
}
}
@@ -136,6 +136,7 @@ function initPage() {
function setTimer() {
if (timer) return false;
timer = setInterval(() => {
+ console.log(Object.assign({}, bytesReceivedPerSecond))
let timeList = Object.keys(bytesReceivedPerSecond).sort((a, b) => a - b);
if (timeList.length > 0) {
let totalBytes = timeList.reduce((sum, bytes) => sum + bytesReceivedPerSecond[bytes], 0) / (5 * 1024);
diff --git a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue
index 698623d8..1d4e99bf 100644
--- a/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue
@@ -657,6 +657,13 @@
:criterion="trialCriterion"
:status="uploadStatus"
/> -->
+