上传名称格式化问题
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
|
file.status = 1
|
||||||
let path = `/${this.$route.query.trialId}/TaskImage/${
|
let path = `/${this.$route.query.trialId}/TaskImage/${
|
||||||
this.currentRow.SubjectId
|
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)
|
const fileData = await this.fileToBlob(file.file)
|
||||||
let res = await this.fileToOss(path, fileData, file)
|
let res = await this.fileToOss(path, fileData, file)
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
|
@ -1679,9 +1679,7 @@ export default {
|
||||||
dicomInfo.failedFileCount++
|
dicomInfo.failedFileCount++
|
||||||
Record.FileCount++
|
Record.FileCount++
|
||||||
} else {
|
} else {
|
||||||
let path = `/${params.trialId}/Image/${
|
let path = `/${params.trialId}/Image/${params.subjectId}/${params.subjectVisitId}/${
|
||||||
params.trialSiteId
|
|
||||||
}/${params.subjectId}/${params.subjectVisitId}/${
|
|
||||||
dicomInfo.studyUid
|
dicomInfo.studyUid
|
||||||
}/${scope.getGuid(
|
}/${scope.getGuid(
|
||||||
dicomInfo.studyUid +
|
dicomInfo.studyUid +
|
||||||
|
|
|
@ -587,6 +587,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
console.log(this.data)
|
||||||
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId)
|
||||||
this.getNoneDicomList()
|
this.getNoneDicomList()
|
||||||
this.trialBodyPartTypes = this.bodyParts ? this.bodyParts.split('|') : []
|
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]
|
let file = this.fileList.filter((item) => item.id === arr[index].id)[0]
|
||||||
file.status = 1
|
file.status = 1
|
||||||
let path = `/${this.trialId}/Image/${this.data.SubjectId}/${
|
let path = `/${this.trialId}/Image/${this.data.SubjectId}/${
|
||||||
this.data.VisitName
|
this.data.Id
|
||||||
}/${new Date().getTime()}_${file.name}`
|
}/${new Date().getTime()}${file.name
|
||||||
|
.substring(file.name.lastIndexOf('.'))
|
||||||
|
.toLocaleLowerCase()}`
|
||||||
const fileData = await this.fileToBlob(file.file)
|
const fileData = await this.fileToBlob(file.file)
|
||||||
let res = await this.fileToOss(path, fileData, file)
|
let res = await this.fileToOss(path, fileData, file)
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
Loading…
Reference in New Issue