添加新的策略

This commit is contained in:
jackyu66git
2026-05-19 09:58:33 +08:00
parent 5dc0c4cffd
commit 91148a648a
9 changed files with 1377 additions and 115 deletions
+10 -3
View File
@@ -1918,8 +1918,14 @@
});
// 结构价值区复选框变更事件
$(document).on('change', '#showMainStructureZone', function() {
console.log('结构区切换为:', $('#showMainStructureZone').is(':checked'));
updateChartDisplay();
const on = $('#showMainStructureZone').is(':checked');
console.log('结构区切换为:', on);
// 勾选后才向服务器请求多周期结构区数据;取消勾选仅重绘,不重复拉取
if (on) {
updateChart();
} else {
updateChartDisplay();
}
});
// 添加趋势显示复选框变更事件(主/元素),变更后刷新主图
@@ -2190,7 +2196,8 @@
start_time: startTimeMs,
end_time: endTimeMs,
elements_only: false,
zone_kl_lines: parseInt($('#zoneKlLines').val()) || 1000
zone_kl_lines: parseInt($('#zoneKlLines').val()) || 1000,
include_structure_zones: $('#showMainStructureZone').is(':checked') ? 1 : 0
},
success: function(data) {
// 隐藏加载图标