From fbb75e14b40759ca01a3c87e38e25c18a7ee3631 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Fri, 31 Dec 2021 11:25:55 +0800 Subject: [PATCH] commit --- .../processCenter/pages/creatProcess/bzdy/step3.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue index 0ceeb56dd..3923ec215 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue @@ -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,