|
@@ -24,7 +24,7 @@
|
|
|
<!-- <el-button type="primary" @click="exportData()">
|
|
|
<i class="el-icon-download"></i>导出(Excel)
|
|
|
</el-button> -->
|
|
|
- <el-button type="primary" @click="exportExcel()">
|
|
|
+ <el-button type="primary" @click="exportExcel">
|
|
|
<i class="el-icon-download"></i>导出(Excel)
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="refresh()">
|
|
@@ -170,6 +170,13 @@ export default {
|
|
|
this.$router.go(0);
|
|
|
},
|
|
|
exportExcel(){
|
|
|
+ if(this.selectionListMap2.length<=0){
|
|
|
+ this.$message({
|
|
|
+ message: "请先勾选数据!",
|
|
|
+ type: "warning"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
//创建工作簿对象
|
|
|
let wb = XLSX.utils.book_new();
|
|
|
//数据
|