上传名称格式化问题
continuous-integration/drone/push Build is passing Details

uat_us
DESKTOP-6C3NK6N\WXS 2024-09-06 20:09:26 +08:00
parent 342c9325bf
commit e043e85630
3 changed files with 10 additions and 6 deletions

View File

@ -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) {

View File

@ -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 +

View File

@ -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) {