<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.w3.org/1999/xhtml">
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="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" 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">
                    <table id="table_id" lay-filter="table_event"></table>
                </div>
            </div>
        </div>
        <input type="hidden" id="id" th:value="${id}">
    </div>

    <script type="text/html" id="table-useradmin-webuser">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="access" sptg:security="estate:member:manager:access">管理门禁授权</a>
    </script>

    <!-- 住户类型 -->
    <script type="text/html" id="type">
        {{#  if(d.type == 0){ }}
        <span>业主</span>
        {{#  } else if(d.type == 1){ }}
        <span>成员</span>
        {{#  } else if(d.type == 2){ }}
        <span>租户</span>
        {{#  }  }}
    </script>


    <!-- javascript -->
    <script th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script>
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script th:src="@{'/js/estate/member-room.js'}" charset="utf-8"></script>
</body>

</html>