Commit decdd9f6 authored by yht15023815643's avatar yht15023815643

评标助手

parent ac6a5f66
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
:file-list="fileList" :file-list="fileList"
:on-change="handleFileListChange" :on-change="handleFileListChange"
:headers="headers" :headers="headers"
:on-remove="onRemove"
:on-success="onSuccess"> :on-success="onSuccess">
<img class="up_img" src="@/assets/images/plus.png"> <img class="up_img" src="@/assets/images/plus.png">
<div class="up_text">点击选择文件或将文件拖拽至此导入企业名录</div> <div class="up_text">点击选择文件或将文件拖拽至此导入企业名录</div>
...@@ -97,14 +98,19 @@ import {importTemplate} from '@/api/supplier/assistant.js'; ...@@ -97,14 +98,19 @@ import {importTemplate} from '@/api/supplier/assistant.js';
this.isUpload = true this.isUpload = true
} }
}, },
onRemove(){
this.isUpload = false
},
onSuccess(res, file, fileList) { onSuccess(res, file, fileList) {
this.$refs["upload"].clearFiles()
this.isUpload = false;
if (res.code == 200) { if (res.code == 200) {
this.addsuccess = true; this.addsuccess = true;
this.$emit("loadingFn",true); this.$emit("loadingFn",true);
this.$refs["upload"].clearFiles();
this.isUpload = false;
}else { }else {
this.importCancel() this.$emit("loadingFn",false);
this.$message.error({ message: res.msg, showClose: true }) this.$message.error({ message: res.msg, showClose: true })
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment