diff --git a/frontend/src/api/subsystem.ts b/frontend/src/api/subsystem.ts index a6d5866..3a68d10 100644 --- a/frontend/src/api/subsystem.ts +++ b/frontend/src/api/subsystem.ts @@ -5,9 +5,12 @@ import { redirectToSSO } from '@/utils/sso' export interface Subsystem { id: number name: string + label: string description: string icon: string url: string + domain: string + category: string status: 'integrated' | 'integrating' sso_enabled: boolean } @@ -21,54 +24,72 @@ const mockSubsystems: Subsystem[] = [ { id: 1, name: 'Wayne', - description: '多集群容器管理平台', + label: '多集群发布平台', + description: '业务容器发布、命名空间与配额管理,复用 Wayne 原生多租户能力。', icon: 'W', url: 'https://wayne.qiniu.com', + domain: 'wayne.xinfra.internal', + category: '容器管理', status: 'integrated', sso_enabled: true, }, { id: 2, name: 'CloudDM', - description: '数据库管理与SQL审核', + label: 'SQL 审核平台', + description: '数据库 SQL 上线统一审核,支持 LDAP 用户组到角色的自动映射。', icon: 'DM', url: 'https://clouddm.qiniu.com', + domain: 'clouddm.xinfra.internal', + category: '数据库', status: 'integrated', sso_enabled: true, }, { id: 3, name: 'CacheCloud', - description: 'Redis 云管理平台', + label: 'Redis 管理平台', + description: 'Redis 实例全生命周期管理,登录与监控运维统一入口。', icon: 'CC', url: 'https://cachecloud.qiniu.com', - status: 'integrated', + domain: 'cachecloud.xinfra.internal', + category: '缓存', + status: 'integrating', sso_enabled: true, }, { id: 4, name: 'Apollo', - description: '配置中心', + label: '配置中心', + description: '统一配置管理,按机房 Cluster 隔离,支持灰度发布、版本回滚与变更审计。', icon: 'AP', url: 'https://apollo.xinfra.internal', - status: 'integrated', + domain: 'apollo.xinfra.internal', + category: '配置中心', + status: 'integrating', sso_enabled: true, }, { id: 5, name: 'qpass', - description: '密码管理平台', + label: '七牛统一运维平台', + description: '夜莺、Zabbix、VictoriaMetrics 告警统一收敛与值班通知,按 P0/P1 分级推送。', icon: 'QP', url: 'https://qpass.xinfra.internal', + domain: 'qpass.xinfra.internal', + category: '告警值班', status: 'integrated', sso_enabled: true, }, { id: 6, name: 'Grafana', - description: '监控可视化平台', + label: '指标可视化平台', + description: '对接 VictoriaMetrics 数据源,K8s / 容器 / 业务指标统一仪表盘展示。', icon: 'GF', url: 'https://grafana.xinfra.internal', + domain: 'grafana.xinfra.internal', + category: '可观测性', status: 'integrated', sso_enabled: true, }, @@ -83,6 +104,10 @@ export const subsystemApi = { }) }, + getSubsystemByName(name: string): Subsystem | undefined { + return mockSubsystems.find((s) => s.name.toLowerCase() === name.toLowerCase()) + }, + async getSSOUrl(id: number): Promise> { const subsystem = mockSubsystems.find((s) => s.id === id) if (!subsystem) { diff --git a/frontend/src/components/Layout/AppSidebar.vue b/frontend/src/components/Layout/AppSidebar.vue index 573f92c..d7d816a 100644 --- a/frontend/src/components/Layout/AppSidebar.vue +++ b/frontend/src/components/Layout/AppSidebar.vue @@ -35,9 +35,28 @@
-

{{ system.name }}

-
{{ system.description }}
+

{{ system.label }} {{ system.name }}

+
{{ system.domain }}
-

{{ description }}

+

{{ system.description }}

{{ system.status === 'integrated' ? 'LDAP 原生配置接入 · 零代码' : 'LDAP 接入改造中' }} @@ -49,18 +49,6 @@ const iconColor = computed(() => { return colors[props.system.icon] || 'var(--text-mid)' }) -const description = computed(() => { - const descs: Record = { - Wayne: '业务容器发布、命名空间与配额管理,复用 Wayne 原生多租户能力。', - CloudDM: '数据库 SQL 上线统一审核,支持 LDAP 用户组到角色的自动映射。', - CacheCloud: 'Redis 实例全生命周期管理,登录与监控运维统一入口。', - Apollo: '统一配置管理,按机房 Cluster 隔离,支持灰度发布、版本回滚与变更审计。', - qpass: '夜莺、Zabbix、VictoriaMetrics 告警统一收敛与值班通知,按 P0/P1 分级推送。', - Grafana: '对接 VictoriaMetrics 数据源,K8s / 容器 / 业务指标统一仪表盘展示。', - } - return descs[props.system.name] || '' -}) - const handleClick = async () => { if (props.system.sso_enabled) { const { data } = await subsystemApi.getSSOUrl(props.system.id) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index dd28c9e..3942ce2 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -34,6 +34,12 @@ const router = createRouter({ component: () => import('@/views/subsystem/Navigation.vue'), meta: { title: '子系统导航' }, }, + { + path: 'subsystem/detail/:name', + name: 'SubsystemDetail', + component: () => import('@/views/subsystem/SubsystemDetail.vue'), + meta: { title: '子系统详情' }, + }, { path: 'subsystem/authz', name: 'SubsystemAuthz', diff --git a/frontend/src/views/subsystem/SubsystemDetail.vue b/frontend/src/views/subsystem/SubsystemDetail.vue new file mode 100644 index 0000000..f5f49e8 --- /dev/null +++ b/frontend/src/views/subsystem/SubsystemDetail.vue @@ -0,0 +1,172 @@ + + + + +