diff --git a/static/modules/finance.js b/static/modules/finance.js index 139f218..d3c052f 100644 --- a/static/modules/finance.js +++ b/static/modules/finance.js @@ -1248,3 +1248,10 @@ function renderOverviewCharts(data) { state.finChart4 = new Chart(c4, Object.assign({}, iconf, { data: { labels: labels, datasets: [{ label: "利润", data: data.map(function(x) { return x.gross || 0; }), borderColor: "#6366f1", backgroundColor: "rgba(99,102,241,0.06)", fill: true, tension: 0.3 }] } })); } }; + +// ====== 筛选器控制函数 ====== +window.switchFinFilter = (f) => { state.finFilter = f; renderFinance(); }; +window.setFinView = (v) => { state.finView = v; renderFinance(); }; +window.setFinYear = (y) => { state.finYear = parseInt(y); renderFinance(); }; +window.setFinQuarter = (q) => { state.finView = 'quarterly'; state.finQuarter = q; renderFinance(); }; +window.setFinMonth = (m) => { state.finView = 'monthly'; state.finMonth = m; renderFinance(); }; diff --git a/static/modules/plan.js b/static/modules/plan.js index b18bc13..2c269eb 100644 --- a/static/modules/plan.js +++ b/static/modules/plan.js @@ -1356,3 +1356,11 @@ window.planInlineUpdate = async (pfId, field, value) => { toast("更新失败:" + error.message, "error"); } }; + +// ====== 筛选器控制函数 ====== +window.switchPlanFilter = (f) => { state.planFilter = f; renderPlan(); }; +window.setPlanView = (v) => { state.planView = v; renderPlan(); }; +window.setPlanYear = (y) => { state.planYear = parseInt(y); renderPlan(); }; +window.setPlanQuarter = (q) => { state.planView = 'quarterly'; state.planQuarter = q; renderPlan(); }; +window.setPlanMonth = (m) => { state.planView = 'monthly'; state.planMonth = m; renderPlan(); }; +window.setPlanStatusFilter = (f) => { state.planStatusFilter = f; renderPlan(); }; diff --git a/templates/index.html b/templates/index.html index dfd44a7..58793b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -84,7 +84,7 @@
-

OPC Manager v1.2.0.30

+

OPC Manager v1.2.0.31

科普 OPC 工作台