From a8c0679305c980a9878bc44a44408de9c00d3a64 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 03 四月 2025 17:46:22 +0800 Subject: [PATCH] qx --- 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