上传名称格式化问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
342c9325bf
commit
e043e85630
|
@ -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) {
|
||||
|
|
|
@ -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 +
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue