临床数据上传pdf时文件名称添加时间戳

uat_us
caiyiling 2024-04-01 15:18:29 +08:00
parent 08462786de
commit 7969db76fe
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export default {
for (var i = 0; i < this.selectArr.length; ++i) {
const file = await this.fileToBlob(this.selectArr[i])
var timestamp = Date.now()
const res = await this.OSSclient.put(`/${this.trialId}/ClinicalData/${timestamp}${this.selectArr[i].name}`, file)
const res = await this.OSSclient.put(`/${this.trialId}/ClinicalData/${timestamp}_${this.selectArr[i].name}`, file)
this.addFileList.push({ fileName: this.selectArr[i].name, path: this.$getObjectName(res.url), url: this.$getObjectName(res.url) })
}
this.saveClinicalData()