<template>
<div>
<p class="top">支持通过excel文件批量员工信息,请按`在这里插入代码片`照模板格式编辑员工信息后上传、下载模板。</p>
<input class="input-file" type="file" @change="exportData"
accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
<el-button type="primary" @click="btnClick">导入EXCEL</el-button>
<p v-if="isVisibleSuccess" class="import-success">导入成功</p>
<div class="footer">
<el-button @click="cancel">取消</el-button>
<el-button type="primary" @click="onSubmit">立即创建</el-button>
</div>
</div>
</template>
<script>
import XLSX from 'xlsx'
export default {