- 新增 web/shared:pro.css(AntD 5 设计系统,旧 CSS 变量统一映射 AntD 色板)、 session.js(后端优先+本地账号降级双轨会话,IAOP_AUTH 兼容层)、 pro-header.js(全站统一 Pro 导航条:logo/页题/用户角色 Tag/退出) - 门户 web/index.html:未登录跳登录页(next 回跳),登录后按角色过滤 可见模块(readonly→驾驶舱/助手/移动端;engineer→+配置台;admin→全部) - 登录页 auth/login.html 重写为 Ant Design Pro 风格,本地降级模式自动 播种演示账号(admin/engineer/viewer),保留 OIDC SSO 双轨入口 - user_store.js 新增 verify() + seedDefaults() 默认账号播种 - 六模块页统一接入 pro.css + 统一导航条 + 登录守卫(PRD 8.2) - 驾驶舱主题 dark→light(Ant Design 5 色板):renderer.py THEME_TOKENS、 ti-cl4/resin 模板 theme、告警三级配色对齐 AntD(P0 #ff4d4f/P1 #faad14/ P2 #1677ff),渲染计划已重编(build_plans.py) - 验证:core/cockpit 86 单测通过;JS 语法检查通过;静态冒烟全 200
78 lines
1.9 KiB
YAML
78 lines
1.9 KiB
YAML
# -*- coding: utf-8 -*-
|
||
# 树脂驾驶舱布局资产(iAOP-Template-Resin,EPIC #13)。
|
||
#
|
||
# 对齐 PRD 5.5「⑤ 配置化驾驶舱」布局 JSON Schema(iAOP-cockpit-layout-v1):
|
||
# 切换行业模板后,驾驶舱按本布局自动重排,无需改前端代码。
|
||
# widget 类型:process_view(工艺流程视图)/ trend(实时趋势)/ kpi_card(KPI卡片)/
|
||
# alarm_panel(告警面板)/ nl_query(NL查询入口)。
|
||
$schema: iAOP-cockpit-layout-v1
|
||
title: 吸附树脂车间驾驶舱
|
||
# 2026-08 全站 Ant Design Pro 风格重构:dark → light(与 ti-cl4 一致)
|
||
theme: light
|
||
widgets:
|
||
- type: process_view
|
||
src: resin_four_state.svg
|
||
x: 0
|
||
y: 0
|
||
w: 12
|
||
h: 4
|
||
description: 四状态工艺流程(合成 → 交联 → 洗涤 → 干燥)
|
||
- type: trend
|
||
bind: R-801.TEMP
|
||
x: 0
|
||
y: 4
|
||
w: 6
|
||
h: 2
|
||
description: 反应釜温度实时趋势
|
||
- type: trend
|
||
bind: R-801.AGIT
|
||
x: 6
|
||
y: 4
|
||
w: 6
|
||
h: 2
|
||
description: 搅拌转速实时趋势
|
||
- type: kpi_card
|
||
metric: resin_exchange_capacity
|
||
label: 交换容量
|
||
x: 0
|
||
y: 6
|
||
w: 3
|
||
h: 2
|
||
description: 当批平均交换容量(mmol/g)
|
||
- type: kpi_card
|
||
metric: resin_crosslink_degree
|
||
label: 交联度
|
||
x: 3
|
||
y: 6
|
||
w: 3
|
||
h: 2
|
||
description: 当批平均交联度(%)
|
||
- type: kpi_card
|
||
metric: batch_yield
|
||
label: 批产率
|
||
x: 6
|
||
y: 6
|
||
w: 3
|
||
h: 2
|
||
description: 当批产率(%)
|
||
- type: kpi_card
|
||
metric: energy_per_ton
|
||
label: 单吨能耗
|
||
x: 9
|
||
y: 6
|
||
w: 3
|
||
h: 2
|
||
description: 单吨树脂综合能耗(kWh/t)
|
||
- type: alarm_panel
|
||
x: 0
|
||
y: 8
|
||
w: 9
|
||
h: 3
|
||
description: 告警面板(温度/交联度/质量预测异常)
|
||
- type: nl_query
|
||
x: 9
|
||
y: 8
|
||
w: 3
|
||
h: 3
|
||
description: 自然语言查询入口(配方/质量/能耗问答)
|