|
|
|
|
@ -690,7 +690,7 @@ export default {
|
|
|
|
|
that.dataObj.policy = response.data.policy
|
|
|
|
|
that.dataObj.signature = response.data.signature
|
|
|
|
|
that.dataObj.ossaccessKeyId = response.data.accessid
|
|
|
|
|
that.dataObj.key = response.data.dir + that.getUUID() + '_${filename}'
|
|
|
|
|
that.dataObj.key = response.data.dir + that.getUUID()
|
|
|
|
|
that.dataObj.dir = response.data.dir
|
|
|
|
|
that.dataObj.host = response.data.host
|
|
|
|
|
console.log('响应的数据222。。。', that.dataObj)
|
|
|
|
|
@ -712,7 +712,8 @@ export default {
|
|
|
|
|
let _self = this
|
|
|
|
|
this.loading = true
|
|
|
|
|
var formData = new FormData()
|
|
|
|
|
|
|
|
|
|
let str = file.file.name.replace(/\s/g, "")
|
|
|
|
|
_self.dataObj.key = _self.dataObj.key + str
|
|
|
|
|
//注意formData里append添加的键的大小写
|
|
|
|
|
formData.append('key', _self.dataObj.key) //存储在oss的文件路径
|
|
|
|
|
formData.append('OSSAccessKeyId', _self.dataObj.ossaccessKeyId) //accessKeyId
|
|
|
|
|
@ -785,7 +786,7 @@ export default {
|
|
|
|
|
file.onSuccess()
|
|
|
|
|
_self.uploadFileFlag = true
|
|
|
|
|
console.log(data)
|
|
|
|
|
var img = _self.dataObj.host + '/' + _self.dataObj.key.replace('${filename}', file.file.name)
|
|
|
|
|
var img = _self.dataObj.host + '/' + _self.dataObj.key
|
|
|
|
|
_self.form.idCardImageUrl = img
|
|
|
|
|
console.log(_self.form.idCardImageUrl)
|
|
|
|
|
},
|
|
|
|
|
@ -801,7 +802,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
let _self = this
|
|
|
|
|
var formData = new FormData()
|
|
|
|
|
|
|
|
|
|
let str = file.file.name.replace(/\s/g, "")
|
|
|
|
|
_self.dataObj.key = _self.dataObj.key + str
|
|
|
|
|
//注意formData里append添加的键的大小写
|
|
|
|
|
formData.append('key', _self.dataObj.key) //存储在oss的文件路径
|
|
|
|
|
formData.append('OSSAccessKeyId', _self.dataObj.ossaccessKeyId) //accessKeyId
|
|
|
|
|
@ -829,7 +831,7 @@ export default {
|
|
|
|
|
success: function (data) {
|
|
|
|
|
file.onSuccess()
|
|
|
|
|
console.log(data)
|
|
|
|
|
var img = _self.dataObj.host + '/' + _self.dataObj.key.replace('${filename}', file.file.name)
|
|
|
|
|
var img = _self.dataObj.host + '/' + _self.dataObj.key
|
|
|
|
|
that.fileListT2.push(img)
|
|
|
|
|
},
|
|
|
|
|
fail: function (err) {
|
|
|
|
|
|