|
|
@@ -26,19 +26,19 @@
|
|
|
|
|
|
<!-- 右侧:班级管理 -->
|
|
|
<div class="main-content">
|
|
|
- <div class="page-header">
|
|
|
- <h2 class="page-title">
|
|
|
- 班级管理
|
|
|
- <span v-if="selectedCourse" class="breadcrumb-course">
|
|
|
- > {{ selectedCourse.level }} · {{ selectedCourse.name }}
|
|
|
- </span>
|
|
|
- </h2>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- :disabled="!selectedCourse"
|
|
|
- @click="showDialog = true"
|
|
|
- >新建班级</el-button>
|
|
|
+ <!-- 内容工具栏:页头标题由外壳提供,此处保留课程上下文与新建动作 -->
|
|
|
+ <div class="toolbar">
|
|
|
+ <div class="toolbar-left">
|
|
|
+ <span v-if="selectedCourse" class="toolbar-context">{{ selectedCourse.level }} · {{ selectedCourse.name }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="toolbar-right">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ :disabled="!selectedCourse"
|
|
|
+ @click="showDialog = true"
|
|
|
+ >新建班级</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div v-if="!selectedCourse" class="no-course-hint">
|
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
.sidebar {
|
|
|
width: 260px;
|
|
|
flex-shrink: 0;
|
|
|
- border: 1px solid #EBEEF5;
|
|
|
+ border: 1px solid #DCE7F1;
|
|
|
border-radius: 4px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
@@ -220,8 +220,8 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
padding: 12px 16px;
|
|
|
- border-bottom: 1px solid #EBEEF5;
|
|
|
- background: #F5F7FA;
|
|
|
+ border-bottom: 1px solid #DCE7F1;
|
|
|
+ background: #F0F4F9;
|
|
|
}
|
|
|
.sidebar-title {
|
|
|
font-size: 14px;
|
|
|
@@ -249,10 +249,10 @@ export default {
|
|
|
transition: background 0.15s;
|
|
|
}
|
|
|
.course-item:hover {
|
|
|
- background: #F5F7FA;
|
|
|
+ background: #F0F4F9;
|
|
|
}
|
|
|
.course-item.active {
|
|
|
- background: #ECF5FF;
|
|
|
+ background: #E8F3FC;
|
|
|
border-left: 3px solid #2E6FA8;
|
|
|
padding-left: 13px;
|
|
|
}
|
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
font-size: 12px;
|
|
|
font-weight: 600;
|
|
|
color: #2E6FA8;
|
|
|
- background: #ECF5FF;
|
|
|
+ background: #E8F3FC;
|
|
|
border-radius: 3px;
|
|
|
padding: 2px 6px;
|
|
|
margin-right: 8px;
|
|
|
@@ -290,23 +290,21 @@ export default {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
-.page-header {
|
|
|
+.toolbar {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
-.page-title {
|
|
|
- margin: 0;
|
|
|
- font-size: 18px;
|
|
|
+.toolbar-context {
|
|
|
+ font-size: 13px;
|
|
|
font-weight: 600;
|
|
|
color: #1E3A5F;
|
|
|
}
|
|
|
-.breadcrumb-course {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- color: #6B7B8C;
|
|
|
- margin-left: 8px;
|
|
|
+.toolbar-right {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
}
|
|
|
.no-course-hint {
|
|
|
padding: 40px;
|