From a30e23ab07d60284bd59a067f8f247ecf80f4f73 Mon Sep 17 00:00:00 2001 From: QDKF Date: Thu, 4 Sep 2025 17:23:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E5=AD=A6=E6=83=85?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=92=8C=E5=AD=A6=E7=94=9F=E6=88=90=E7=BB=A9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91:=E6=96=B0=E5=A2=9ELearning?= =?UTF-8?q?Statistics.vue=E5=AD=A6=E6=83=85=E7=BB=9F=E8=AE=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E5=8C=85=E5=90=AB6=E4=B8=AA=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=A8=A1=E5=9D=97=E5=92=8CECharts=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9EStudentGrades.vue=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=BB=A9=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=88=90=E7=BB=A9=E7=AE=A1=E7=90=86=E3=80=81=E6=9D=83=E9=87=8D?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=92=8C=E6=8F=90=E9=86=92=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statistics/tab/LearningStatistics.vue | 672 ++++++++++- .../teacher/statistics/tab/StudentGrades.vue | 1059 ++++++++++++++++- 2 files changed, 1703 insertions(+), 28 deletions(-) diff --git a/src/views/teacher/statistics/tab/LearningStatistics.vue b/src/views/teacher/statistics/tab/LearningStatistics.vue index a8a3268..5f27f29 100644 --- a/src/views/teacher/statistics/tab/LearningStatistics.vue +++ b/src/views/teacher/statistics/tab/LearningStatistics.vue @@ -1,34 +1,676 @@ + + +
+ +
+

+ 章节 + (共4章5小节) +

+
+ +
+
+
章节学习总人次
+
+ 0 + +
+
+
+
章节平均学习次数
+
+ 0 + +
+
+
+ + +
+

学习次数分布

+
+ +
+
+
+
+ + +
+

+ 作业 + (共5个) +

+
+
+

作业完成率

+
+ +
+
+
+
+
+ + +
+ +
+

+ 考试 + (共5场) +

+
+ +
+
+
参与人数
+
+ 70 + +
+
+
+
平均成绩
+
+ 60 + +
+
+
+ +
+

成绩占比

+
+ +
+
+
+
+ + +
+

+ 练习 + (共5场) +

+
+ +
+
+
参与人数
+
+ 70 + +
+
+
+
平均成绩
+
+ 60 + +
+
+
+ +
+

成绩占比

+
+ +
+
+
+
+
+ + +
+ +
+

+ 证书 + (共1个) +

+
+
+

证书获取率

+
+ +
+
+
+
+ + +
+

+ 讨论 + (共5个) +

+
+ +
+
+
讨论话题
+
+ 7 + +
+
+
+
回复数量
+
+ 60 + +
+
+
+ +
+

讨论活跃度

+
+ +
+
+
+
+
+ + \ No newline at end of file + +/* 图表区域 */ +.chart-section { + margin-left: 10px; + width: 50%; +} + +.chart-section.full-width { + width: 100%; +} + +.chart-title { + font-size: 14px; + color: #333; + margin-bottom: 5px; + font-weight: 500; + text-align: left; +} + +.chart-container { + height: 140px; + width: 100%; +} + +/* 响应式设计 */ +@media (max-width: 768px) { + .statistics-content { + grid-template-columns: 1fr; + } + + .card-content { + flex-direction: column; + align-items: stretch; + } + + .chart-container { + height: 120px; + } +} + diff --git a/src/views/teacher/statistics/tab/StudentGrades.vue b/src/views/teacher/statistics/tab/StudentGrades.vue index 65a96ca..3eb1ab8 100644 --- a/src/views/teacher/statistics/tab/StudentGrades.vue +++ b/src/views/teacher/statistics/tab/StudentGrades.vue @@ -1,34 +1,1067 @@ \ No newline at end of file + +.apply-other-classes { + display: flex; + align-items: center; + margin: 10px 0 0 0; + padding: 12px 0; + border-top: 1.5px solid #E6E6E6; +} + +.apply-label { + font-size: 16px; + color: #333; + font-weight: 500; +} + +.apply-toggle { + margin-left: 16px; +} + +.apply-description { + font-size: 14px; + color: #666; + line-height: 1.4; + margin-bottom: 20px; +} + +.modal-footer { + display: flex; + justify-content: flex-end; + gap: 12px; +} + + /* 权重输入框样式 */ + :deep(.weight-input .n-input) { + border: 1px solid #E6E6E6 !important; + background-color: #FCFCFC !important; + border-radius: 0 !important; + padding: 7px 0; + } + + :deep(.weight-input .n-input__input-el) { + background-color: #FCFCFC !important; + text-align: center !important; + font-size: 16px !important; + color: #666666 !important; + } + + /* 学生成绩表格样式 */ + :deep(.grade-data-table .n-data-table-td) { + padding: 12px 8px; + font-size: 12px; + color: #062333; + } + + :deep(.grade-data-table .n-data-table-th) { + padding: 4px 8px; + font-size: 14px; + color: #062333; + } + + /* 学习进度表格样式 */ + :deep(.progress-data-table .n-data-table-td) { + padding: 12px 8px; + font-size: 12px; + color: #062333; + } + + :deep(.progress-data-table .n-data-table-th) { + padding: 4px 8px; + font-size: 14px; + color: #062333; + } + + /* 表格边框和高度 */ + :deep(.grade-data-table), + :deep(.progress-data-table) { + border: 1px solid #E6E6E6; + border-radius: 4px; + } + + :deep(.grade-data-table .n-data-table-table), + :deep(.progress-data-table .n-data-table-table) { + border-collapse: collapse; + } + + :deep(.grade-data-table .n-data-table-thead), + :deep(.progress-data-table .n-data-table-thead) { + background-color: #F1F3F4; + } + + :deep(.grade-data-table .n-data-table-tbody tr:hover), + :deep(.progress-data-table .n-data-table-tbody tr:hover) { + background-color: #F8F9FA; + } + +/* 提醒模板模态框样式 */ +.reminder-template { + max-height: 400px; + overflow-y: auto; + padding: 0; +} + +.reminder-template p { + margin: 8px 0; +} + +.reminder-template ul { + margin: 10px 0; + list-style: none; +} + +.reminder-template li { + margin: 5px 0; +} + +.reminder-template a { + color: #1890ff; + text-decoration: none; +} + +.reminder-template a:hover { + text-decoration: underline; +} + +:deep(.n-modal .n-card .n-card-header) { + border-bottom: 1px solid #E6E6E6 !important; + padding-bottom: 10px !important; +} +