|
@@ -205,7 +205,8 @@
|
|
|
$helpers.permission('studentInstrument/export') ||
|
|
|
$helpers.permission('export/studentVipPractice') ||
|
|
|
$helpers.permission('export/exercisesSituation') ||
|
|
|
- $helpers.permission('export/exportIndexErrData')
|
|
|
+ $helpers.permission('export/exportIndexErrData') ||
|
|
|
+ $helpers.permission('export/exportMusicGroupCourseList')
|
|
|
"
|
|
|
>
|
|
|
<template slot="title">
|
|
@@ -541,6 +542,52 @@
|
|
|
:isDownList="true"
|
|
|
/>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="m-wrap" v-permission="'export/exportMusicGroupCourseList'">
|
|
|
+ <div class="title">乐团数据导出:</div>
|
|
|
+ <select-all
|
|
|
+ v-model.trim="teamOrganId"
|
|
|
+ class="organSelect"
|
|
|
+ style="width: 100%"
|
|
|
+ filterable
|
|
|
+ multiple
|
|
|
+ placeholder="请选择分部"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </select-all>
|
|
|
+ <el-date-picker
|
|
|
+ v-model.trim="teamTimer"
|
|
|
+ style="width: 360px; margin-left: 15px"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ @change="getWeekTime"
|
|
|
+ :picker-options="{
|
|
|
+ firstDayOfWeek: 1,
|
|
|
+ }"
|
|
|
+ ></el-date-picker>
|
|
|
+ <el-button
|
|
|
+ style="margin-left: 10px"
|
|
|
+ type="primary"
|
|
|
+ @click="exportMusicGroup"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
+ <!-- <ExportChiose
|
|
|
+ style="margin-left: 10px"
|
|
|
+ ExportEnum="EXERCISES_SITUATION"
|
|
|
+ :exportData="exportDetailService"
|
|
|
+ fileName="服务指标明细"
|
|
|
+ errorMsg="请选择导出月份"
|
|
|
+ /> -->
|
|
|
+ </div>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item
|
|
|
name="3"
|
|
@@ -742,6 +789,7 @@ import qs from "qs";
|
|
|
import dayjs from "dayjs";
|
|
|
import axios from "axios";
|
|
|
import { getToken, getTenantId } from "@/utils/auth";
|
|
|
+import { getTimes } from "@/utils";
|
|
|
import load from "@/utils/loading";
|
|
|
export default {
|
|
|
name: "reportForm",
|
|
@@ -779,6 +827,8 @@ export default {
|
|
|
vipStudentCourseOrganId: [],
|
|
|
musicStudentCourseOrganId: [],
|
|
|
VipStudentOrganId: [],
|
|
|
+ teamOrganId: [],
|
|
|
+ teamTimer: [],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -1465,6 +1515,22 @@ export default {
|
|
|
// "是否确认导出报表?"
|
|
|
// );
|
|
|
// },
|
|
|
+ exportMusicGroup() {
|
|
|
+ let params = { ...getTimes(this.teamTimer, ["startTime", "endTime"]) ,organId:this.teamOrganId.join(',')
|
|
|
+ };
|
|
|
+
|
|
|
+ Export(
|
|
|
+ this,
|
|
|
+ {
|
|
|
+ method: "post",
|
|
|
+ url: "/api-web/export/exportMusicGroupCourseList",
|
|
|
+ params: this.$helpers.qs.stringify({
|
|
|
+ ...params,
|
|
|
+ }),
|
|
|
+ },
|
|
|
+ "是否确认导出报表?"
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
exportAttendance() {
|
|
@@ -1519,8 +1585,8 @@ export default {
|
|
|
};
|
|
|
return data;
|
|
|
},
|
|
|
- exportVipStudent(){
|
|
|
- let data = {
|
|
|
+ exportVipStudent() {
|
|
|
+ let data = {
|
|
|
organId: this.VipStudentOrganId.join(","),
|
|
|
};
|
|
|
return data;
|