<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <!-- 省市区样式 -->
        <link rel="stylesheet" th:href="@{'/layui/lay/mymodules/region.css'}">
        <style>
            .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;">
        <input type="hidden" id="unitId" th:value="${unitId}" />
        <div class="layui-fluid">
            <div class="x-body per-table">
                <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">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">
                                        小区地区
                                    </label>
                                    <div class="layui-input-block" id="region_body">
                                        <input type="hidden"  name="regionProvince" />
                                        <input type="hidden"  name="regionCity" />
                                        <input type="hidden"  name="regionArea" />
                                        <input type="text" id="region" readonly="readonly" placeholder="只限制所属小区，不限制表格查询" autocomplete="off" class="layui-input" />
                                        <div th:replace="common/region"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属小区</label>
                                <div class="layui-input-block">
                                    <div id="residential_name"></div>
                                    <input id="residential_id" type="hidden" />
                                </div>
                            </div>
&lt;!&ndash;                            <div class="layui-inline">&ndash;&gt;
&lt;!&ndash;                                <label class="layui-form-label">单元名</label>&ndash;&gt;
&lt;!&ndash;                                <div class="layui-input-block">&ndash;&gt;
&lt;!&ndash;                                    <input type="text" name="name" placeholder="请输入" autocomplete="off" class="layui-input">&ndash;&gt;
&lt;!&ndash;                                </div>&ndash;&gt;
&lt;!&ndash;                            </div>&ndash;&gt;
&lt;!&ndash;                            <div class="layui-inline">&ndash;&gt;
&lt;!&ndash;                                <label class="layui-form-label">单元编号</label>&ndash;&gt;
&lt;!&ndash;                                <div class="layui-input-block">&ndash;&gt;
&lt;!&ndash;                                    <input type="text" name="unitNumber"  placeholder="请输入" autocomplete="off" class="layui-input">&ndash;&gt;
&lt;!&ndash;                                </div>&ndash;&gt;
&lt;!&ndash;                            </div>&ndash;&gt;
                            <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="add" sptg:security="estate:floor:add">添加楼层</button>-->
                                <button class="layui-btn layuiadmin-btn-useradmin"  lay-submit lay-filter="batchdel" sptg:security="estate:floor:delete">批量删除</button>
<!--                                <button class="layui-btn layuiadmin-btn-useradmin"  lay-submit lay-filter="import" sptg:security="estate:floor:import">导入</button>-->
<!--                                <button class="layui-btn layuiadmin-btn-useradmin"  lay-submit lay-filter="export" sptg:security="estate:floor:export">导出</button>-->
                            </div>
                            <table id="table_id" lay-filter="table_event"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <script type="text/html" id="table-useradmin-webuser">
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit" sptg:security="estate:floor:update">修改</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" sptg:security="estate:floor:delete">删除</a>
            <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="clearRoom" sptg:security="estate:floor:delete">清空房屋信息</a>
<!--            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail" sptg:security="estate:unit:manage">管理单元</a>-->
        </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/estate/floor-manage.js'}"></script>
    </body>
</html>