chore: 面包屑首项改为 OneOS数据中台
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-04-29 20:51:50 +08:00
parent 0877addb3b
commit a47faf66f0
6 changed files with 15 additions and 15 deletions

20
app.jsx
View File

@@ -1,19 +1,19 @@
// app.jsx — SPA router + responsive shell for 羚牛车辆数据中
// app.jsx — SPA router + responsive shell for OneOS数据中
// hash routes: #/, #/overview, #/detail, #/history, #/playback, #/alarm, #/inbox, #/esg, #/canvas
const ROUTES = [
{ path: "overview", icon: "map", label: "实时地图", crumbs: ["羚牛车辆数据中", "实时监控", "总览"], component: "ArtboardOverview" },
{ path: "detail", icon: "car", label: "车辆详情", crumbs: ["羚牛车辆数据中", "实时监控", "单车详情"], component: "ArtboardDetail" },
{ path: "history", icon: "history", label: "历史查询", crumbs: ["羚牛车辆数据中", "数据分析", "历史查询"], component: "ArtboardHistory" },
{ path: "playback", icon: "route", label: "轨迹回放", crumbs: ["羚牛车辆数据中", "数据分析", "轨迹回放"], component: "ArtboardPlayback" },
{ path: "alarm", icon: "bell", label: "事件规则", crumbs: ["羚牛车辆数据中", "事件中心", "规则编排"], component: "ArtboardAlarm" },
{ path: "inbox", icon: "inbox", label: "通知中心", crumbs: ["羚牛车辆数据中", "事件中心", "通知中心"], component: "ArtboardInbox" },
{ path: "integration", icon: "plug", label: "数据接入监控", crumbs: ["羚牛车辆数据中", "数据接入", "监控总览"], component: "ArtboardIntegration" },
{ path: "overview", icon: "map", label: "实时地图", crumbs: ["OneOS数据中", "实时监控", "总览"], component: "ArtboardOverview" },
{ path: "detail", icon: "car", label: "车辆详情", crumbs: ["OneOS数据中", "实时监控", "单车详情"], component: "ArtboardDetail" },
{ path: "history", icon: "history", label: "历史查询", crumbs: ["OneOS数据中", "数据分析", "历史查询"], component: "ArtboardHistory" },
{ path: "playback", icon: "route", label: "轨迹回放", crumbs: ["OneOS数据中", "数据分析", "轨迹回放"], component: "ArtboardPlayback" },
{ path: "alarm", icon: "bell", label: "事件规则", crumbs: ["OneOS数据中", "事件中心", "规则编排"], component: "ArtboardAlarm" },
{ path: "inbox", icon: "inbox", label: "通知中心", crumbs: ["OneOS数据中", "事件中心", "通知中心"], component: "ArtboardInbox" },
{ path: "integration", icon: "plug", label: "数据接入监控", crumbs: ["OneOS数据中", "数据接入", "监控总览"], component: "ArtboardIntegration" },
];
const SUB_ROUTES = [
{ path: "esg", icon: "chart", label: "ESG·碳减排", crumbs: ["羚牛车辆数据中", "运营分析", "ESG驾驶舱"], component: "ArtboardESG" },
{ path: "canvas", icon: "settings", label: "设计画板", crumbs: ["羚牛车辆数据中", "设计画板"], component: "DesignCanvasMode" },
{ path: "esg", icon: "chart", label: "ESG·碳减排", crumbs: ["OneOS数据中", "运营分析", "ESG驾驶舱"], component: "ArtboardESG" },
{ path: "canvas", icon: "settings", label: "设计画板", crumbs: ["OneOS数据中", "设计画板"], component: "DesignCanvasMode" },
];
const ALL_ROUTES = [...ROUTES, ...SUB_ROUTES];

View File

@@ -192,7 +192,7 @@ const ArtboardIntegration = () => {
<Sidebar active="integration"/>
<div style={{flex:1, display:"flex", flexDirection:"column", minWidth:0, position:"relative", zIndex:1}}>
<Topbar
crumbs={["羚牛车辆数据中", "数据接入", "监控总览"]}
crumbs={["OneOS数据中", "数据接入", "监控总览"]}
kpis={[
{ lbl:"总车辆", val: enriched.length },
{ lbl:"GB在线", val: derivedCounts.gbOnline },

View File

@@ -101,7 +101,7 @@ const ArtboardOverview = () => {
<Sidebar active="map"/>
<div style={{flex:1, display:"flex", flexDirection:"column", minWidth:0, position:"relative", zIndex:1}}>
<Topbar
crumbs={isDeptScoped ? ["羚牛车辆数据中", "资产管理", role.name.replace(/.*·/,"")] : ["羚牛车辆数据中", "资产管理", "总览"]}
crumbs={isDeptScoped ? ["OneOS数据中", "资产管理", role.name.replace(/.*·/,"")] : ["OneOS数据中", "资产管理", "总览"]}
kpis={[
{ lbl: isDeptScoped ? "本部门车辆" : "总车辆", val: dispTotal },
{ lbl:"在线", val: dispOnline, delta: dispTotal ? Math.round(dispOnline/dispTotal*100) + "%" : "0%", deltaUp:true },

View File

@@ -5,7 +5,7 @@ const ArtboardDense = () => {
<Sidebar active="map"/>
<div style={{flex:1, display:"flex", flexDirection:"column", minWidth:0, position:"relative", zIndex:1}}>
<Topbar
crumbs={["羚牛车辆数据中", "运营驾驶舱"]}
crumbs={["OneOS数据中", "运营驾驶舱"]}
kpis={[
{ lbl:"在线", val:"487", delta:"95%", deltaUp:true },
{ lbl:"行驶", val:"312" },

View File

@@ -18,7 +18,7 @@ const ArtboardLightVariant = () => {
<Sidebar active="map"/>
<div style={{flex:1, display:"flex", flexDirection:"column", minWidth:0}}>
<Topbar
crumbs={["羚牛车辆数据中", "实时监控", "总览"]}
crumbs={["OneOS数据中", "实时监控", "总览"]}
kpis={[
{ lbl:"在线", val:"487/512", delta:"95.1%", deltaUp:true },
{ lbl:"行驶", val:"312" },

View File

@@ -57,7 +57,7 @@ const Sidebar = ({ active }) => {
);
};
const Topbar = ({ crumbs = ["羚牛车辆数据中", "实时监控"], kpis = [], showSearch = true }) => {
const Topbar = ({ crumbs = ["OneOS数据中", "实时监控"], kpis = [], showSearch = true }) => {
const ctx = (typeof window.useRoute === "function") ? window.useRoute() : null;
const isMobile = ctx && ctx.isMobile;
return (