Commit 1fcafac0 authored by 吴春's avatar 吴春

1

parent f74032b6
...@@ -41,8 +41,10 @@ ...@@ -41,8 +41,10 @@
<!-- <q-btn v-if="msg.ClassType==2" dense text-color="primary" icon="download" flat unelevated label="下载排课表" <!-- <q-btn v-if="msg.ClassType==2" dense text-color="primary" icon="download" flat unelevated label="下载排课表"
@click="DownLoadStuLearnChapterStatic" /> --> @click="DownLoadStuLearnChapterStatic" /> -->
<div style="margin-left:10px;"> <q-btn v-if="msg.ClassType==3" color="accent" class="q-mr-md" size="sm" icon="download" <div style="margin-left:10px;"> <q-btn v-if="msg.ClassType==3" color="accent" class="q-mr-md" size="sm" icon="download"
label="下载排课表" @click="DownLoadStuLearnChapterStatic" /></div> label="下载老师排课表" @click="DownLoadStuLearnChapterStatic" /></div>
<q-separator vertical />
<div style="margin-left:10px;"> <q-btn v-if="msg.ClassType==3" color="accent" class="q-mr-md" size="sm" icon="download"
label="下载学生发课表" @click="DownLoadPlanStudentExcel" /></div>
</div> </div>
<div class="viewbox"> <div class="viewbox">
<q-calendar v-model="selectedDate" :view="viewType" ref="calendar" locale="zh-CN" class="calendar-container " <q-calendar v-model="selectedDate" :view="viewType" ref="calendar" locale="zh-CN" class="calendar-container "
...@@ -404,11 +406,20 @@ ...@@ -404,11 +406,20 @@
}, },
//下载课表 //下载课表
DownLoadStuLearnChapterStatic() { DownLoadStuLearnChapterStatic() {
let dateStartDate = new Date(this.msg.StartDate);
EduDownLoad("/TeacherClass/GetAppointmentPlanStatExcel", this.msg, "排课表统计.xls", res => { let dateEndDate = new Date(this.msg.EndDate);
EduDownLoad("/TeacherClass/GetAppointmentPlanStatExcel", this.msg, (dateStartDate.getMonth() + 1)+"月"+dateStartDate.getDate()+"日-"+ (dateEndDate.getMonth() + 1)+"月"+dateEndDate.getDate()+"日老师排课统计.xls", res => {
}); });
}, },
//下载课表
DownLoadPlanStudentExcel() {
let dateStartDate = new Date(this.msg.StartDate);
let dateEndDate = new Date(this.msg.EndDate);
EduDownLoad("/TeacherClass/GetAppointmentPlanStudentExcel", this.msg, (dateStartDate.getMonth() + 1)+"月"+dateStartDate.getDate()+"日-"+ (dateEndDate.getMonth() + 1)+"月"+dateEndDate.getDate()+"日学生排课统计.xls", res => {
});
},
badgeStyles(event, type, timeStartPos, timeDurationHeight, index, total) { badgeStyles(event, type, timeStartPos, timeDurationHeight, index, total) {
const s = {}; const s = {};
if (timeStartPos) { if (timeStartPos) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment