<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <style>
            .layui-layer.alert_content .layui-layer-content {
                padding: 0;
            }
            .layui-layer.alert_content .layui-layer-btn{
                padding: 0 30px 12px;
            }
            .xm-toolbar .toolbar-tag {
                width: 100%;
                display: flex;
                justify-content: center;
                background-color: #1E9FFF!important;
                color: #fff!important;
            }
        </style>
    </head>

    <body style="position: absolute;top:0;bottom: 0;left:0;right: 0;">
        <div class="layui-fluid">
            <div class="x-body">
                <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">设备sn号</label>
                                <div class="layui-input-block">
                                    <input type="text" id="device_id" placeholder="请输入设备sn号" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">上线状态</label>
                                <div class="layui-input-block">
                                    <select id="defense_status">
                                        <option value="" selected>全部</option>
                                        <option value="1" >已上线</option>
                                        <option value="2" >未上线</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">设备状态</label>
                                <div class="layui-input-block">
                                    <select id="status">
                                        <option value="" selected>全部</option>
                                        <option value="1" >正常</option>
                                        <option value="2" >告警</option>
                                        <option value="3" >失联</option>
                                        <option value="4" >停用(弃用)</option>
                                        <option value="5" >待布防</option>
                                    </select>
                                </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;">
                            <!--<div style="padding-bottom: 10px;">-->
                                <!--<button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="syncDeviceList" sptg:security="iot:device:syncDeviceList">全量同步存量设备列表</button>-->
                            <!--</div>-->
                            <!--<div style="padding-bottom: 10px;">-->
                                <!--<button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="syncDeviceList" sptg:security="iot:device:syncDeviceList">全量同步存量设备</button>-->
                            <!--</div>-->
                            <table id="data_entity_table" lay-filter="table_event"></table>
                        </div>
                    </div>
                </div>
            </div>
            <input type="hidden" id="user_org_id" th:value="${onLineUser.orgId}" />
        </div>

        <!-- javascript -->
        <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
        <script type="text/javascript">
            layui.config({
                base: '/' //静态资源所在路径
            });
            var selectDeviceIds = new Set();
        </script>
        <script type="text/javascript" th:src="@{'/js/iot/iot-device-manage.js'}" charset="utf-8"></script>

        <!--操作-->
        <script type="text/html" id="table-operate">
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="info">详情</a>
        </script>

    </body>

</html>
