修改文件上传的提示语

This commit is contained in:
qq787203167
2022-03-23 23:31:49 +08:00
parent 5343acaec1
commit 08ed9f9c63
3 changed files with 10 additions and 3 deletions
@@ -64,6 +64,7 @@
getPush(data) {
this.tableKey = data
this.visible = true
this.departId = ''
this.queryDepartUserTreeList()
},
onSelect(selectedKeys) {
@@ -161,8 +161,10 @@
this.reconnect()
},
websocketOnmessage: function(e) {
if (e.data != 'test') {
this.loadData()
}
//系统通知
this.loadData()
},
websocketOnclose: function(e) {
console.log(e)
+6 -2
View File
@@ -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