默认出勤支持"假前下午上课"例外(校历新增"节前上课"类型)

1. 校历手动设置新增类型 pre_holiday(节前上课,早+中,无晚修)
2. 默认出勤:放假前一天默认只生成上午;若该日手动设为"节前上课",则生成早+中
3. 校历弹窗/列表与文档同步更新
This commit is contained in:
canglan committed 2026-11-26 09:46:19 +08:00
1 parent d9dd7bf7e8
commit ad50f82c7b
5 files changed
+16 -5

No files matched your search

+2 -1
View File
@@ -308,10 +308,11 @@ function renderCalendar(data) {
items.push({ date: d, type: 'makeup', label: '调休', name: workdays[d], manual: false });
});
Object.keys(manual).forEach(function(d) {
const manualLabels = { holiday: '放假', makeup: '补课', pre_holiday: '节前上课' };
items.push({
date: d,
type: manual[d].type,
label: manual[d].type === 'holiday' ? '放假' : '补课',
label: manualLabels[manual[d].type] || manual[d].type,
name: manual[d].note || '',
manual: true
});