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 {