feat: 绩效模块重构 + UI 统一样式 + 标题联动
- 新增绩效模块(季度考核表,目标/完成/权重/评分,localStorage) - 产品模块增加版本迭代/产品运营双Tab - 方案模块Tab改为下划线样式 - 顶部标题随模块切换联动更新 - OPC来信弹窗恢复并采用信件样式排版 - 费用模块移入业务顶部Tab(平台费用) - 侧边栏:项目→业务,台账→Focus,新增绩效 - 顶部品牌区增加版本号显示v1.0.0.2
This commit is contained in:
@@ -130,6 +130,12 @@ function switchTab(tab) {
|
||||
localStorage.setItem("opc-active-tab", tab);
|
||||
document.querySelectorAll(".sidebar-tab").forEach((btn) => btn.classList.toggle("active", btn.dataset.tab === tab));
|
||||
document.querySelectorAll(".panel").forEach((panel) => panel.classList.toggle("active", panel.id === tab));
|
||||
|
||||
// 更新顶部标题
|
||||
const titles = { home: 'OPC 工作台', finance: '业务管理', projects: '重点工作台账', proposals: '业务方案', products: '版本与运营', performance: '季度绩效考核' };
|
||||
const titleEl = document.querySelector('#workspaceTitle');
|
||||
if (titleEl) titleEl.textContent = titles[tab] || state.tenant + ' OPC 工作台';
|
||||
|
||||
render();
|
||||
}
|
||||
|
||||
@@ -151,9 +157,8 @@ function render() {
|
||||
renderProjects();
|
||||
renderProposals();
|
||||
renderProducts();
|
||||
renderOperations();
|
||||
renderPerformance();
|
||||
renderFinance();
|
||||
renderExpense();
|
||||
if (window.lucide) window.lucide.createIcons();
|
||||
}
|
||||
|
||||
@@ -164,7 +169,7 @@ function renderActive() {
|
||||
else if (tab === "projects") renderProjects();
|
||||
else if (tab === "proposals") renderProposals();
|
||||
else if (tab === "products") renderProducts();
|
||||
else if (tab === "operations") renderOperations();
|
||||
else if (tab === "performance") renderPerformance();
|
||||
else if (tab === "finance") renderFinance();
|
||||
if (window.lucide) window.lucide.createIcons();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user