From fbf3ecf60ac7b5acd18357e26514d4d0880c47a1 Mon Sep 17 00:00:00 2001 From: mch <1332099529@qq.com> Date: Tue, 15 Aug 2023 12:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5excel=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home.vue | 2 +- src/views/doctorCheck/personnelBatch.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index a3faf15..2f2e061 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -499,7 +499,7 @@ export default { handleCommand(command) { if (this.router.path != command) { this.router.path = command; - this.$router.push({ path: command }); + this.$router.push({ path: command }).catch(()=>{}) } }, //确定修改密码按钮 diff --git a/src/views/doctorCheck/personnelBatch.vue b/src/views/doctorCheck/personnelBatch.vue index 98a9293..101e3a7 100644 --- a/src/views/doctorCheck/personnelBatch.vue +++ b/src/views/doctorCheck/personnelBatch.vue @@ -45,14 +45,13 @@
-
上一步 - 分析确 定分析 + 下一步 @@ -74,7 +73,6 @@ export default { importData:[], //导入原始数据 tableDataCol:{}, //导入原始数据 分析后 字段 key-value:key 为excel字段标题,value 为数据库中后台字段 tableData:[], //导入原始数据 分析后 表格数据 - }; }, methods: { @@ -83,6 +81,7 @@ export default { const file = event.target.files[0]; // 调用导入Excel文件的方法 this.importExcelFile(file); + this.parseImportData() }, importExcelFile(file) { this.filepopupdialogVisible = true; @@ -108,6 +107,7 @@ export default { worksheet.eachRow((row, rowNumber) => { console.log(row.values); this.importData.push(row.values); + // console.log(`第${row.rowNumber}行的数据:${row.rowData}`); }); }); @@ -172,6 +172,7 @@ export default { }, //下一步 nextstep() { + this.dialogVisible3 = true; this.dialogVisible2 = false; },