<!DOCTYPE html>
<!--解决idea thymeleaf 表达式模板报红波浪线-->
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 引入公用部分 -->
    <script th:replace="common/head::static"></script>
    <!-- 游戏数据用户相关样式 -->
    <link th:href="@{/sys/aComConfig/css/config.css}" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="layui-row layui-col-space15">
    <!-- 树 -->
    <div class="layui-col-md9">
        <div class="layui-card">
            <div class="layui-card-header">参数列表</div>
            <div class="layui-card-body">
                <!-- 表格主体 -->
                <table class="layui-hide" id="configTable" lay-filter="test"></table>
                <script type="text/html" id="configToolbar">
                    <div class="layui-btn-container">
                        <button class="layui-btn layui-btn-sm" lay-event="addNewRow">新增</button>
                    </div>
                </script>
                <script type="text/html" id="configTableBarDemo">
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑<i class="layui-icon layui-icon-edit"></i></a>
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                </script>
            </div>
        </div>

    </div>
    <!-- 操作表单 -->
    <div class="layui-col-md3">
        <div class="layui-card">
            <div class="layui-card-header">操作表单</div>
            <div class="layui-card-body">
                <form id="configForm" class="layui-form layui-form-pane">
                    <div class="layui-form-item" id="tableId">
                        <label class="layui-form-label">id</label>
                        <div class="layui-input-block">
                            <input type="text" name="id" autocomplete="off" placeholder="id"
                                   class="layui-input" readonly = "readonly">
                        </div>
                    </div>
                    <!--readonly = "readonly"-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">参数</label>
                        <div class="layui-input-block">
                            <input type="text" name="parameter" autocomplete="off" placeholder="parameter"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">数值</label>
                        <div class="layui-input-block">
                            <input type="text" name="value" autocomplete="off" placeholder="value"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea name="note" placeholder="note" class="layui-textarea"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item" id="tableTime">
                        <div class="layui-inline">
                            <label class="layui-form-label">更新时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="updateTime" autocomplete="off" class="layui-input"
                                       readonly="readonly">
                            </div>
                        </div>
                    </div>
                    <!-- 隐藏域 -->
                    <input type="text" name="id" hidden="hidden"/>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <a id="saveBtn" class="layui-btn" type="submit" lay-submit lay-filter="configFilter">保存</a>
                            <a id="addBtn" class="layui-btn" type="submit" lay-submit lay-filter="configAddFilter">新增</a>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>

</div>
</body>
<!-- js -->
<script th:src="@{/sys/aComConfig/js/excelParameter.js}"></script>
</html>