<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="padding:0;">
                <div class="layui-form-item border-b">
                    <div class="layui-inline">
                        <label class="layui-form-label">操作人</label>
                        <div class="layui-input-block">
                            <input type="text" name="operatorAccountName" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">操作事件</label>
                        <div class="layui-input-block">
                            <select name="operationEvent" lay-verify="">
                                <option value="" selected>全部</option>
                                <option value="0" >新增</option>
                                <option value="1" >删除</option>
                                <option value="2">修改</option>
                                <option value="3">登录</option>
                                <option value="4">退出登录</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">操作菜单</label>
                        <div class="layui-input-block">
                            <input type="text" name="menu" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">操作时间</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="laydate-range-datetime" placeholder="" lay-key="28">
                        </div>
                    </div>
                    <div class="layui-inline" style="margin-left: 38px;">
                        <button class="layui-btn layuiadmin-btn-useradmin"  lay-submit lay-filter="query">查询</button>
                        <button class="layui-btn  layui-btn-primary"  lay-submit lay-filter="reset">重置</button>
                    </div>
                </div>

                <!-- 表格+头部按钮 -->
                <div class="layui-card-body"  style="padding:0;">
                    <table id="table-id" lay-filter="table-id"></table>
                </div>
            </div>

        </div>
    </div>
    <!-- 操作事件  0新增  1删除  2 修改  3登录  4退出登录 -->
    <script type="text/html" id="operationEvent">
        {{#  if(d.operationEvent == 0){ }}
        <span style="color: #1f26ff" >新增</span>
        {{#  } else if(d.operationEvent == 1){ }}
        <span style="color: red">删除</span>
        {{#  } else if(d.operationEvent == 2){ }}
        <span style="color: #737673">修改</span>
        {{#  } else if(d.operationEvent == 3){ }}
        <span style="color: green">登录</span>
        {{#  } else if(d.operationEvent == 4){ }}
        <span style="color: #000000">退出登录</span>
        {{#  } }}
    </script>

    <script type="text/html" id="table-useradmin-webuser">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail">详情</a>
    </script>

    <script type="text/javascript" th:src="@{'/layui/layui.js '}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/statistics/sys-operation-log.js'}" charset="utf-8"></script>
</body>
</html>