产品迭代表格化 + 财务总视图/月度视图 + 总工作台
产品迭代: - 卡片改表格(10列),5个日期内联编辑,后端日期校验 - 表头排序,新增未开始状态,详情页耗时统计 - 删除 owner/platform/feature_list 字段 财务: - 新增总视图和月度视图,去除确收/毛利和回款/应付视图 - 月度流水加已付列,费用改应付 - 月份选择器,表格居中对齐 - 去除流程项目/流程金额卡片 总工作台: - 聚合所有工作台首页数据 - 只显示首页tab,隐藏4个模块卡片
This commit is contained in:
@@ -128,6 +128,18 @@ function switchTab(tab) {
|
||||
render();
|
||||
}
|
||||
|
||||
function updateSidebarTabs() {
|
||||
const isOverview = state.tenant === "总工作台";
|
||||
document.querySelectorAll(".sidebar-tab").forEach((btn) => {
|
||||
const tab = btn.dataset.tab;
|
||||
if (isOverview && tab !== "home") {
|
||||
btn.style.display = "none";
|
||||
} else {
|
||||
btn.style.display = "";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function render() {
|
||||
if (!state.data) return;
|
||||
renderHome();
|
||||
@@ -181,6 +193,8 @@ window.switchTenant = (tenant) => {
|
||||
document.querySelector("#workspaceTitle").textContent = tenant.replace("·无界", "") + " OPC 工作台";
|
||||
const label = document.querySelector("#currentTenantLabel");
|
||||
if (label) { label.textContent = tenant.replace("·无界", "") || "工作台"; label.title = tenant; }
|
||||
updateSidebarTabs();
|
||||
if (tenant === "总工作台") switchTab("home");
|
||||
load();
|
||||
};
|
||||
window.doLogout = async () => {
|
||||
|
||||
Reference in New Issue
Block a user