commit
This commit is contained in:
@@ -355,9 +355,11 @@
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + id
|
||||
},
|
||||
importFileRemove (file, fileList) {
|
||||
if(fileList){
|
||||
this.fileList = fileList.slice(-1)
|
||||
if (fileList) {
|
||||
this.fileList = []
|
||||
}
|
||||
this.form.fileId = ''
|
||||
this.form.fileName = ''
|
||||
},
|
||||
// 导入按钮 上传之前的钩子
|
||||
beginImportFile (file) {
|
||||
@@ -387,10 +389,11 @@
|
||||
// 导入标准数据成功后执行
|
||||
importFileSuccess (response, file) {
|
||||
if (response.ok) {
|
||||
this.fileList = []
|
||||
this.fileMadel = false
|
||||
this.form.fileId = response.data.id
|
||||
this.form.fileName = response.data.name
|
||||
this.fileList = response.data
|
||||
this.fileList.push(response.data)
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: response.message,
|
||||
|
||||
Reference in New Issue
Block a user