<!DOCTYPE html>
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head::static"></script>
    <link th:href="@{/css/common/contianer.css}" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="layui-row">
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-header">数据字典</div>
            <div class="layui-card-body simple-table">
                <!-- 表格主体 -->
                <table class="layui-hide" id="dictTypeTable" lay-filter="dictTypeTable"></table>
                <!-- 模板 -->
                <script type="text/html" id="tableToolBar">
                    <div class="layui-btn-container">
                        <button class="layui-btn layui-btn-sm" lay-event="add">新增</button>
                        {{# if(d.id == 'dictTypeTable'){ }}
                        <input type="text" id="searchKeyInput" name="searchKeyInput" autocomplete="off"
                               placeholder="请输入字典名称" class="layui-input layui-btn-sm">
                        <button class="layui-btn layui-btn-sm" lay-event="query">查询</button>
                        {{# } }}
                    </div>
                </script>
                <script type="text/html" id="rowToolBar">
                    {{# if(!d.typeId){ }}
                    <a class="layui-btn layui-btn-xs" lay-event="manage">维护</a>
                    {{# } }}
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
                </script>
            </div>
        </div>
    </div>
</div>
</body>
<!-- js -->
<script th:replace="common/head::static-foot"></script>
<!--<script th:src="@{/js/sys/dict/dictType.js}"></script>-->
<script th:src="@{/js/sys/dict/dict.js}"></script>
<script type="text/javascript">
    const sizeInit = () => $(".simple-table").height(window.innerHeight - 43 - 20)
    window.onresize = sizeInit;
    sizeInit();
</script>
</html>