|
|
@@ -1,14 +1,16 @@
|
|
|
<template>
|
|
|
- <div class="layout">
|
|
|
- <el-container style="height:100vh">
|
|
|
- <el-aside :width="isCollapse ? '64px' : '220px'" class="sidebar">
|
|
|
- <div class="logo-area" v-show="!isCollapse">
|
|
|
- <img src="/logo.png" class="logo-img" />
|
|
|
- <span class="logo-text">医梦AI</span>
|
|
|
- <span class="logo-sub">OKR 绩效管理</span>
|
|
|
+ <div class="clinical-shell">
|
|
|
+ <el-container class="clinical-container">
|
|
|
+ <el-aside :width="isCollapse ? '64px' : '220px'" class="clinical-sidebar">
|
|
|
+ <div class="brand-lockup" v-show="!isCollapse">
|
|
|
+ <img src="/logo.png" class="brand-lockup__logo" alt="医梦AI" />
|
|
|
+ <div class="brand-lockup__text">
|
|
|
+ <span class="brand-lockup__name">医梦AI</span>
|
|
|
+ <span class="brand-lockup__sub">OKR 绩效管理</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="logo-area collapsed" v-show="isCollapse">
|
|
|
- <img src="/logo.png" class="logo-img-mini" />
|
|
|
+ <div class="brand-lockup collapsed" v-show="isCollapse">
|
|
|
+ <img src="/logo.png" class="brand-lockup__mini" alt="医梦AI" />
|
|
|
</div>
|
|
|
|
|
|
<el-menu
|
|
|
@@ -74,7 +76,7 @@
|
|
|
</el-aside>
|
|
|
|
|
|
<el-container>
|
|
|
- <el-header class="topbar">
|
|
|
+ <el-header class="clinical-topbar">
|
|
|
<div class="topbar-left">
|
|
|
<el-button text @click="isCollapse = !isCollapse">
|
|
|
<el-icon :size="20"><Fold v-if="!isCollapse" /><Expand v-else /></el-icon>
|
|
|
@@ -120,7 +122,7 @@
|
|
|
</div>
|
|
|
</el-header>
|
|
|
|
|
|
- <el-main class="main-content">
|
|
|
+ <el-main class="clinical-main">
|
|
|
<router-view />
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
@@ -200,26 +202,30 @@ function handleLogout() {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-.layout { height: 100vh; }
|
|
|
-.sidebar {
|
|
|
- background: #1a1560 !important;
|
|
|
+.clinical-shell { height: 100vh; color: var(--color-text); }
|
|
|
+.clinical-container { height: 100vh; }
|
|
|
+.clinical-sidebar {
|
|
|
+ background: linear-gradient(180deg, var(--color-brand-strong), #120d4a);
|
|
|
overflow-y: auto;
|
|
|
- transition: width 0.3s;
|
|
|
+ transition: width 0.2s ease;
|
|
|
}
|
|
|
-.logo-area {
|
|
|
- padding: 20px 16px 16px;
|
|
|
- border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
|
- text-align: center;
|
|
|
+.brand-lockup {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 10px;
|
|
|
+ padding: 16px 14px;
|
|
|
+ border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
|
}
|
|
|
-.logo-area.collapsed { padding: 12px 8px; }
|
|
|
-.logo-img { width: 120px; height: 60px; object-fit: contain; display: block; margin: 0 auto 4px; }
|
|
|
-.logo-img-mini { width: 40px; height: 22px; object-fit: contain; }
|
|
|
-.logo-text { font-size: 16px; font-weight: 700; color: #3ad4d8; letter-spacing: 3px; display: block; text-align: center; }
|
|
|
-.logo-sub { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; display: block; margin-top: 2px; }
|
|
|
+.brand-lockup.collapsed { justify-content: center; padding: 14px 8px; }
|
|
|
+.brand-lockup__logo { width: 72px; height: 36px; object-fit: contain; flex-shrink: 0; }
|
|
|
+.brand-lockup__mini { width: 38px; height: 22px; object-fit: contain; }
|
|
|
+.brand-lockup__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
|
+.brand-lockup__name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px; }
|
|
|
+.brand-lockup__sub { font-size: 11px; color: rgba(255,255,255,0.58); }
|
|
|
.menu-group-title {
|
|
|
padding: 16px 20px 6px;
|
|
|
font-size: 11px;
|
|
|
- color: rgba(255,255,255,0.3);
|
|
|
+ color: rgba(255,255,255,0.36);
|
|
|
text-transform: uppercase;
|
|
|
letter-spacing: 1px;
|
|
|
}
|
|
|
@@ -231,31 +237,35 @@ function handleLogout() {
|
|
|
border-radius: 6px;
|
|
|
}
|
|
|
.el-menu-item.is-active {
|
|
|
- background: rgba(58,212,216,0.12) !important;
|
|
|
+ background: rgba(58,212,216,0.1) !important;
|
|
|
border-left: 3px solid #3ad4d8;
|
|
|
}
|
|
|
-.topbar {
|
|
|
- height: 48px;
|
|
|
+.clinical-topbar {
|
|
|
+ height: var(--layout-topbar);
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- background: #fff;
|
|
|
- border-bottom: 1px solid #e8eaed;
|
|
|
+ background: var(--color-surface);
|
|
|
+ border-bottom: 1px solid var(--color-border);
|
|
|
padding: 0 20px;
|
|
|
}
|
|
|
.topbar-left { display: flex; align-items: center; gap: 8px; }
|
|
|
.topbar-right { display: flex; align-items: center; gap: 12px; }
|
|
|
-.user-info { font-size: 13px; color: #666; }
|
|
|
-.main-content { background: #f8f9fb; padding: 20px 24px; min-height: calc(100vh - 48px); }
|
|
|
+.user-info { font-size: 13px; color: var(--color-text-secondary); }
|
|
|
+.clinical-main {
|
|
|
+ min-height: calc(100vh - var(--layout-topbar));
|
|
|
+ padding: 20px 24px;
|
|
|
+ background: var(--color-bg);
|
|
|
+}
|
|
|
|
|
|
.notify-panel { max-height: 400px; overflow-y: auto; }
|
|
|
-.notify-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #eee; margin-bottom: 4px; font-weight: 600; }
|
|
|
-.notify-item { padding: 10px 4px; border-bottom: 1px solid #f5f5f5; cursor: pointer; border-radius: 4px; }
|
|
|
-.notify-item:hover { background: #f5f7fa; }
|
|
|
-.notify-item.unread { background: #f0f7ff; }
|
|
|
-.notify-title { font-size: 13px; font-weight: 500; }
|
|
|
-.notify-content { font-size: 12px; color: #888; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
-.notify-time { font-size: 11px; color: #bbb; margin-top: 2px; }
|
|
|
-.notify-empty { padding: 20px; text-align: center; color: #999; font-size: 13px; }
|
|
|
-.notify-footer { padding-top: 8px; text-align: center; border-top: 1px solid #eee; margin-top: 4px; }
|
|
|
+.notify-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--color-border-soft); margin-bottom: 4px; font-weight: 600; }
|
|
|
+.notify-item { padding: 10px 8px; border-bottom: 1px solid var(--color-border-soft); cursor: pointer; border-radius: 4px; }
|
|
|
+.notify-item:hover { background: var(--color-surface-subtle); }
|
|
|
+.notify-item.unread { background: var(--color-accent-soft); border-left: 2px solid var(--color-accent); }
|
|
|
+.notify-title { font-size: 13px; font-weight: 600; color: var(--color-text); }
|
|
|
+.notify-content { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
+.notify-time { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
|
|
|
+.notify-empty { padding: 20px; text-align: center; color: var(--color-text-muted); font-size: 13px; }
|
|
|
+.notify-footer { padding-top: 8px; text-align: center; border-top: 1px solid var(--color-border-soft); margin-top: 4px; }
|
|
|
</style>
|