|
|
|
@ -5,7 +5,7 @@
|
|
|
|
<el-button type="success" icon="el-icon-plus" @click="openCreateModal('add')">新建日历事件</el-button>
|
|
|
|
<el-button type="success" icon="el-icon-plus" @click="openCreateModal('add')">新建日历事件</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="exportCalendar">导出日历事件</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="exportCalendar">导出日历事件</el-button>
|
|
|
|
<div style="color: #333; font-size: 16px; font-weight: 500;">
|
|
|
|
<div style="color: #333; font-size: 16px; font-weight: 500;">
|
|
|
|
本月开课天数:{{ monthDayCalendar }}天 {{ calendarDate.getFullYear() }}年累计开课天数:{{ yearDayCalendar }}天
|
|
|
|
本月开课天数:{{ monthDayCalendar }}天 {{ calendarDate.getFullYear() }}年累计开课天数:{{ yearDayCalendar }}天 本月开课场次:{{ monthCourseCount }}场 {{ calendarDate.getFullYear() }}年开课场次:{{ yearCourseCount }}场
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 日历预览区 -->
|
|
|
|
<!-- 日历预览区 -->
|
|
|
|
@ -67,7 +67,9 @@ import { getToken } from '@/utils/auth';
|
|
|
|
// 记录每一周行在容器内的实际像素 top,解决不等高行导致定位偏差
|
|
|
|
// 记录每一周行在容器内的实际像素 top,解决不等高行导致定位偏差
|
|
|
|
weekRowTops: [],
|
|
|
|
weekRowTops: [],
|
|
|
|
monthDayCalendar: 0,
|
|
|
|
monthDayCalendar: 0,
|
|
|
|
yearDayCalendar: 0
|
|
|
|
yearDayCalendar: 0,
|
|
|
|
|
|
|
|
monthCourseCount: 0,
|
|
|
|
|
|
|
|
yearCourseCount: 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
@ -153,6 +155,8 @@ import { getToken } from '@/utils/auth';
|
|
|
|
this.list = (res.list || res || []).map(e => ({ ...e, id: e.id || e._id }))
|
|
|
|
this.list = (res.list || res || []).map(e => ({ ...e, id: e.id || e._id }))
|
|
|
|
this.monthDayCalendar = res.monthDayCalendar || 0
|
|
|
|
this.monthDayCalendar = res.monthDayCalendar || 0
|
|
|
|
this.yearDayCalendar = res.yearDayCalendar || 0
|
|
|
|
this.yearDayCalendar = res.yearDayCalendar || 0
|
|
|
|
|
|
|
|
this.monthCourseCount = res.monthCourseCount || 0
|
|
|
|
|
|
|
|
this.yearCourseCount = res.yearCourseCount || 0
|
|
|
|
// 重新生成动态样式
|
|
|
|
// 重新生成动态样式
|
|
|
|
this.generateDynamicStyles()
|
|
|
|
this.generateDynamicStyles()
|
|
|
|
// 渲染后测量行位置信息
|
|
|
|
// 渲染后测量行位置信息
|
|
|
|
|