<%- include('partials/nav') %> <% const scheduleNextOccurrence = typeof nextOccurrence !== 'undefined' ? nextOccurrence : null; const scheduleThisWeek = typeof thisWeek !== 'undefined' && Array.isArray(thisWeek) ? thisWeek : []; const scheduleNextWeek = typeof nextWeek !== 'undefined' && Array.isArray(nextWeek) ? nextWeek : []; %>

Schedule

定时计划

支持每天、工作日、法定工作日、自定义。

<% if (message) { %>
<%= message %>
<% } %> <% if (error) { %>
<%= error %>
<% } %>

本周与下周计划

<% if (scheduleNextOccurrence) { %> 下一次:<%= actionLabel(scheduleNextOccurrence.action) %>,<%= scheduleNextOccurrence.at %>。 <% } else { %> 暂无后续计划。 <% } %>

<%- include('partials/occurrences', { title: '本周计划', items: scheduleThisWeek }) %> <%- include('partials/occurrences', { title: '下周计划', items: scheduleNextWeek }) %>
<% schedules.forEach((item) => { %>

<%= item.is_enabled ? '启用' : '停用' %>

<%= item.name %>

<%= item.time %> · <%= actionLabel(item.action) %> · <%= targetLabel(item.target_channel) %>

<%= repeatLabel(item.repeat_type) %><% if (item.weekdays) { %>:<%= item.weekdays.split(',').map(weekdayLabel).join('、') %><% } %>

<% }) %>