# 工业互联网平台 · 平台地图（PLATFORM_MAP）

> 配套 `README.md`，提供更详细的架构 / 菜单 / 编辑器 / 大屏速查。
> 更新日期：2026-04-19 · 适用版本：**v6.0**

## v6.0 入口闭环（关键）

```
根 index.html         → 控制台登录页（蓝色，应用管理平台）
                        → 登录后跳 platforms/console/console_index.html

根 ops-login.html     → 运营管理平台登录页（紫色）
                        → 登录后跳 platforms/ops/ops_index.html

各子平台 _login.html  → 独立登录页（已登录则透传，未登录则要求登录）
                        platforms/<id>/<id>_login.html
                        platforms/<id>/app/<id>_login.html
                        platforms/<id>/ops/<id>_ops_login.html

START.html            → 全平台地址簿 / 演示导航页（不在登录闭环主路径，可选）
```

## v6.0 菜单结构（取消 group，1/2/3 级）

所有平台 menu.js 改为：

```js
window.MENU_DATA = [
  { id, label, icon, href?, children?: [
    { id, label, href?, children?: [
      { id, label, href }
    ]}
  ]}
];
```

DT / BI 菜单一级：工作台 / 发布管理 / 资源中心 / 应用开发 / 数据源 / 系统管理 / 消息中心 / 系统日志 / AI 增强。

---

---

## 1. 整体架构图（L1 → L2 → L3 → 子页面）

```mermaid
flowchart LR
    %% L1
    L1["L1 工业互联网平台<br/>（统一身份 · 统一门户）"]:::l1

    %% L2
    L1 --> CON["L2-A 应用管理平台<br/>console_index.html"]:::l2
    L1 --> OPS["L2-B 运营管理平台<br/>ops_index.html"]:::l2

    %% L3 应用端
    CON --> HUB_A["数据中枢 · 应用端<br/>hub/app/hub_index.html"]:::l3a
    CON --> BI_A["BI · 应用端<br/>bi/app/bi_index.html"]:::l3a
    CON --> DT_A["DT · 应用端<br/>dt/app/dt_index.html"]:::l3a
    CON --> ESB_A["ESB · 应用端<br/>esb/app/esb_index.html"]:::l3a
    CON --> COST_A["成本 · 应用端<br/>cost/app/cost_index.html ⚠ 待补"]:::pend
    CON --> QUA["质量监控<br/>quality/quality_index.html"]:::l3a
    CON --> ENT["数据补录<br/>entry/entry_index.html"]:::l3a

    %% L3 运营端
    OPS --> HUB_O["数据中枢 · 运营端<br/>hub/ops/hub_ops_index.html"]:::l3o
    OPS --> BI_O["BI · 运营端<br/>bi/ops/bi_ops_index.html"]:::l3o
    OPS --> DT_O["DT · 运营端<br/>dt/ops/dt_ops_index.html"]:::l3o
    OPS --> ESB_O["ESB · 运营端<br/>esb/ops/esb_ops_index.html"]:::l3o
    OPS --> COST_O["成本 · 运营端<br/>cost/ops/cost_ops_index.html ⚠ 待补"]:::pend
    OPS --> QA_OPS["质量运营视图<br/>ops/pages/admin-quality/"]:::l3o
    OPS --> EN_OPS["补录运营视图<br/>ops/pages/admin-entry/"]:::l3o

    %% 子页面（节选）
    BI_A --> BI_DESIGN["设计器 ×4<br/>dashboard / scada / report / screen"]:::leaf
    BI_A --> BI_SCREEN["业务大屏 ×6<br/>production / quality / trace / ops / cost / andon"]:::leaf
    DT_A --> DT_DESIGN["编辑器 ×4<br/>scene / blueprint / walkthrough / twin"]:::leaf
    DT_A --> DT_SCENE["孪生场景 ×3<br/>production / campus / agv"]:::leaf
    ESB_A --> ESB_FLOW["流程设计器<br/>flow/designer.html"]:::leaf
    QUA --> QUA_SCREEN["质量大屏 ×5<br/>overview / release-monitor / quality / trace / andon"]:::leaf
    ENT --> ENT_DESIGN["模板设计器<br/>templates/designer.html"]:::leaf

    %% 移动
    L1 --> M_HOME["移动门户<br/>mobile/index.html"]:::mobile
    QUA --> M_QUA["质量驾驶舱<br/>mobile/quality-cockpit.html"]:::mobile
    COST_A --> M_COST["成本驾驶舱<br/>mobile/cost-cockpit.html"]:::mobile

    classDef l1 fill:#0F4C7F,color:#fff,stroke:#0a3a63;
    classDef l2 fill:#2E63E8,color:#fff,stroke:#1c4fcc;
    classDef l3a fill:#1D6FA5,color:#fff,stroke:#155a85;
    classDef l3o fill:#5B8DEF,color:#fff,stroke:#3a6fd8;
    classDef leaf fill:#E5EAFA,color:#0F1A33,stroke:#a8b6e0;
    classDef mobile fill:#16B997,color:#fff,stroke:#0e7c66;
    classDef pend fill:#F2A832,color:#fff,stroke:#c98406;
```

> ⚠ 黄色 `pend` 节点为本期未交付（已规划，目录骨架已就位，待 Subagent G 补 shell）。

---

## 2. 双端 vs 单端

| 平台 | 应用端 | 运营端 | 备注 |
|---|---|---|---|
| 控制台 console | ✓（即应用端入口本身） | — | 控制台本身就是租户视角的"L2 应用入口"，无独立运营端 |
| 运营管理 ops | — | ✓（即运营端入口本身） | ops 本身就是平台超管的"L2 运营入口" |
| 数据中枢 hub | ✓ `hub/app/` | ✓ `hub/ops/` | 双端 |
| BI 低代码 | ✓ `bi/app/` | ✓ `bi/ops/` | 双端 |
| 数字孪生 DT | ✓ `dt/app/` | ✓ `dt/ops/` | 双端 |
| 数据总线 ESB | ✓ `esb/app/` | ✓ `esb/ops/` | 双端 |
| 成本分析 cost | ⚠ 目录就位，shell 待补 | ⚠ 目录就位，shell 待补 | 双端（规划） |
| 质量监控 quality | ✓ `quality/` | — | **单端**：运营视图在 `ops/pages/admin-quality/` 内嵌渲染 |
| 数据补录 entry | ✓ `entry/` | — | **单端**：运营视图在 `ops/pages/admin-entry/` 内嵌渲染 |
| 移动驾驶舱 | ✓ `mobile/` | — | 移动端只面向租户业务用户 |

---

## 3. 各平台菜单组速查表

> 数据来源：各平台对应的 `menu.js` / `ops-menu.js` / `<id>_menu.js`。

### 3.1 L2 控制台（`platforms/console/menu.js`） · 5 组

| # | 菜单组 | 项数 | 关键叶子 |
|---|---|---|---|
| 1 | 概览 | 1 | 控制台总览 |
| 2 | 审批中心 | 5 | 我的待办 / 我发起的 / 抄送我的 / 审批历史 / 审批流设计器（editor） |
| 3 | 协同中心 | 4 | 消息中心 / 通知设置 / 通知模板 / 协同空间 |
| 4 | 日志审计 | 4 | 应用日志 / 登录审计 / 操作审计 / GMP 合规审计 |
| 5 | 文档中心 | 21（含子项）| 数据中枢 / BI / DT / ESB / 质量 / 成本 / 补录 / 第三方集成 文档 |

### 3.2 L2 运营管理（`platforms/ops/menu.js`） · 9 组

| # | 菜单组 | 项数 |
|---|---|---|
| 1 | 概览 | 1 |
| 2 | 租户管理 | 7 |
| 3 | SSO 统一身份 | 7 |
| 4 | 系统日志 | 7 |
| 5 | 系统集成 | 8 |
| 6 | 集群与服务 | 7 |
| 7 | 消息中心 | 4 |
| 8 | 操作手册 | 4（含 editor） |
| 9 | 运营管理侧 IAM | 4 |

### 3.3 L3 数据中枢 应用端（共享 `assets/js/menu.js`） · 9 组

> 复用顶层老 V4 菜单（hub 应用端是数据中台主入口）：概览 / 数据集成 / 数据建模 / 任务开发 / 即席查询 / 数据资产 / 数据治理 / 数据安全 / 数据服务 / 调度运维 / 系统管理 / 我的（实际 ≥ 9 组，详见 `assets/js/menu.js`）。

### 3.4 L3 数据中枢 运营端（`platforms/hub/ops/menu.js`） · 5 组

| # | 菜单组 | 项数 |
|---|---|---|
| 1 | 概览 | 1 |
| 2 | 通用资源管理 | 8（通用数据源 / 连接器 / 标准 / 安全 / 质量 / 分发 / 打标 / API 网关） |
| 3 | 租户级数据汇总 | 4 |
| 4 | 服务监控与运维 | 4 |
| 5 | 系统管理 | 3 |

### 3.5 L3 BI · 应用端（`platforms/bi/menu.js`） · 9 组

| # | 菜单组 | 项数 | 含编辑器/大屏 |
|---|---|---|---|
| 1 | 概览 | 1 | — |
| 2 | 大屏中心 | 6 | — |
| 3 | 报表中心 | 4 | — |
| 4 | 设计器 | 3 | editor ×3（dashboard / scada / report） |
| 5 | 资源 | 5 | — |
| 6 | 成本分析 | 4 | — |
| 7 | 发布管理 | 2 | — |
| 8 | 系统管理 | 7 | — |
| 9 | 我的 | 3 | — |

### 3.6 L3 BI · 运营端（`platforms/bi/ops-menu.js`） · 5 组

| # | 菜单组 | 项数 |
|---|---|---|
| 1 | 概览 | 1 |
| 2 | 通用资源中心 | 7 |
| 3 | 跨租户聚合 | 3 |
| 4 | 服务运维 | 4 |
| 5 | 系统管理 | 3 |

### 3.7 L3 DT · 应用端（`platforms/dt/menu.js`） · 9 组

| # | 菜单组 | 项数 | 含编辑器 |
|---|---|---|---|
| 1 | 概览 | 1 | — |
| 2 | 数字孪生场景 | 3 | — |
| 3 | 3D 模型 | 3 | — |
| 4 | 编辑器 | 3 | editor ×3（scene / blueprint / walkthrough） |
| 5 | 仿真与漫游 | 3 | editor ×1 |
| 6 | 资源 | 4 | — |
| 7 | 发布管理 | 1 | — |
| 8 | 系统管理 | 6 | — |
| 9 | 我的 | 3 | — |

### 3.8 L3 DT · 运营端（`platforms/dt/ops-menu.js`） · 5 组

| # | 菜单组 | 项数 |
|---|---|---|
| 1 | 概览 | 1 |
| 2 | 通用资源中心 | 6 |
| 3 | 跨租户聚合 | 2 |
| 4 | 服务运维 | 4 |
| 5 | 系统管理 | 3 |

### 3.9 L3 ESB · 应用端（`platforms/esb/menu.js`） · 7 组

| # | 菜单组 | 项数 | 含编辑器 |
|---|---|---|---|
| 1 | 总线工作台 | 1 | — |
| 2 | 集成总线 | 4 | — |
| 3 | 流程编排 | 4 | editor ×1（flow/designer） |
| 4 | API/MQ 服务 | 5 | — |
| 5 | 监控运维 | 4 | — |
| 6 | 发布管理 | 1 | — |
| 7 | 系统管理 | 6 | — |
| 8 | 我的 | 3 | — |

### 3.10 L3 ESB · 运营端（`platforms/esb/ops-menu.js`） · 5 组

| # | 菜单组 | 项数 |
|---|---|---|
| 1 | 运营工作台 | 1 |
| 2 | 通用资源 | 4 |
| 3 | 跨租户聚合 | 3 |
| 4 | 服务运维 | 4 |
| 5 | 系统管理 | 4 |

### 3.11 L3 质量监控（`platforms/quality/quality_menu.js`） · 9 组

| # | 菜单组 | 项数 | 大屏 |
|---|---|---|---|
| 1 | 概览 | 1 | — |
| 2 | 在线抽检 | 3 | — |
| 3 | 放行 | 3 | — |
| 4 | 偏差预警 | 2 | — |
| 5 | 检验流程 | 5 | — |
| 6 | 报告 | 4 | — |
| 7 | 质量大屏 | 5 | screen ×5 ✓ |
| 8 | 系统管理 | 7 | — |
| 9 | 我的 | 1 | — |

### 3.12 L3 数据补录（`platforms/entry/entry_menu.js`） · 8 组

| # | 菜单组 | 项数 | 含编辑器 |
|---|---|---|---|
| 1 | 概览 | 1 | — |
| 2 | 补录任务 | 4 | — |
| 3 | 补录模板 | 3 | editor ×1（templates/designer） |
| 4 | 导入导出 | 2 | — |
| 5 | 审批流 | 2 | — |
| 6 | 历史 | 2 | — |
| 7 | 系统管理 | 7 | — |
| 8 | 我的 | 1 | — |

---

## 4. 编辑器 / 大屏清单

### 4.1 编辑器（`editor=true`，全屏新窗口打开）

| 平台 | 路径 | 说明 |
|---|---|---|
| 控制台 | `platforms/console/pages/approval/designer.html` | 审批流设计器 |
| 运营 | `platforms/ops/pages/manual/editor.html` | 操作手册编辑器 |
| BI | `platforms/bi/pages/designer/dashboard-editor.html` | 普通大屏设计器 |
| BI | `platforms/bi/pages/designer/scada-editor.html` | 组态大屏设计器 |
| BI | `platforms/bi/pages/designer/report-editor.html` | 报表设计器 |
| BI | `platforms/bi/pages/designer/screen-editor.html` | 通用大屏发布编辑器 |
| BI | `platforms/bi/pages/designer/bi-editor.html` | BI 综合编辑器 |
| BI | `platforms/bi/pages/assets/component-editor.html` | 组件库编辑器 |
| DT | `platforms/dt/pages/designer/scene-editor.html` | 场景编辑器 |
| DT | `platforms/dt/pages/designer/blueprint-editor.html` | 蓝图编辑器 |
| DT | `platforms/dt/pages/designer/walkthrough-editor.html` | 漫游编辑器 |
| DT | `platforms/dt/pages/designer/twin-editor.html` | 孪生综合编辑器（旧 V4 入口兼容） |
| ESB | `platforms/esb/pages/flow/designer.html` | 流程编排设计器 |
| 补录 | `platforms/entry/pages/templates/designer.html` | 补录模板设计器 |

### 4.2 大屏（`screen=true`，全屏新窗口打开 · 1920×1080 单屏不滚动）

| 平台 | 路径 | 主题 |
|---|---|---|
| BI | `platforms/bi/pages/dashboards/production-screen.html` | 生产监控大屏 |
| BI | `platforms/bi/pages/dashboards/quality-screen.html` | 质量大屏 |
| BI | `platforms/bi/pages/dashboards/trace-screen.html` | 追溯大屏 |
| BI | `platforms/bi/pages/dashboards/ops-screen.html` | 运营大屏 |
| BI | `platforms/bi/pages/dashboards/cost-screen.html` | 成本大屏 |
| BI | `platforms/bi/pages/dashboards/andon-screen.html` | 安灯大屏 |
| BI | `platforms/bi/pages/version/screens.html` | 大屏版本中心 |
| BI | `platforms/bi/pages/publish/screen-publish.html` | 大屏发布 |
| 质量 | `platforms/quality/pages/screens/quality-overview.html` | 质量综合大屏 |
| 质量 | `platforms/quality/pages/screens/release-monitor.html` | 放行监控大屏 |
| 质量 | `platforms/quality/pages/screens/quality-screen.html` | 质量监控大屏 |
| 质量 | `platforms/quality/pages/screens/trace-screen.html` | 追溯链路看板 |
| 质量 | `platforms/quality/pages/screens/andon-screen.html` | 安灯监控大屏 |
| DT | `platforms/dt/pages/designer/twin-preview.html` | 孪生预览大屏（3D） |
| DT | `platforms/dt/pages/scenes/production-twin.html` | 生产孪生场景 |
| DT | `platforms/dt/pages/scenes/campus-twin.html` | 园区孪生场景 |
| DT | `platforms/dt/pages/scenes/agv-twin.html` | AGV 物流孪生场景 |

### 4.3 移动驾驶舱（750×1334）

| 路径 | 说明 |
|---|---|
| `platforms/mobile/index.html` | 移动门户首页（驾驶舱列表 + 动态消息） |
| `platforms/mobile/quality-cockpit.html` | 质量监控驾驶舱 |
| `platforms/mobile/cost-cockpit.html` | 成本分析驾驶舱 |

---

## 5. 已发布大屏总目录

> 把上面 4.2 的 17 块大屏 + 4.3 的 3 块移动驾驶舱合并为"产品级可演示大屏总目录"。

| 端 | 主题 | 路径 |
|---|---|---|
| 桌面 1920×1080 | 生产监控 | `platforms/bi/pages/dashboards/production-screen.html` |
| 桌面 1920×1080 | 质量（BI 版） | `platforms/bi/pages/dashboards/quality-screen.html` |
| 桌面 1920×1080 | 追溯（BI 版） | `platforms/bi/pages/dashboards/trace-screen.html` |
| 桌面 1920×1080 | 运营 | `platforms/bi/pages/dashboards/ops-screen.html` |
| 桌面 1920×1080 | 成本 | `platforms/bi/pages/dashboards/cost-screen.html` |
| 桌面 1920×1080 | 安灯（BI 版） | `platforms/bi/pages/dashboards/andon-screen.html` |
| 桌面 1920×1080 | 质量综合（质量平台版） | `platforms/quality/pages/screens/quality-overview.html` |
| 桌面 1920×1080 | 放行监控 | `platforms/quality/pages/screens/release-monitor.html` |
| 桌面 1920×1080 | 质量监控 | `platforms/quality/pages/screens/quality-screen.html` |
| 桌面 1920×1080 | 追溯链路 | `platforms/quality/pages/screens/trace-screen.html` |
| 桌面 1920×1080 | 安灯监控 | `platforms/quality/pages/screens/andon-screen.html` |
| 桌面 1920×1080 | 孪生预览（3D） | `platforms/dt/pages/designer/twin-preview.html` |
| 桌面 1920×1080 | 生产孪生场景 | `platforms/dt/pages/scenes/production-twin.html` |
| 桌面 1920×1080 | 园区孪生场景 | `platforms/dt/pages/scenes/campus-twin.html` |
| 桌面 1920×1080 | AGV 物流孪生 | `platforms/dt/pages/scenes/agv-twin.html` |
| 移动 750×1334 | 移动门户首页 | `platforms/mobile/index.html` |
| 移动 750×1334 | 质量驾驶舱 | `platforms/mobile/quality-cockpit.html` |
| 移动 750×1334 | 成本驾驶舱 | `platforms/mobile/cost-cockpit.html` |

合计：**15 块桌面大屏 + 3 块移动驾驶舱 = 18 块可演示大屏**。

---

## 6. SSO 与 Tab 协议

- **登录态**：所有子平台共享 `localStorage.dt_logged === '1'`；任一登录后，其余子平台不再二次拦截。
- **跨 iframe 通信**：子页可通过 `postMessage({ type:'dt:open', href, label, icon })` 通知 shell 打开新 Tab；可通过 `{ type:'dt:breadcrumb', breadcrumb:[...] }` 回写顶部面包屑。
- **菜单标记**：`menu.js` 中 `editor:true` → 新窗口打开；`screen:true` → 新窗口打开（强制 1920×1080）。

---

## 7. 速查口诀

> "**进控制台**找业务，**进运营管理**做超管；**编辑器**与**大屏**永远新开窗，**移动驾驶舱**只在 mobile 目录下。"
