增加自然语言状态摘要
This commit is contained in:
@@ -66,6 +66,7 @@ interface DashboardGreeting {
|
||||
title: string
|
||||
subtitle: string
|
||||
label: string
|
||||
narrative: string
|
||||
insights: Array<{
|
||||
label: string
|
||||
value: string
|
||||
@@ -465,6 +466,8 @@ onMounted(async () => {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p class="greeting-narrative">{{ data.greeting.narrative }}</p>
|
||||
|
||||
<section class="overview-metrics" aria-label="关键教学数据">
|
||||
<button
|
||||
v-for="metric in adminMetrics"
|
||||
@@ -652,6 +655,14 @@ onMounted(async () => {
|
||||
.greeting-insight strong { color: var(--dashboard-navy); font-size: 20px; }
|
||||
.greeting-insight small { overflow: hidden; color: #84909d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.greeting-narrative {
|
||||
margin: -7px 0 0;
|
||||
padding: 0 3px;
|
||||
color: #526078;
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.overview-hero::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
||||
@@ -74,6 +74,7 @@ interface DashboardGreeting {
|
||||
title: string
|
||||
subtitle: string
|
||||
label: string
|
||||
narrative: string
|
||||
insights: Array<{
|
||||
label: string
|
||||
value: string
|
||||
@@ -350,6 +351,7 @@ onMounted(loadOverview)
|
||||
<em>{{ insight.hint }}</em>
|
||||
</article>
|
||||
</section>
|
||||
<p v-if="dashboardGreeting?.narrative" class="student-greeting-narrative">{{ dashboardGreeting.narrative }}</p>
|
||||
|
||||
<el-alert
|
||||
v-if="failedSections.length"
|
||||
@@ -595,6 +597,14 @@ onMounted(loadOverview)
|
||||
.student-greeting-insights strong { color: var(--ink); font-size: 19px; }
|
||||
.student-greeting-insights em { overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.student-greeting-narrative {
|
||||
margin: -5px 0 0;
|
||||
padding: 0 3px;
|
||||
color: #526078;
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.today-status {
|
||||
min-width: 180px;
|
||||
margin-left: auto;
|
||||
|
||||
Reference in New Issue
Block a user