默认出勤支持"假前下午上课"例外(校历新增"节前上课"类型)
1. 校历手动设置新增类型 pre_holiday(节前上课,早+中,无晚修) 2. 默认出勤:放假前一天默认只生成上午;若该日手动设为"节前上课",则生成早+中 3. 校历弹窗/列表与文档同步更新
This commit is contained in:
1 parent
d9dd7bf7e8
commit
ad50f82c7b
5 files changed
+16
-5
No files matched your search
@@ -152,6 +152,7 @@ include __DIR__ . '/../includes/header.php';
|
||||
<input type="date" id="calendarNewDate" style="width:auto;">
|
||||
<select id="calendarNewType" style="width:auto;">
|
||||
<option value="makeup">补课(按上课)</option>
|
||||
<option value="pre_holiday">节前上课(早+中)</option>
|
||||
<option value="holiday">放假(按休息)</option>
|
||||
</select>
|
||||
<input type="text" id="calendarNewNote" placeholder="备注(选填)" maxlength="100" style="flex:1; min-width:120px;">
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user