Files
K12C/prototype-granularity.html

686 lines
30 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>教学力颗粒展示 - K12C</title>
<link href="https://cdn.jsdelivr.net/npm/font-awesome@6.4.0/css/all.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
background: transparent;
min-height: 100vh;
color: #1e293b;
}
.page { padding: 24px; min-height: 100vh; }
/* 顶部导航 */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding: 16px 24px;
background: rgba(255,255,255,0.95);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo-icon {
width: 40px; height: 40px;
background: linear-gradient(135deg, #059669, #10b981);
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 18px;
}
.nav-tabs {
display: flex;
gap: 8px;
}
.nav-tab {
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #64748b;
transition: all 0.2s;
}
.nav-tab:hover { background: #f1f5f9; }
.nav-tab.active {
background: #059669;
color: #fff;
}
.user-info {
display: flex;
align-items: center;
gap: 16px;
}
.user-avatar {
width: 40px; height: 40px;
background: linear-gradient(135deg, #059669, #10b981);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
color: #fff; font-weight: 600;
}
/* 主内容 */
.main-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
/* 左侧:综合得分 */
.score-card {
background: rgba(255,255,255,0.95);
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.card-title { font-size: 18px; font-weight: 600; }
.card-badge {
font-size: 11px;
padding: 4px 10px;
background: #ecfdf5;
color: #059669;
border-radius: 20px;
}
/* 大圆环 */
.score-ring {
display: flex;
justify-content: center;
margin-bottom: 24px;
}
.ring-container {
position: relative;
width: 200px; height: 200px;
}
.ring-bg, .ring-fill {
position: absolute;
width: 100%; height: 100%;
border-radius: 50%;
}
.ring-bg {
border: 16px solid #e2e8f0;
}
.ring-center {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.ring-value { font-size: 48px; font-weight: 700; color: #059669; }
.ring-label { font-size: 14px; color: #64748b; }
/* 权重分布 */
.weight-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.weight-item {
padding: 16px;
background: #f8fafc;
border-radius: 12px;
border-left: 4px solid;
}
.weight-item:nth-child(1) { border-color: #2563eb; }
.weight-item:nth-child(2) { border-color: #059669; }
.weight-item:nth-child(3) { border-color: #7c3aed; }
.weight-item:nth-child(4) { border-color: #f59e0b; }
.weight-item:nth-child(5) { border-color: #ef4444; }
.weight-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.weight-name { font-weight: 600; font-size: 14px; }
.weight-value { font-weight: 700; font-size: 18px; }
.weight-bar {
height: 8px;
background: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.weight-bar-fill { height: 100%; border-radius: 4px; }
.weight-desc { font-size: 11px; color: #64748b; margin-top: 4px; }
/* 右侧:颗粒指标 */
.granularity-card {
background: rgba(255,255,255,0.95);
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.granule-tabs {
display: flex;
gap: 8px;
margin-bottom: 20px;
}
.granule-tab {
flex: 1;
padding: 12px;
text-align: center;
background: #f8fafc;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
border: 2px solid transparent;
}
.granule-tab:hover { background: #f1f5f9; }
.granule-tab.active {
background: #ecfdf5;
border-color: #059669;
}
.granule-tab-icon { font-size: 20px; margin-bottom: 4px; }
.granule-tab-name { font-size: 13px; font-weight: 500; }
/* 颗粒列表 */
.granule-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.granule-item {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background: #f8fafc;
border-radius: 12px;
transition: all 0.2s;
cursor: pointer;
}
.granule-item:hover {
background: #f1f5f9;
transform: translateX(4px);
}
.granule-icon {
width: 48px; height: 48px;
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
font-size: 20px;
}
.granule-info { flex: 1; }
.granule-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.granule-desc { font-size: 12px; color: #64748b; }
.granule-score {
text-align: right;
}
.granule-value {
font-size: 24px;
font-weight: 700;
}
.granule-label {
font-size: 11px;
color: #64748b;
}
.granule-bar {
width: 100px;
height: 6px;
background: #e2e8f0;
border-radius: 3px;
overflow: hidden;
margin-top: 6px;
}
.granule-bar-fill { height: 100%; border-radius: 3px; }
/* 底部趋势图 */
.trend-section {
grid-column: 1 / -1;
background: rgba(255,255,255,0.95);
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.trend-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 16px;
margin-top: 16px;
}
.trend-item {
padding: 16px;
background: #f8fafc;
border-radius: 12px;
text-align: center;
}
.trend-icon { font-size: 24px; margin-bottom: 8px; }
.trend-name { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.trend-value { font-size: 20px; font-weight: 700; }
.trend-change {
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
display: inline-block;
margin-top: 4px;
}
.trend-change.up { background: #ecfdf5; color: #059669; }
.trend-change.down { background: #fef2f2; color: #ef4444; }
/* 明细表格 */
.detail-section {
grid-column: 1 / -1;
background: rgba(255,255,255,0.95);
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.detail-table {
width: 100%;
border-collapse: collapse;
margin-top: 16px;
}
.detail-table th, .detail-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid #e2e8f0;
}
.detail-table th {
font-weight: 600;
font-size: 13px;
color: #64748b;
background: #f8fafc;
}
.detail-table td { font-size: 14px; }
.detail-table tr:hover td { background: #f8fafc; }
.status-badge {
padding: 4px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 500;
}
.status-badge.excellent { background: #ecfdf5; color: #059669; }
.status-badge.good { background: #eff6ff; color: #2563eb; }
.status-badge.warning { background: #fffbeb; color: #f59e0b; }
.status-badge.danger { background: #fef2f2; color: #ef4444; }
/* 环形进度 */
.mini-ring {
width: 60px; height: 60px;
position: relative;
}
.mini-ring svg {
transform: rotate(-90deg);
}
.mini-ring-bg { fill: none; stroke: #e2e8f0; stroke-width: 6; }
.mini-ring-fill { fill: none; stroke-width: 6; stroke-linecap: round; }
.mini-ring-text {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
font-size: 14px;
font-weight: 700;
}
</style>
</head>
<body>
<div class="page">
<!-- 顶部导航 -->
<div class="header">
<div class="logo">
<div class="logo-icon"><i class="fas fa-chart-bar"></i></div>
<div>
<div style="font-weight:600;">教学力颗粒展示</div>
<div style="font-size:12px;color:#64748b;">K12C 教师胜任力管理平台</div>
</div>
</div>
<div class="nav-tabs">
<div class="nav-tab"><i class="fas fa-chart-pie"></i> 综合概览</div>
<div class="nav-tab active"><i class="fas fa-layer-group"></i> 教学颗粒</div>
<div class="nav-tab"><i class="fas fa-chart-line"></i> 趋势分析</div>
<div class="nav-tab"><i class="fas fa-history"></i> 历史记录</div>
</div>
<div class="user-info">
<div style="text-align:right;">
<div style="font-weight:600;">王小明</div>
<div style="font-size:12px;color:#64748b;">高一(1)班 语文教师</div>
</div>
<div class="user-avatar"></div>
</div>
</div>
<!-- 主内容 -->
<div class="main-content">
<!-- 左侧:综合得分 -->
<div class="score-card">
<div class="card-header">
<span class="card-title"><i class="fas fa-star" style="color:#f59e0b;margin-right:8px;"></i>教学力综合得分</span>
<span class="card-badge">2024年春季学期</span>
</div>
<div class="score-ring">
<div class="ring-container">
<div class="ring-bg"></div>
<svg class="ring-fill" viewBox="0 0 200 200" style="position:absolute;top:0;left:0;">
<circle cx="100" cy="100" r="84" fill="none" stroke="#059669" stroke-width="16"
stroke-dasharray="528" stroke-dashoffset="79" stroke-linecap="round"/>
</svg>
<div class="ring-center">
<div class="ring-value">85</div>
<div class="ring-label">综合得分</div>
</div>
</div>
</div>
<div class="weight-grid">
<div class="weight-item">
<div class="weight-header">
<span class="weight-name">学业进步率</span>
<span class="weight-value" style="color:#2563eb;">35%</span>
</div>
<div class="weight-bar"><div class="weight-bar-fill" style="width:35%;background:#2563eb;"></div></div>
<div class="weight-desc">班级平均分进步幅度</div>
</div>
<div class="weight-item">
<div class="weight-header">
<span class="weight-name">课堂满意度</span>
<span class="weight-value" style="color:#059669;">25%</span>
</div>
<div class="weight-bar"><div class="weight-bar-fill" style="width:25%;background:#059669;"></div></div>
<div class="weight-desc">学生匿名评教分数</div>
</div>
<div class="weight-item">
<div class="weight-header">
<span class="weight-name">作业批改质量</span>
<span class="weight-value" style="color:#7c3aed;">20%</span>
</div>
<div class="weight-bar"><div class="weight-bar-fill" style="width:20%;background:#7c3aed;"></div></div>
<div class="weight-desc">及时率 + 评语详细度</div>
</div>
<div class="weight-item">
<div class="weight-header">
<span class="weight-name">教研产出</span>
<span class="weight-value" style="color:#f59e0b;">10%</span>
</div>
<div class="weight-bar"><div class="weight-bar-fill" style="width:10%;background:#f59e0b;"></div></div>
<div class="weight-desc">论文、课题、公开课</div>
</div>
<div class="weight-item" style="grid-column: 1 / -1;">
<div class="weight-header">
<span class="weight-name">数字工具使用</span>
<span class="weight-value" style="color:#ef4444;">10%</span>
</div>
<div class="weight-bar"><div class="weight-bar-fill" style="width:10%;background:#ef4444;"></div></div>
<div class="weight-desc">多媒体教学、信息化工具应用频率</div>
</div>
</div>
</div>
<!-- 右侧:颗粒指标 -->
<div class="granularity-card">
<div class="card-header">
<span class="card-title"><i class="fas fa-layer-group" style="color:#7c3aed;margin-right:8px;"></i>教学颗粒指标</span>
<span class="card-badge">详细数据</span>
</div>
<div class="granule-tabs">
<div class="granule-tab active">
<div class="granule-tab-icon" style="color:#2563eb;"><i class="fas fa-pencil-alt"></i></div>
<div class="granule-tab-name">备课</div>
</div>
<div class="granule-tab">
<div class="granule-tab-icon" style="color:#059669;"><i class="fas fa-chalkboard-teacher"></i></div>
<div class="granule-tab-name">授课</div>
</div>
<div class="granule-tab">
<div class="granule-tab-icon" style="color:#7c3aed;"><i class="fas fa-tasks"></i></div>
<div class="granule-tab-name">作业</div>
</div>
<div class="granule-tab">
<div class="granule-tab-icon" style="color:#f59e0b;"><i class="fas fa-check-double"></i></div>
<div class="granule-tab-name">批改</div>
</div>
</div>
<div class="granule-list">
<div class="granule-item">
<div class="granule-icon" style="background:#eff6ff;color:#2563eb;">
<i class="fas fa-file-powerpoint"></i>
</div>
<div class="granule-info">
<div class="granule-name">课件原创度</div>
<div class="granule-desc">自主设计的课件占总课件比例</div>
</div>
<div class="granule-score">
<div class="granule-value" style="color:#2563eb;">92</div>
<div class="granule-label"></div>
<div class="granule-bar"><div class="granule-bar-fill" style="width:92%;background:#2563eb;"></div></div>
</div>
</div>
<div class="granule-item">
<div class="granule-icon" style="background:#ecfdf5;color:#059669;">
<i class="fas fa-clock"></i>
</div>
<div class="granule-info">
<div class="granule-name">备课时长</div>
<div class="granule-desc">平均每课时备课时间(小时)</div>
</div>
<div class="granule-score">
<div class="granule-value" style="color:#059669;">3.5</div>
<div class="granule-label">小时/课时</div>
<div class="granule-bar"><div class="granule-bar-fill" style="width:88%;background:#059669;"></div></div>
</div>
</div>
<div class="granule-item">
<div class="granule-icon" style="background:#f5f3ff;color:#7c3aed;">
<i class="fas fa-sync-alt"></i>
</div>
<div class="granule-info">
<div class="granule-name">课件更新率</div>
<div class="granule-desc">每学期课件更新比例</div>
</div>
<div class="granule-score">
<div class="granule-value" style="color:#7c3aed;">78</div>
<div class="granule-label">%</div>
<div class="granule-bar"><div class="granule-bar-fill" style="width:78%;background:#7c3aed;"></div></div>
</div>
</div>
<div class="granule-item">
<div class="granule-icon" style="background:#fffbeb;color:#f59e0b;">
<i class="fas fa-video"></i>
</div>
<div class="granule-info">
<div class="granule-name">多媒体使用</div>
<div class="granule-desc">课堂使用视频/动画的比例</div>
</div>
<div class="granule-score">
<div class="granule-value" style="color:#f59e0b;">85</div>
<div class="granule-label">%</div>
<div class="granule-bar"><div class="granule-bar-fill" style="width:85%;background:#f59e0b;"></div></div>
</div>
</div>
<div class="granule-item">
<div class="granule-icon" style="background:#fef2f2;color:#ef4444;">
<i class="fas fa-lightbulb"></i>
</div>
<div class="granule-info">
<div class="granule-name">教学创新点</div>
<div class="granule-desc">本学期创新的教学环节数量</div>
</div>
<div class="granule-score">
<div class="granule-value" style="color:#ef4444;">5</div>
<div class="granule-label">个/学期</div>
<div class="granule-bar"><div class="granule-bar-fill" style="width:83%;background:#ef4444;"></div></div>
</div>
</div>
</div>
</div>
<!-- 底部趋势 -->
<div class="trend-section">
<div class="card-header">
<span class="card-title"><i class="fas fa-chart-line" style="color:#2563eb;margin-right:8px;"></i>各维度趋势</span>
<span class="card-badge">近5周数据</span>
</div>
<div class="trend-grid">
<div class="trend-item">
<div class="trend-icon" style="color:#2563eb;"><i class="fas fa-pencil-alt"></i></div>
<div class="trend-name">备课质量</div>
<div class="trend-value" style="color:#2563eb;">88</div>
<span class="trend-change up"><i class="fas fa-arrow-up"></i> +3</span>
</div>
<div class="trend-item">
<div class="trend-icon" style="color:#059669;"><i class="fas fa-chalkboard-teacher"></i></div>
<div class="trend-name">授课表现</div>
<div class="trend-value" style="color:#059669;">92</div>
<span class="trend-change up"><i class="fas fa-arrow-up"></i> +5</span>
</div>
<div class="trend-item">
<div class="trend-icon" style="color:#7c3aed;"><i class="fas fa-tasks"></i></div>
<div class="trend-name">作业设计</div>
<div class="trend-value" style="color:#7c3aed;">85</div>
<span class="trend-change up"><i class="fas fa-arrow-up"></i> +2</span>
</div>
<div class="trend-item">
<div class="trend-icon" style="color:#f59e0b;"><i class="fas fa-check-double"></i></div>
<div class="trend-name">批改反馈</div>
<div class="trend-value" style="color:#f59e0b;">90</div>
<span class="trend-change down"><i class="fas fa-arrow-down"></i> -1</span>
</div>
<div class="trend-item">
<div class="trend-icon" style="color:#ef4444;"><i class="fas fa-comments"></i></div>
<div class="trend-name">学生反馈</div>
<div class="trend-value" style="color:#ef4444;">87</div>
<span class="trend-change up"><i class="fas fa-arrow-up"></i> +4</span>
</div>
</div>
</div>
<!-- 明细表格 -->
<div class="detail-section">
<div class="card-header">
<span class="card-title"><i class="fas fa-table" style="color:#7c3aed;margin-right:8px;"></i>教学数据明细</span>
<span class="card-badge">本周数据</span>
</div>
<table class="detail-table">
<thead>
<tr>
<th>教学环节</th>
<th>指标名称</th>
<th>实际值</th>
<th>标准值</th>
<th>完成率</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td><i class="fas fa-pencil-alt" style="color:#2563eb;margin-right:6px;"></i>备课</td>
<td>课件制作数</td>
<td>12 个</td>
<td>10 个</td>
<td>
<div class="mini-ring">
<svg width="60" height="60" viewBox="0 0 60 60">
<circle class="mini-ring-bg" cx="30" cy="30" r="24"/>
<circle class="mini-ring-fill" cx="30" cy="30" r="24"
stroke="#2563eb" stroke-dasharray="151" stroke-dashoffset="0"/>
</svg>
<span class="mini-ring-text" style="color:#2563eb;">120%</span>
</div>
</td>
<td><span class="status-badge excellent">优秀</span></td>
</tr>
<tr>
<td><i class="fas fa-chalkboard-teacher" style="color:#059669;margin-right:6px;"></i>授课</td>
<td>课堂出勤率</td>
<td>98.5%</td>
<td>95%</td>
<td>
<div class="mini-ring">
<svg width="60" height="60" viewBox="0 0 60 60">
<circle class="mini-ring-bg" cx="30" cy="30" r="24"/>
<circle class="mini-ring-fill" cx="30" cy="30" r="24"
stroke="#059669" stroke-dasharray="151" stroke-dashoffset="2"/>
</svg>
<span class="mini-ring-text" style="color:#059669;">98.5%</span>
</div>
</td>
<td><span class="status-badge excellent">优秀</span></td>
</tr>
<tr>
<td><i class="fas fa-tasks" style="color:#7c3aed;margin-right:6px;"></i>作业</td>
<td>作业布置量</td>
<td>45 次</td>
<td>40 次</td>
<td>
<div class="mini-ring">
<svg width="60" height="60" viewBox="0 0 60 60">
<circle class="mini-ring-bg" cx="30" cy="30" r="24"/>
<circle class="mini-ring-fill" cx="30" cy="30" r="24"
stroke="#7c3aed" stroke-dasharray="151" stroke-dashoffset="8"/>
</svg>
<span class="mini-ring-text" style="color:#7c3aed;">112%</span>
</div>
</td>
<td><span class="status-badge good">良好</span></td>
</tr>
<tr>
<td><i class="fas fa-check-double" style="color:#f59e0b;margin-right:6px;"></i>批改</td>
<td>批改及时率</td>
<td>92%</td>
<td>100%</td>
<td>
<div class="mini-ring">
<svg width="60" height="60" viewBox="0 0 60 60">
<circle class="mini-ring-bg" cx="30" cy="30" r="24"/>
<circle class="mini-ring-fill" cx="30" cy="30" r="24"
stroke="#f59e0b" stroke-dasharray="151" stroke-dashoffset="12"/>
</svg>
<span class="mini-ring-text" style="color:#f59e0b;">92%</span>
</div>
</td>
<td><span class="status-badge warning">待提升</span></td>
</tr>
<tr>
<td><i class="fas fa-comments" style="color:#ef4444;margin-right:6px;"></i>反馈</td>
<td>评语详细度</td>
<td>85%</td>
<td>80%</td>
<td>
<div class="mini-ring">
<svg width="60" height="60" viewBox="0 0 60 60">
<circle class="mini-ring-bg" cx="30" cy="30" r="24"/>
<circle class="mini-ring-fill" cx="30" cy="30" r="24"
stroke="#ef4444" stroke-dasharray="151" stroke-dashoffset="23"/>
</svg>
<span class="mini-ring-text" style="color:#ef4444;">85%</span>
</div>
</td>
<td><span class="status-badge good">良好</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script>
// 环形进度动画
document.querySelectorAll('.mini-ring-fill').forEach(circle => {
const circumference = 2 * Math.PI * 24;
const offset = circumference - (circle.getAttribute('stroke-dashoffset') / 151 * circumference);
circle.style.strokeDasharray = circumference;
circle.style.strokeDashoffset = offset;
});
</script>
</body>
</html>