部分问题修复

uat
wangxiaoshuang 2025-02-27 10:33:57 +08:00
parent c686850292
commit 00a7e8e609
3 changed files with 1 additions and 35 deletions

View File

@ -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>

View File

@ -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]

View File

@ -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