From b87e910f9a83a3bc796bbd24dc580f8aefa366aa Mon Sep 17 00:00:00 2001 From: liweijie Date: Fri, 18 Sep 2026 20:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=AD=A6=E9=85=8D=E5=BD=93=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TeachingAllocationDialog.vue | 3 +- .../views/teachOffice/shiftSemester/index.vue | 37 ++++++++----------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/frontend/src/views/teachOffice/shiftSemester/TeachingAllocationDialog.vue b/frontend/src/views/teachOffice/shiftSemester/TeachingAllocationDialog.vue index 565d36e9a..012330faf 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 f0969b641..fbf7a42f5 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" >