bug:圈住的地方缺少一个上传附件进度条

This commit is contained in:
fanlin
2021-07-28 16:12:17 +08:00
parent 7dd33233d2
commit 4b80c2768b
@@ -849,7 +849,7 @@
accept=".pdf, .PDF, .ppt, .PPT, .pptx,.PPTX, .doc, .DOC, .docx, .DOCX, .xls, .xlsx" accept=".pdf, .PDF, .ppt, .PPT, .pptx,.PPTX, .doc, .DOC, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile" :before-upload="beginImportFile"
:on-success="importFileSuccess" :on-success="importFileSuccess"
:show-file-list="false" :show-file-list="true"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -1964,7 +1964,11 @@
return true return true
}, },
// 导入标准数据成功后执行 // 导入标准数据成功后执行
importFileSuccess (response, file) { importFileSuccess (response, file,fileList) {
// 上传成功后判断是否是两条数据是的话替换掉旧数据
if (fileList.length > 1) {
fileList.splice(0, 1)
}
if (response.ok) { if (response.ok) {
this.fileMadel = false this.fileMadel = false
if(this.fileType === 'fbgbjbd'){ if(this.fileType === 'fbgbjbd'){