diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue index bb51d14e..909fcd38 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/index.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue @@ -573,7 +573,7 @@ :action="upload.url2 + '?orderId=' + orderId" :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" - :on-success="handleFileSuccess" + :on-success="handleFileSuccess2" :auto-upload="false" drag > @@ -778,10 +778,8 @@ export default { // 文件上传成功处理 handleFileSuccess(response, file, fileList) { this.upload.open = false - this.upload.open2 = false this.upload.isUploading = false this.$refs.upload.clearFiles() - this.$refs.upload2.clearFiles() this.$alert( "
" + response.msg + @@ -800,6 +798,21 @@ export default { this.getList() }, 200) }, + handleFileSuccess2(response, file, fileList) { + this.upload.open2 = false + this.upload.isUploading = false + this.$refs.upload2.clearFiles() + this.$alert( + "
" + + response.msg + + '
', + '导入结果', + { dangerouslyUseHTMLString: true }, + ) + setTimeout(() => { + this.getList() + }, 200) + }, // 提交上传文件 submitFileForm() { this.$refs.upload.submit()