From 7cc7aac8bd386f5d6f33239557c1878a83d7346a Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 03 四月 2025 15:31:57 +0800 Subject: [PATCH] qx --- src/views/reservation/resercopy/index.vue | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue index 5a19f42..fed9291 100644 --- a/src/views/reservation/resercopy/index.vue +++ b/src/views/reservation/resercopy/index.vue @@ -209,6 +209,7 @@ <el-upload ref="upload" :limit="1" + :key="uploadKey" accept=".xlsx, .xls" :headers="upload.headers" :data="data" @@ -637,6 +638,7 @@ ], }, ListObj: {}, + uploadKey:0, // 閬僵灞� loading: true, pacStatus: "鍚敤", @@ -873,6 +875,8 @@ /** 瀵煎叆鎸夐挳鎿嶄綔 */ handleImport() { if (this.objs.drugManufacturerId && this.objs.reservationTime) { + this.$refs.upload?.clearFiles(); + this.uploadKey = Date.now(); // 鏀瑰彉 key 寮哄埗閲嶆柊娓叉煋缁勪欢 this.upload.title = "鐢ㄦ埛瀵煎叆"; this.upload.open = true; } else { -- Gitblit v1.8.0