diff --git a/frontend/src/api/subsystem.ts b/frontend/src/api/subsystem.ts index 7316944..c545f48 100644 --- a/frontend/src/api/subsystem.ts +++ b/frontend/src/api/subsystem.ts @@ -11,7 +11,7 @@ export interface Subsystem { url: string domain: string category: string - status: 'integrated' | 'integrating' + status: 'active' | 'integrated' | 'integrating' sso_enabled: boolean } @@ -30,7 +30,7 @@ const mockSubsystems: Subsystem[] = [ url: 'https://wayne.qiniu.com', domain: 'wayne.xinfra.internal', category: '容器管理', - status: 'integrated', + status: 'active', sso_enabled: true, }, { @@ -42,7 +42,7 @@ const mockSubsystems: Subsystem[] = [ url: 'https://clouddm.qiniu.com', domain: 'clouddm.xinfra.internal', category: '数据库', - status: 'integrated', + status: 'active', sso_enabled: true, }, { @@ -78,7 +78,7 @@ const mockSubsystems: Subsystem[] = [ url: 'https://qpass.xinfra.internal', domain: 'qpass.xinfra.internal', category: '内部系统', - status: 'integrated', + status: 'integrating', sso_enabled: true, }, { @@ -90,7 +90,7 @@ const mockSubsystems: Subsystem[] = [ url: 'https://grafana.xinfra.internal', domain: 'grafana.xinfra.internal', category: '可观测性', - status: 'integrated', + status: 'integrating', sso_enabled: true, }, { diff --git a/frontend/src/components/SubsystemCard.vue b/frontend/src/components/SubsystemCard.vue index 8b4d1d9..074d21b 100644 --- a/frontend/src/components/SubsystemCard.vue +++ b/frontend/src/components/SubsystemCard.vue @@ -11,8 +11,8 @@

{{ system.description }}

- - {{ system.status === 'integrated' ? 'LDAP 原生配置接入 · 零代码' : 'LDAP 接入改造中' }} + + {{ system.status === 'active' ? 'LDAP 原生配置接入 · 在线' : 'LDAP 接入改造中' }}
diff --git a/frontend/src/views/subsystem/SubsystemDetail.vue b/frontend/src/views/subsystem/SubsystemDetail.vue index ab651c6..ceea24f 100644 --- a/frontend/src/views/subsystem/SubsystemDetail.vue +++ b/frontend/src/views/subsystem/SubsystemDetail.vue @@ -5,16 +5,16 @@

{{ system.name }}

{{ system.description }} · {{ system.domain }}

- - {{ system.status === 'integrated' ? '● 已接入' : '● 接入中' }} + + {{ system.status === 'active' ? '● 在线' : '● 接入中' }}
接入状态
-
- {{ system.status === 'integrated' ? '已接入' : '接入中' }} +
+ {{ system.status === 'active' ? '在线' : '接入中' }}
{{ system.category }}
@@ -50,11 +50,17 @@

{{ detailDesc }}

- - {{ system.status === 'integrated' ? 'LDAP 原生配置接入 · 已上线' : 'LDAP 接入改造中' }} + + {{ system.status === 'active' ? 'LDAP 原生配置接入 · 在线' : 'LDAP 接入改造中' }}
-
@@ -172,4 +178,14 @@ const openPortal = async () => { .btn-primary:hover { opacity: 0.85; } + +.btn-disabled { + background: var(--text-dim); + cursor: not-allowed; + opacity: 0.6; +} + +.btn-disabled:hover { + opacity: 0.6; +}