This commit is contained in:
zhutianqi
2021-12-31 11:25:55 +08:00
parent 5e847cf946
commit fbb75e14b4
@@ -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,