{% extends 'layout/base.html' %} {% block title %}个人统计 - SmartDSP考勤管理系统{% endblock %} {% block content %}

个人统计分析

基本信息
学号: {{ student.student_number }}
姓名: {{ student.name }}
年级: {{ student.grade }}级
入学日期: {{ student.enrollment_date.strftime('%Y-%m-%d') if student.enrollment_date else '未设置' }}
筛选条件
重置
{% if all_time_stats %}
入学以来总体表现

{{ all_time_stats.attendance_weeks }}

总考勤周数

{{ "%.1f"|format(all_time_stats.total_work_hours) }}

总工作时长(h)

{{ "%.1f"|format(all_time_stats.total_class_hours) }}

班内工作(h)

{{ all_time_stats.total_late_count }}

迟到次数

{{ all_time_stats.total_absent_days }}

旷工天数

{{ "%.1f"|format(all_time_stats.attendance_rate) }}%

出勤率
{% endif %}
筛选期间考勤周数
{{ total_stats.attendance_weeks }}周
总出勤时长
{{ "%.1f"|format(total_stats.total_work_hours) }}h
迟到次数
{{ total_stats.total_late_count }}次
周均工作时长
{{ "%.1f"|format(total_stats.avg_weekly_hours) }}h
月度考勤统计
最近12周趋势
详细考勤记录
{% if attendance_records %}
{% for record in attendance_records %} {% endfor %}
周次 实际工作时长 班内工作时长 加班时长 旷工天数 考勤状态 操作
{{ record.week_start_date.strftime('%Y-%m-%d') }} 至 {{ record.week_end_date.strftime('%Y-%m-%d') }}
{{ "%.1f"|format(record.actual_work_hours) }}h {{ "%.1f"|format(record.class_work_hours) }}h {% if record.overtime_hours > 0 %} {{ "%.1f"|format(record.overtime_hours) }}h {% else %} 0h {% endif %} {% if record.absent_days > 0 %} {{ record.absent_days }}天 {% else %} 0天 {% endif %} {% set performance_score = (record.actual_work_hours / 40 * 100) if record.actual_work_hours else 0 %} {% if performance_score >= 80 %} 优秀 {% elif performance_score >= 60 %} 良好 {% else %} 待改善 {% endif %} 详情
{% else %}
暂无统计数据

当前筛选条件下没有找到考勤记录

{% endif %}
快捷操作
{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}