部分问题修复
parent
c686850292
commit
00a7e8e609
|
@ -186,39 +186,6 @@ export default {
|
|||
canel() {
|
||||
this.$emit('close')
|
||||
},
|
||||
handleRemoveFile() {
|
||||
this.form.FileName = null
|
||||
this.form.Path = null
|
||||
this.fileList = []
|
||||
},
|
||||
beforeUpload() {
|
||||
if (this.fileList.length > 0) {
|
||||
this.$alert(this.$t('dictionary:bbrowser:msg:message1'))
|
||||
return
|
||||
}
|
||||
},
|
||||
handlePreview(row, r2) {
|
||||
if (row.fullPath) {
|
||||
window.open(row.fullPath, '_blank')
|
||||
}
|
||||
},
|
||||
async handleUploadFile(param) {
|
||||
this.loading = true
|
||||
var file = await this.fileToBlob(param.file)
|
||||
const res = await this.OSSclient.put(
|
||||
`/System/Browser/${param.file.name}`,
|
||||
file
|
||||
)
|
||||
this.fileList.push({
|
||||
name: param.file.name,
|
||||
path: this.$getObjectName(res.url),
|
||||
fullPath: this.$getObjectName(res.url),
|
||||
url: this.$getObjectName(res.url),
|
||||
})
|
||||
this.form.Path = this.$getObjectName(res.url)
|
||||
this.form.FileName = param.file.name
|
||||
this.loading = false
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
|
@ -297,8 +297,8 @@ export default {
|
|||
this.searchData.IdentityUserId = this.userId
|
||||
this.loading = true
|
||||
let res = await getUserJoinedTrialList(this.searchData)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.loading = false
|
||||
res.OtherInfo = res.OtherInfo ? res.OtherInfo : {}
|
||||
Object.keys(this.otherInfo).forEach((key) => {
|
||||
this.otherInfo[key] = res.OtherInfo[key]
|
||||
|
|
|
@ -838,7 +838,6 @@ export default {
|
|||
// 扫描待上传文件
|
||||
beginScanFiles(e) {
|
||||
var files = [...e.target.files]
|
||||
console.log(files)
|
||||
var sameFiles = []
|
||||
files.forEach((file) => {
|
||||
var extendName = file.name
|
||||
|
|
Loading…
Reference in New Issue