修改文件上传的提示语
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
visible: false,
|
||||
title: this.$t('clickUpload'),
|
||||
uploadAction: window._CONFIG['domianURL'] + '/sys/common/upload',
|
||||
state:undefined,
|
||||
state: undefined,
|
||||
myuploadAction: window._CONFIG['domianURL'] + this.thisFileUploadUrl,
|
||||
upDataList: [],
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
@@ -101,6 +101,7 @@
|
||||
},
|
||||
handleChange(info) {
|
||||
let { file } = info
|
||||
console.log(file)
|
||||
const status = info.file.status
|
||||
info.fileList.forEach((val, index) => {
|
||||
if (val.response && !val.response.result) {
|
||||
@@ -157,10 +158,13 @@
|
||||
this.fileList.push(res)
|
||||
}
|
||||
})
|
||||
console.log(this.myfileList)
|
||||
this.$emit('uploadSuccess', this.fileList)
|
||||
if (this.myfileList.length > 0) {
|
||||
this.$message.destroy()
|
||||
this.$message.success(`${info.file.name} 文件上传成功。`)
|
||||
if (file.response.success) {
|
||||
this.$message.success(`${info.file.name} 文件上传成功。`)
|
||||
}
|
||||
}
|
||||
} else if (status === 'uploading') {
|
||||
this.myfileList = info.fileList
|
||||
|
||||
Reference in New Issue
Block a user