{% extends "base.html" %} {% block content %}
| 时间 | 操作人 | 用户名 | 操作类型 | 操作对象 | 操作详情 | IP地址 |
|---|---|---|---|---|---|---|
| {{ log.created_at }} | {{ log.real_name }} | {{ log.username }} | {% if log.action == 'login' %} 登录 {% elif log.action == 'logout' %} 退出 {% elif log.action == 'add_user' %} 添加用户 {% elif log.action == 'edit_user' %} 编辑用户 {% elif log.action == 'delete_user' %} 删除用户 {% elif log.action == 'reset_password' %} 重置密码 {% elif log.action == 'add_template' %} 添加模板 {% elif log.action == 'edit_template' %} 编辑模板 {% elif log.action == 'delete_template' %} 删除模板 {% elif log.action == 'submit_task' %} 提交审批 {% elif log.action == 'approve_task' %} 审批通过 {% elif log.action == 'reject_task' %} 审批驳回 {% elif log.action == 'reapply_task' %} 重新提交 {% elif log.action == 'add_department' %} 添加部门 {% elif log.action == 'edit_department' %} 编辑部门 {% elif log.action == 'delete_department' %} 删除部门 {% elif log.action == 'add_position' %} 添加岗位 {% elif log.action == 'edit_position' %} 编辑岗位 {% elif log.action == 'delete_position' %} 删除岗位 {% elif log.action == 'export_tasks' %} 导出审批任务 {% elif log.action == 'export_templates' %} 导出审批模板 {% elif log.action == 'export_departments' %} 导出部门列表 {% elif log.action == 'export_positions' %} 导出岗位列表 {% elif log.action == 'export_users' %} 导出用户列表 {% elif log.action == 'export_logs' %} 导出操作日志 {% else %} {{ log.action }} {% endif %} | {{ log.target or '-' }} | {{ log.details or '-' }} | {{ log.ip_address or '-' }} |
| 暂无操作日志 | ||||||