<!DOCTYPE html>
<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">
                    <label class="layui-form-label">地区编号</label>
                    <div class="layui-input-block">
                        <input id="code" type="text" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">父级编号</label>
                    <div class="layui-input-block">
                        <input id="parentCode" type="text" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">地区名称</label>
                    <div class="layui-input-block">
                        <input id="name" type="text" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">层级</label>
                    <div class="layui-input-block">
                        <input id="layerNumber" type="text" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">邮编</label>
                    <div class="layui-input-block">
                        <input id="zipCode" type="text" 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;">
                <div style="padding-bottom: 10px;">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="add" sptg:security="area:add">添加地区</button>
                </div>
                <table id="data_entity_table" lay-filter="data_table_event"></table>
            </div>
        </div>
    </div>
</div>
</body>

<!-- 工具栏 -->
<script type="text/html" id="table-useradmin-webuser">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete" sptg:security="area:delete"><span>删除</span></a>
</script>

<!-- 是否可用 -->
<script type="text/html" id="entity_is_enable"></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/permissions/area-manage.js'}"></script>
</html>