<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org/sptg">
    <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="org_id" th:value="${onLineUser.orgId}" />
        <input type="hidden" id="org_type" th:value="${userOrg.orgType}" />
        <div class="layui-fluid">
            <!-- 下拉树 -->
            <div th:replace="common/org-tree"></div>
            <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="estate_name"></div>
                                    <input id="estate_pid" type="hidden" />
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">小区名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="name" 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="residentialNumber" placeholder="请输入" autocomplete="off" class="layui-input">
                                </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_event"></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/html" id="table-useradmin-webuser" >
            <a class="layui-btn layui-btn layui-btn-xs" lay-event="recover" sptg:security="estate:residential:trash">恢复</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" sptg:security="estate:residential:delete">删除</a>
        </script>
        <!-- javascript -->
        <script th:src="@{'/layui/layui.js'}"></script>
        <script>
            layui.config({
                base: '/' //静态资源所在路径
            });
        </script>
        <script th:src="@{'/js/estate/residential-manage-trash.js'}"></script>
    </body>
</html>