|
@@ -82,12 +82,7 @@
|
|
|
:value="item.id"
|
|
|
></el-option>
|
|
|
</select-all>
|
|
|
- <!-- <el-button
|
|
|
- style="margin-left: 10px"
|
|
|
- type="primary"
|
|
|
- @click="exportMusicTeamNum"
|
|
|
- >导出</el-button
|
|
|
- > -->
|
|
|
+
|
|
|
<ExportChiose
|
|
|
style="margin-left: 10px"
|
|
|
ExportEnum="MUSIC_GROUP_NORMAL_STUDENT_NUM"
|
|
@@ -208,6 +203,53 @@
|
|
|
:flag="!this.trainOrganId"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <!-- 老师使用云教练数据
|
|
|
+ -->
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="m-wrap"
|
|
|
+ v-permission="'export/teacherCloudTrainingList'"
|
|
|
+ >
|
|
|
+ <div class="title">老师使用云教练数据:</div>
|
|
|
+ <select-all
|
|
|
+ v-model.trim="trainTeacherOrganId"
|
|
|
+ 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="trainTeacherTimer"
|
|
|
+ style="width: 360px; margin-left: 15px"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ :picker-options="{
|
|
|
+ firstDayOfWeek: 1
|
|
|
+ }"
|
|
|
+ ></el-date-picker>
|
|
|
+ <el-button
|
|
|
+ style="margin-left: 10px"
|
|
|
+ type="primary"
|
|
|
+ @click="exportTeacherTrain"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- -->
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item
|
|
|
name="2"
|
|
@@ -1110,7 +1152,10 @@ export default {
|
|
|
.set("date", 1)
|
|
|
.format("YYYY-MM-DD"),
|
|
|
dayjs().format("YYYY-MM-DD")
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ trainTeacherOrganId:[],
|
|
|
+trainTeacherTimer:[]
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -1543,6 +1588,30 @@ export default {
|
|
|
"您确定导出问卷调查?"
|
|
|
);
|
|
|
},
|
|
|
+
|
|
|
+ exportTeacherTrain(){
|
|
|
+ if(this.trainTeacherTimer.length<1){
|
|
|
+ this.$message.error('请选择时间段')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if( this.trainTeacherOrganId.length <1){
|
|
|
+ this.$message.error('请选择分部')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let startTime =this.trainTeacherTimer[0] || null;
|
|
|
+ let endTime = this.trainTeacherTimer[1] || null
|
|
|
+ Export(
|
|
|
+ this,
|
|
|
+ {
|
|
|
+ url: "/api-web/export/teacherCloudTrainingList",
|
|
|
+ fileName: "老师使用云教练数据.xls",
|
|
|
+ method: "post",
|
|
|
+ params: qs.stringify( { organIdList:this.trainTeacherOrganId.join(','),startTime, endTime})
|
|
|
+ },
|
|
|
+ "您确定导出老师使用云教练数据?"
|
|
|
+ );
|
|
|
+ },
|
|
|
// exportLeBao() {
|
|
|
// let endTime, startTime;
|
|
|
// if (this.leBaoTimer && this.leBaoTimer.length > 1) {
|