I'm only needed occasionally, but never important.
工作中遇到的,整理总结一下。 技术栈
vue,ts,elementUI
业务需求
导入excel表单,导入成功后预览表单数据。根据表单首行字段,动态生成预览表单的表头。
excel表单格式:
实现
页面布局,调用接口获取到excel表格中数据,存入 fields 中。
<el-table :data="tableList"> <el-table-column label="行号" width="100"> <template slot-scope="scope"> <div>{
{scope.row.index}}div> template>