|
@@ -76,7 +76,7 @@
|
|
|
<el-button type="primary" @click="onCreateQRCode('music')">器乐考级链接</el-button>
|
|
|
<el-button type="primary" @click="onCreateQRCode('vip')">VIP课程链接</el-button>
|
|
|
<el-button type="primary" @click="onCreateQRCode('theory')">乐理考级链接</el-button>
|
|
|
- <el-button type="primary" >导出</el-button>
|
|
|
+ <el-button type="primary" v-permission="'export/statisticsDetail'" @click="exportChildren">导出</el-button>
|
|
|
</div>
|
|
|
<statistic :col="4" class="statistic" :cols="0">
|
|
|
<statistic-item>
|
|
@@ -234,9 +234,11 @@
|
|
|
<script>
|
|
|
import axios from "axios";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
+import qs from 'qs'
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import qrCode from "@/components/QrCode/index";
|
|
|
import { vaildStudentUrl } from "@/utils/validate";
|
|
|
+import { Export } from "@/utils/downLoadFile";
|
|
|
import load from "@/utils/loading";
|
|
|
import { queryByOrganId, getSchool, getMusicGroup } from "@/api/systemManage";
|
|
|
import { getMusicGroupGradeList } from "./api";
|
|
@@ -367,6 +369,14 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ exportChildren(){
|
|
|
+ Export(this, {
|
|
|
+ url: '/api-web/export/statisticsDetail',
|
|
|
+ fileName: '21暑期考级.xls',
|
|
|
+ method: 'post',
|
|
|
+ params:qs.stringify({ ...this.searchForm })
|
|
|
+ }, '您确定导出21暑期考级?')
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
"searchForm.organId"(val) {
|