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