上传添加时间戳
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0b03780f5e
commit
756544e88a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue