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) {
if (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>
<div><input type="file" accept=".xlsx" @change="onFileChange" /></div>
<div></div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<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>
</el-dialog>
@ -74,7 +73,6 @@ export default {
importData:[], //
tableDataCol:{}, // key-valuekey excelvalue
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;
},

Loading…
Cancel
Save