<!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="deviceName" 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" name="serialNumber" 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" name="time" class="layui-input" id="date_range" placeholder="请选择发布时间" autocomplete="off">
                            </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;">
                        <input type="hidden" name="taskType" th:value="${taskType}" />
                        <table id="data_table" lay-filter="data_table_event"></table>
                    </div>
                </div>

            </div>
        </div>
    </body>

    <script type="text/html" id="end_flag">
        {{#  if(d.endFlag === '0' ){ }}
            <span>完成</span>
        {{#  } else { }}
            <span>统计中</span>
        {{#  } }}
    </script>

    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/ad/early_warning.js'}"></script>
</html>
