<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
    </head>
    <body>
        <div class="layui-fluid">
            <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="serialNumber" id="serialNumber" placeholder="请输入设备序列号" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">处理状态</label>
                        <div class="layui-input-block">
                            <select id="handle_status" >
                                <option value="" selected>全部</option>
                                <option value="1" >待处理</option>
                                <option value="2" >已处理</option>
                                <option value="3" >处理失败</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">创建时间</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input date-icon" id="create_date" placeholder="请选择"
                                   autocomplete="off">
                            <input type="hidden" id="begin_date" name="beginDate"/>
                            <input type="hidden" id="end_date" name="endDate"/>
                        </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>
            <button type="button" lay-submit="" lay-filter="refresh" class="layui-btn layui-btn-primary layui-btn-sm"
                    style="display:block;margin:0 auto">
                <i class="layui-icon layui-icon-refresh" style="font-size: 20px"></i>
            </button>
            <input type="hidden" name="userId" th:value="${userId}" />
            <table id="data_table" lay-filter="data_table_event"></table>
        </div>
    </body>
    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/html" id="table-operate">
        {{#  if(d.handleStatus != 2 && d.invalid != 2){ }}
        <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="resend" sptg:security="device:instruct:resend">重发</a>
        {{#  } }}
    </script>
    <script type="text/javascript" th:src="@{'/js/estate/log-face.js'}"></script>
</html>
