安装xlsx
Excel数据格式(因处理的特殊性,不像PHPExcel后端读取Excel那样,以A_Z可以获取指定列数据,故此Excel默认增加一行数据,作为key)
第一行相当重要***
vue数据处理并展示(vue+elementUi)
上传按钮
<el-upload class="upload-demo" ref="upload" action="" :auto-upload="false" :on-change="handleChange"
:on-error="handelError" :show-file-list="false"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
<el-button type="success">选择文件批量导入</el-button>
</el-upload>
<el-table :data="list" style="width: 100%" border :max-height="maxHeight" v-loading="loading"
element-loading-text="数据导入中">
<el-table-column type="index" label="序号" width="80">
</el-table-column>
<el-table-column prop="o.date" label="配送日期" width="100">
</el-table-column>
<el-table