From 9314d8cdd5e7a29f1061f59cccd7cce17b7fef3b Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期五, 11 四月 2025 16:14:59 +0800
Subject: [PATCH] 2

---
 src/views/reservation/resercopy/index.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue
index 145681a..beb9822 100644
--- a/src/views/reservation/resercopy/index.vue
+++ b/src/views/reservation/resercopy/index.vue
@@ -208,6 +208,7 @@
       <el-upload
         ref="upload"
         :limit="1"
+        :key="uploadKey" 
         accept=".xlsx, .xls"
         :headers="upload.headers"
         :data="data"
@@ -437,7 +438,7 @@
       }
     };
     return {
-     
+      uploadKey: 0,
       leftList: "",
       isdisabled: true,
       setDisabled: {
@@ -871,6 +872,10 @@
     /** 瀵煎叆鎸夐挳鎿嶄綔 */
     handleImport() {
       if (this.objs.drugManufacturerId && this.objs.reservationTime) {
+          // 娓呯┖缁勪欢鍐呴儴鐘舵�侊紙鍚凡涓婁紶鏂囦欢锛�
+      this.$refs.upload?.clearFiles();
+      this.uploadKey = Date.now(); // 鏀瑰彉 key 寮哄埗閲嶆柊娓叉煋缁勪欢
+      // 鍚屾鏁版嵁婧愶紙Vue2 闇�鐢� $set 纭繚鍝嶅簲寮忥級
         this.upload.title = "鐢ㄦ埛瀵煎叆";
         this.upload.open = true;
       } else {

--
Gitblit v1.8.0