上传添加时间戳
continuous-integration/drone/push Build is passing Details

uat_us
熊飞 2024-01-18 13:57:12 +08:00
parent 0b03780f5e
commit 756544e88a
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ export default {
let imgBlob = this.convertBase64ToBlob(base64) let imgBlob = this.convertBase64ToBlob(base64)
let PicturePath = `/${this.trialId}/Read/${this.subjectId}/${this.visitId}/lc/${new Date().getTime()}.png` let PicturePath = `/${this.trialId}/Read/${this.subjectId}/${this.visitId}/lc/${new Date().getTime()}.png`
const result = await this.OSSclient.put(PicturePath, imgBlob) const result = await this.OSSclient.put(PicturePath, imgBlob)
params2.PicturePath = PicturePath params2.PicturePath = this.$getObjectName(result.url)
SubmitClinicalFormAndSign(params2).then(res => { SubmitClinicalFormAndSign(params2).then(res => {
this.$message.success(this.$t('trials:crcUpload:message:submittedSuccessfully')) this.$message.success(this.$t('trials:crcUpload:message:submittedSuccessfully'))
this.close() this.close()
@ -284,7 +284,7 @@ export default {
let imgBlob = this.convertBase64ToBlob(base64) let imgBlob = this.convertBase64ToBlob(base64)
let PicturePath = `/${this.trialId}/Read/${this.subjectId}/${this.visitId}/lc/${new Date().getTime()}.png` let PicturePath = `/${this.trialId}/Read/${this.subjectId}/${this.visitId}/lc/${new Date().getTime()}.png`
const result = await this.OSSclient.put(PicturePath, imgBlob) const result = await this.OSSclient.put(PicturePath, imgBlob)
params.PicturePath = PicturePath params.PicturePath = this.$getObjectName(result.url)
submitClinicalForm(params).then(res => { submitClinicalForm(params).then(res => {
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(this.$t('common:message:savedSuccessfully'))
this.close() this.close()