Download the package and introduce the export2Excel.js file
npm install xlsx file-saver -S
npm install script-loader -D
The export file code is as follows:
<template>
<div>
<!--
实现导出功能分两种:
第一种是客户端拿到数据做导出,
第二种是服务器端处理好,返回一个数据流实现导出
-->
<el-button type="primary" :loading=