{% extends "web/base.html" %} {% load extras %} {% block title %}{{ submission.name }} · OJplatform{% endblock %} {% block content %}

{{ submission.name }}

作业要求: {{ submission.requirement.title }} · 提交人: {{ submission.submitted_by.username|default:"-" }} · 状态: {{ submission.get_status_display }}

{% if submission.report %}

检测总览

{% with o=submission.report.overall %} {% if o %}

通过 {{ o.passed_checks }} / {{ o.decided_checks }} 项已判定检查

{% for c in o.checks %} {% endfor %}
检查项结果说明
{{ c.name }} {% if c.pass == True %}通过 {% elif c.pass == False %}未通过 {% else %}未判定{% endif %} {{ c.note|truncatechars:120 }}
{% endif %} {% endwith %}

稳定度(压力测试)

{% with s=submission.report.stability %} {% if s.enabled %}

要求: {{ s.requirements }}

基准错误率加压崩溃率总请求数判定
{{ s.base_error_rate|default_if_none:"—" }} {{ s.rampup_crash_rate|default_if_none:"—" }} {{ s.total_requests|default_if_none:"—" }} {% if s.pass == True %}达标 {% elif s.pass == False %}未达标 {% else %}未判定: {{ s.reason|default:"" }}{% endif %}
{% else %}

本次未启用稳定度检测。

{% endif %} {% endwith %}

AI 检测

{% with a=submission.report.ai_inspection %} {% if a %}

{{ a.summary }}

{% if a.issues %} {% for i in a.issues %} {% endfor %}
检查点状态说明
{{ i.point }} {% if i.status == "pass" %}pass {% elif i.status == "fail" %}fail {% else %}warn{% endif %} {{ i.detail }}
{% endif %} {% else %}

无 AI 检测结果。

{% endif %} {% endwith %}

完整报告 (JSON)

{{ submission.report|json_filter }}
{% else %}

报告尚未生成(当前状态: {{ submission.get_status_display }})。刷新

{% endif %} {% endblock %}