pengjun 2 years ago
parent
commit
d0e5d3d806
  1. 2
      src/views/Home.vue
  2. 9
      src/views/doctorCheck/personnelBatch.vue

2
src/views/Home.vue

@ -499,7 +499,7 @@ export default {
handleCommand(command) { handleCommand(command) {
if (this.router.path != command) { if (this.router.path != command) {
this.router.path = command; this.router.path = command;
this.$router.push({ path: command });
this.$router.push({ path: command }).catch(()=>{})
} }
}, },
// //

9
src/views/doctorCheck/personnelBatch.vue

@ -45,14 +45,13 @@
<div class="selectfile"> <div class="selectfile">
<div> <div>
<div><input type="file" accept=".xlsx" @change="onFileChange" /></div> <div><input type="file" accept=".xlsx" @change="onFileChange" /></div>
<div></div> <div></div>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="back3">上一步</el-button> <el-button @click="back3">上一步</el-button>
<el-button type="primary" @click="parseImportData(startRow)">分析</el-button
<el-button type="primary" @click=""> </el-button
<el-button type="primary" @click="parseImportData(startRow)">分析</el-button>
<el-button type="primary" @click="nextTick">下一步</el-button
> >
</span> </span>
</el-dialog> </el-dialog>
@ -74,7 +73,6 @@ export default {
importData:[], // importData:[], //
tableDataCol:{}, // key-valuekey excelvalue tableDataCol:{}, // key-valuekey excelvalue
tableData:[], // tableData:[], //
}; };
}, },
methods: { methods: {
@ -83,6 +81,7 @@ export default {
const file = event.target.files[0]; const file = event.target.files[0];
// Excel // Excel
this.importExcelFile(file); this.importExcelFile(file);
this.parseImportData()
}, },
importExcelFile(file) { importExcelFile(file) {
this.filepopupdialogVisible = true; this.filepopupdialogVisible = true;
@ -108,6 +107,7 @@ export default {
worksheet.eachRow((row, rowNumber) => { worksheet.eachRow((row, rowNumber) => {
console.log(row.values); console.log(row.values);
this.importData.push(row.values); this.importData.push(row.values);
// console.log(`${row.rowNumber}${row.rowData}`); // console.log(`${row.rowNumber}${row.rowData}`);
}); });
}); });
@ -172,6 +172,7 @@ export default {
}, },
// //
nextstep() { nextstep() {
this.dialogVisible3 = true; this.dialogVisible3 = true;
this.dialogVisible2 = false; this.dialogVisible2 = false;
}, },

Loading…
Cancel
Save