{% extends "base.html" %} {% block content %}

设备在线率仪表盘

设备在线率趋势图

各类型设备总体在线率

{% for device_type, stats in overall_stats.items() %}

{{ device_type }}

{{ stats.online_rate }}%
设备总数 {{ stats.total }}
派单数 {{ stats.work_orders }}
{% endfor %}

各支局设备在线率

{% for branch, types in branch_stats.items() %} {% for device_type, stats in types.items() %} {% if stats.total > 0 %} {% if loop.first %} {% endif %} {% endif %} {% endfor %} {% endfor %}
支局 设备类型 设备总数 派单数 在线率 状态
{{ branch }}{{ device_type }} {{ stats.total }} {{ stats.work_orders }} {{ stats.online_rate }}% {% if stats.online_rate >= 90 %} 良好 {% elif stats.online_rate >= 75 %} 一般 {% else %} 需关注 {% endif %}

各乡镇设备在线率

{% for town, types in town_stats.items() %}
{{ town }}
总设备数: {{ types['总计'].total }} 在线率: {{ types['总计'].online_rate }}% {% if types['总计'].online_rate >= 90 %} 良好 {% elif types['总计'].online_rate >= 75 %} 一般 {% else %} 需关注 {% endif %}
{% for device_type, stats in types.items() %} {% if device_type != '总计' and stats.total > 0 %} {% endif %} {% endfor %}
设备类型 设备总数 派单数 在线率 状态
{{ device_type }} {{ stats.total }} {{ stats.work_orders }} {{ stats.online_rate }}% {% if stats.online_rate >= 90 %} 良好 {% elif stats.online_rate >= 75 %} 一般 {% else %} 需关注 {% endif %}
{% endfor %}
{% endblock %}