v2.1.10 — 移除周列表强制4周填充逻辑,避免跨月虚周
This commit is contained in:
@@ -169,12 +169,6 @@
|
||||
weeks.push(fmtWeek(monday));
|
||||
monday.setDate(monday.getDate() + 7);
|
||||
}
|
||||
// 确保至少有4周显示
|
||||
while (weeks.length < 4) {
|
||||
var w = fmtWeek(monday);
|
||||
if (weeks.indexOf(w) < 0) weeks.push(w);
|
||||
monday.setDate(monday.getDate() + 7);
|
||||
}
|
||||
|
||||
var todayWk = fmtWeek(new Date());
|
||||
var today = new Date();
|
||||
@@ -191,7 +185,6 @@
|
||||
var sunday = new Date(monday);
|
||||
sunday.setDate(sunday.getDate() + 6);
|
||||
var dateRange = (monday.getMonth()+1) + '.' + monday.getDate() + ' - ' + sunday.getDate();
|
||||
var statusIcon = status === 'pass' ? '✓' : (status === 'fail' ? '✗' : '○');
|
||||
var statusLabel = status === 'pass' ? '达标' : (status === 'fail' ? '未达标' : '未打卡');
|
||||
wHtml += '<div class="' + cls + '" data-week="' + w + '">' +
|
||||
'<div class="cal-wk-info">' +
|
||||
|
||||
Reference in New Issue
Block a user