{% extends 'base.html' %} {% load unicorn %} {% block navbar_item %} 返回首页 {% endblock %} {% block content %}
{#
查找关键词: {{ current_task.task_keywords }}
#}
{% if not current_task.task_status %} 搜索状态: 正在检索 15% {% endif %} {% if current_task.task_status %} 搜索状态: 已完成 {% endif %}
{% for task_file in current_task.attachment.all %}
{{ task_file.file_name }} {% if task_file.file_keyword_str %} 检索到的敏感词:{{ task_file.file_keyword_str }}
{% for paragraph in task_file.keyword_paragraph.all %}

{{ forloop.counter }}.{{ paragraph.paragraph | safe }}

{% endfor %} {% endif %} {% if not task_file.file_keyword_str %} 未检索到敏感词 {% endif %}
{% endfor %}
{% endblock %} {#{% block content %}#} {#
#} {# {% unicorn 'paragraph_render' current_task.task_uuid %}#} {#
#} {##} {#{% endblock %}#} {% block script %} function monitorAndRefresh() { // 获取要监控的值 const targetElement = "{{ current_task.task_status }}"; // 请将 "yourTargetElementId" 替换为实际的标签ID if (targetElement !== "True") { // 如果标签的值不是true,等待两秒后刷新页面 setTimeout(function () { location.reload(); }, 1000); // 1000毫秒(1秒)后刷新页面 } } // 调用监控函数 monitorAndRefresh(); {% endblock %}