From a55ac003b87b3ab2d40514d6fc5b0c9a49ebc046 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 10 Dec 2025 17:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../equipmentInput/index.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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()