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

{{ workflow_detail.workflow_name }}

{% if user.username == workflow_detail.engineer %} 上线其他实例 {% endif %} {% if is_can_review or is_can_execute or is_can_rollback or user.is_superuser %} 查看提交信息 {% endif %}

发起人 审批流程 当前审批 目标实例 数据库 发起时间 可执行时间范围 结束时间 备份 当前状态 类型
{{ workflow_detail.engineer_display }} {{ audit_auth_group }} {{ current_audit_auth_group }} {{ workflow_detail.instance.instance_name }} {{ workflow_detail.db_name }} {{ workflow_detail.create_time }} {% if workflow_detail.run_date_start and workflow_detail.run_date_end %} {{ workflow_detail.run_date_start }} / {{ workflow_detail.run_date_end }} {% else %} 无限制 {% endif %} {{ workflow_detail.finish_time }} {% if workflow_detail.is_backup %} 是 {% else %} 否 {% endif %} {% if workflow_detail.status == "workflow_finish" or workflow_detail.status == "workflow_finish_manual" %} {% else %} {% endif %} {{ workflow_detail.get_status_display }} {{ workflow_detail.group_name }} {{ workflow_detail.get_syntax_type_display }}

{% if last_operation_info %}
操作信息
{% format_str last_operation_info %}

{% endif %}
{% if is_can_review or is_can_cancel %}
{% endif %} {% if is_can_review %}
{% csrf_token %}
{% endif %} {% if is_can_review %}
{% csrf_token %}
{% endif %} {% if is_can_execute %}
{% csrf_token %}
{% if manual %}
{% csrf_token %}
{% endif %} {% endif %} {% if is_can_timingtask %} {% if workflow_detail.status == 'workflow_review_pass' %} {% elif workflow_detail.status == 'workflow_timingtask' %} {% endif %} {% endif %} {% if is_can_review or is_can_cancel %}
{% csrf_token %}
{% endif %} {% if is_can_rollback %} {% if workflow_detail.status == 'workflow_finish' or workflow_detail.status == 'workflow_exception' %}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% endif %} {% if workflow_detail.status == 'workflow_autoreviewwrong' or workflow_detail.status == 'workflow_abort' or workflow_detail.status == 'workflow_exception' %} {% if user.username == workflow_detail.engineer %} {% csrf_token %} 重新修改 {% endif %} {% endif %}
{% endblock content %} {% block js %} {% load static %} {% endblock %}