diff --git a/frontend/src/views/teachOffice/shiftSemester/TeachingAllocationDialog.vue b/frontend/src/views/teachOffice/shiftSemester/TeachingAllocationDialog.vue index 565d36e9..012330fa 100644 --- a/frontend/src/views/teachOffice/shiftSemester/TeachingAllocationDialog.vue +++ b/frontend/src/views/teachOffice/shiftSemester/TeachingAllocationDialog.vue @@ -407,7 +407,8 @@ export default { } }, isMonthStart(w) { - return w.startDate.getDate() <= 7 + const d = new Date(String(w.startDate).replace(/-/g, '/')) + return !isNaN(d) && d.getDate() <= 7 }, shortDate(dateStr) { return dateStr ? String(dateStr).slice(5) : '' diff --git a/frontend/src/views/teachOffice/shiftSemester/index.vue b/frontend/src/views/teachOffice/shiftSemester/index.vue index f0969b64..fbf7a42f 100644 --- a/frontend/src/views/teachOffice/shiftSemester/index.vue +++ b/frontend/src/views/teachOffice/shiftSemester/index.vue @@ -51,19 +51,19 @@
批量创建班次学期 新增 - 编辑 + 编辑 删除所选 快速设定学期日期 - 吸取预设日期 + 吸取预设日期 批量设置教学任务 批量学期第次 开放教员排课 预设合班 预设拆班 批量生成必修课程 - 编辑班历 - 编辑班次教学任务 - 教学配当 + 编辑班历 + 编辑班次教学任务 + 教学配当 导出配当 发布运行课表 删除运行课表 @@ -81,7 +81,6 @@ class="class-table" :row-class-name="waveRowClass" @selection-change="handleSelectionChange" - @current-change="handleCurrentChange" >