临床数据上传pdf时文件名称添加时间戳
parent
08462786de
commit
7969db76fe
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue