fix: 修复缺失的函数定义和函数名不匹配问题
Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087
This commit is contained in:
@@ -35,7 +35,7 @@ function renderConfigList(configs) {
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-warning" onclick="toggleConfigStatus(${config.id}, ${config.is_active})">
|
||||
<button class="btn btn-sm btn-warning" onclick="toggleConfig(${config.id}, ${config.is_active})">
|
||||
${config.is_active ? '禁用' : '启用'}
|
||||
</button>
|
||||
<button class="btn btn-sm btn-primary" onclick="editConfig(${config.id})">编辑</button>
|
||||
@@ -815,3 +815,20 @@ function closeModal() {
|
||||
document.getElementById('config-modal').classList.remove('active');
|
||||
}
|
||||
|
||||
|
||||
// 清空时段配置
|
||||
function clearTimePeriods() {
|
||||
timePeriodConfig = { sharp: [], peak: [], flat: [], valley: [] };
|
||||
updateTimePeriodSummary();
|
||||
}
|
||||
|
||||
// 设置默认时段配置
|
||||
function setDefaultTimePeriods() {
|
||||
timePeriodConfig = {
|
||||
sharp: [10, 11, 14, 15],
|
||||
peak: [8, 9, 12, 13, 16, 17, 18, 19],
|
||||
flat: [7, 20, 21, 22],
|
||||
valley: [0, 1, 2, 3, 4, 5, 6, 23]
|
||||
};
|
||||
updateTimePeriodSummary();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user