diff --git a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue index 6eb6e95b..a928bdbf 100644 --- a/src/components/uploadDicomAndNonedicom/nonedicomFile.vue +++ b/src/components/uploadDicomAndNonedicom/nonedicomFile.vue @@ -645,7 +645,10 @@ export default { file.status = 1 let path = `/${this.$route.query.trialId}/TaskImage/${ this.currentRow.SubjectId - }/${this.currentRow.VisitTaskId}/${new Date().getTime()}_${file.name}` + }/${this.currentRow.VisitTaskId}/${new Date().getTime()}${file.name + .substring(file.name.lastIndexOf('.')) + .toLocaleLowerCase()}` + console.log(path) const fileData = await this.fileToBlob(file.file) let res = await this.fileToOss(path, fileData, file) if (res) { 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 cee25238..991d3103 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 @@ -1679,9 +1679,7 @@ export default { dicomInfo.failedFileCount++ Record.FileCount++ } else { - let path = `/${params.trialId}/Image/${ - params.trialSiteId - }/${params.subjectId}/${params.subjectVisitId}/${ + let path = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${ dicomInfo.studyUid }/${scope.getGuid( dicomInfo.studyUid + diff --git a/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue b/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue index 4b5a3e63..c4a4eb80 100644 --- a/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue +++ b/src/views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue @@ -587,6 +587,7 @@ export default { } }, async mounted() { + console.log(this.data) this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId) this.getNoneDicomList() this.trialBodyPartTypes = this.bodyParts ? this.bodyParts.split('|') : [] @@ -947,8 +948,10 @@ export default { let file = this.fileList.filter((item) => item.id === arr[index].id)[0] file.status = 1 let path = `/${this.trialId}/Image/${this.data.SubjectId}/${ - this.data.VisitName - }/${new Date().getTime()}_${file.name}` + this.data.Id + }/${new Date().getTime()}${file.name + .substring(file.name.lastIndexOf('.')) + .toLocaleLowerCase()}` const fileData = await this.fileToBlob(file.file) let res = await this.fileToOss(path, fileData, file) if (res) {