<!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="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" 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>

    <!-- 设备事件 { -1：故障，0：关机，1：开机 } -->
    <script type="text/html" id="tempLet_event">
        {{#  if(d.event == -1){ }}
        <span style="color: red" >故障</span>
        {{#  } else if(d.event == 0){ }}
        <span style="color: gray">关机</span>
        {{#  } else if(d.event == 1){ }}
        <span style="color: #1f26ff">开机</span>
        {{#  } }}
    </script>
    <script th:src="@{'/layui/layui.js '}" charset="utf-8"></script>
    <script>
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script th:src="@{'/js/statistics/sys-device-log.js'}" charset="utf-8"></script>
</body>
</html>