{% extends "base.html" %} {% block title %}卡密管理 · DSH 卡密后台{% endblock %} {% block content %}

卡密管理 共 {{ total }} 张

重置 导出 CSV 批量生成
{% for c in cards %} {% else %} {% endfor %}
卡密类型权限备注激活时间 到期时间剩余设备状态操作
{{ c.card }} {{ cfg.card_types[c.type].label if c.type in cfg.card_types else c.type }} {{ c.perm.name }} {{ c.note or '-' }} {{ c.active_text if c.activated else '未激活' }} {{ c.expire_text if c.expire_at else '-' }} {% if c.activated %} {% set d = c.remain // 86400 %} {% set h = (c.remain % 86400) // 3600 %} {{ d }}天{{ h }}时 {% else %}-{% endif %} {{ (c.device_id[:12] + '...') if c.device_id and c.device_id|length > 12 else (c.device_id or '-') }} {% if c.suspended %}暂停 {% elif not c.activated %}未激活 {% else %}正常{% endif %}
{% if c.device_id %}
{% endif %}
展开编辑 {{ c.card }}
没有符合条件的卡密
{% if pages > 1 %}
{% if page > 1 %} 上一页 {% endif %} {{ page }} / {{ pages }} {% if page < pages %} 下一页 {% endif %} 共 {{ total }} 条
{% endif %} {% endblock %}