项目演示微调 - 展示前端class——name
This commit is contained in:
+5
-4
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>学生管理系统</title>
|
||||
<title>教育培训管理系统</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #333; }
|
||||
@@ -56,7 +56,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<h1>📚 学生管理系统</h1>
|
||||
<h1>📚 教育培训管理系统</h1>
|
||||
<h3>贡献人员:元堡,牧遥,Agent</h3>
|
||||
<div class="nav">
|
||||
<button class="nav-btn active" onclick="showSection('dashboard')">概览</button>
|
||||
<button class="nav-btn" onclick="showSection('students')">学生</button>
|
||||
@@ -91,7 +92,7 @@
|
||||
<div class="card">
|
||||
<h2>成绩统计</h2>
|
||||
<table>
|
||||
<thead><tr><th>考核</th><th>平均分</th><th>最高分</th><th>最低分</th><th>人数</th></tr></thead>
|
||||
<thead><tr><th>班级</th><th>考核</th><th>平均分</th><th>最高分</th><th>最低分</th><th>人数</th></tr></thead>
|
||||
<tbody id="score-stats-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -342,7 +343,7 @@
|
||||
// Score stats
|
||||
const scoreStats = await fetchAPI('/stats/scores');
|
||||
const tbody = document.getElementById('score-stats-body');
|
||||
tbody.innerHTML = scoreStats.map(s => `<tr><td>${s.score_num}</td><td>${s.avg_score.toFixed(2)}</td><td>${s.max_score}</td><td>${s.min_score}</td><td>${s.count}</td></tr>`).join('');
|
||||
tbody.innerHTML = scoreStats.map(s => `<tr><td>${s.class_name}</td><td>${s.score_num}</td><td>${s.avg_score.toFixed(2)}</td><td>${s.max_score}</td><td>${s.min_score}</td><td>${s.count}</td></tr>`).join('');
|
||||
|
||||
// Employment stats
|
||||
const empStats = await fetchAPI('/stats/employment');
|
||||
|
||||
Reference in New Issue
Block a user