{% extends "admin/base.html" %} {% block admin_title %}运营总览{% endblock %} {% block page_title %}运营总览{% endblock %} {% block page_subtitle %}数据规模、流水线状态与最近比赛一屏掌握{% endblock %} {% block admin_content %} {% set health_color = 'emerald' if integrity.overall_status == 'pass' else ('amber' if integrity.overall_status == 'warn' else 'red') %}
{% for label, value, note in [ ('比赛总量', metrics.matches, 'L2 matches'), ('Active Roster', metrics.roster_players, roster_versions|string + ' roster version'), ('赛后报告', metrics.reports, 'L3 reports'), ('周期奖项', metrics.awards, 'Awards generated'), ('备份占用', metrics.backup_size, integrity.counts.backup_sets|string + ' snapshots') ] %}
{{ label }}
{{ value }}
{{ note }}
{% endfor %}
Data Pipeline

完整数据流水线

运行前自动备份 L1/L2/L3,串行构建并验证 {{ integrity.checks|length }} 项数据质量规则。失败时自动恢复。

Running
{{ job_summary.running }}
导入新比赛 查看所有作业

Data Health
{{ integrity.overall_status }}
{{ integrity.totals.pass }}
项检查通过
警告 {{ integrity.totals.warn }}
失败 {{ integrity.totals.fail }}
查看完整报告 →

最近作业

成功 {{ job_summary.succeeded }} · 失败 {{ job_summary.failed }}

作业中心
Latest Match
{% if latest_match %}
{{ 'WIN' if latest_match.is_win else 'LOSS' }} {{ latest_match.date_text }}
{{ latest_match.map_name }}
Team Rating {{ '%.2f'|format(latest_match.team_avg_rating) }}

{{ latest_match.summary_text }}

打开赛后报告 → {% else %}
暂无比赛数据
{% endif %}
{% for endpoint, title, note in [ ('admin.sql_runner', '查询数据', '只读 SQL Console'), ('admin.system', '系统信息', '数据库与备份'), ('teams.performance', '战队履历', 'Roster & Lineup'), ('awards.index', '荣誉中心', '周期最佳') ] %}
{{ title }}
{{ note }}
{% endfor %}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}