<!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/aComApplySNBToCNT/css/applySNBToCNT.css}" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-body">
                <form id="sysSettingTaskForm" class="layui-form layui-form-pane">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">自动审查</label>
                            <div class="layui-input-block">
                                <input id="applyAutoExamine" th:value="${sysSettingTask.applyAutoExamine}"
                                       hidden="hidden"/>
                                <input type="radio" name="applyAutoExamine" value="Y" title="是">
                                <input type="radio" name="applyAutoExamine" value="N" title="否">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">snb筛选范围</label>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="conditionSnbMin" placeholder="min"
                                       th:value="${sysSettingTask.conditionSnbMin}" autocomplete="off"
                                       class="layui-input">
                            </div>
                            <div class="layui-form-mid">-</div>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="conditionSnbMax" placeholder="max"
                                       th:value="${sysSettingTask.conditionSnbMax}" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">当天下标限制的次数</label>
                            <div class="layui-input-inline" style="width: 100px;">
                                <input type="text" name="applyCount" placeholder="下标次数"
                                       th:value="${sysSettingTask.applyCount}" 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="updateTime"
                                       th:value="${#dates.format(sysSettingTask.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
                                       autocomplete="off"
                                       placeholder="更新时间"
                                       class="layui-input" readonly="readonly" disabled="disabled">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <a class="layui-btn" onclick="sysSettingTaskFormSave()">修改</a>
                        </div>
                    </div>

                    <!-- 隐藏域 -->
                    <input type="text" name="id" th:value="${sysSettingTask.id}" hidden="hidden"/>
                    <input type="text" name="createTime"
                           th:value="${#dates.format(sysSettingTask.createTime, 'yyyy-MM-dd HH:mm:ss')}"
                           hidden="hidden"/>
                </form>
            </div>
            <div class="layui-card-body">
                <div class="layui-inline addressTable" style="margin-bottom: 20px;">
                    <div class="layui-inline">
                        钱包地址：
                        <div class="layui-inline">
                            <input class="layui-input" name="id" id="addressReload" autocomplete="off">
                        </div>
                        <button class="layui-btn" data-type="reload">搜索</button>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label" style="margin-left: 20px;">日期范围的数据:</label>
                        <div class="layui-input-inline" style="width: 300px;">
                            <input type="text" class="layui-input" id="cntDate" placeholder=" - ">
                        </div>
                        <button class="layui-btn" data-type="exports">导出</button>
                    </div>
                </div>


                <div class="layui-tab" lay-filter="test">
                    <ul class="layui-tab-title">
                        <li class="layui-this" lay-id="0">申请中</li>
                        <li lay-id="1">申请通过</li>
                        <li lay-id="2">申请驳回</li>
                        <li lay-id="3">进入冻结流程</li>
                    </ul>

                </div>
                <!-- 表格主体 -->
                <table class="layui-hide" id="applySnbTable" lay-filter="test"></table>

                <!-- 模板 -->
                <script type="text/html" id="applySnbTableToolbarDemo">

                    <div class="layui-btn-container">
                        <button class="layui-btn layuibtn1" lay-event="applySnbTableReload">刷新</button>
                        {{# if(applyState == 0 || applyState == 2){ }}
                        <button class="layui-btn layuibtn2" lay-event="batchApproval">批量同意</button>
                        {{# } }}
                        {{# if(applyState == 1){ }}
                        <button class="layui-btn layuibtn3" lay-event="batchRejection">批量驳回</button>
                        {{# } }}
                        <button class="layui-btn layuibtn4" lay-event="getCheckLength">获取选中数目</button>
                        <button class="layui-btn layuibtn5" lay-event="isAll">验证是否全选</button>
                    </div>


                </script>

                <script type="text/html" id="barDemo">
                    {{# if(d.isState == 0 || d.isState == 2){ }}
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="agree">同意</a>
                    {{# } }}
                    {{# if(d.isState == 1){ }}
                    <a class="layui-btn layui-btn-xs" lay-event="reject">驳回</a>
                    {{# } }}
                </script>
            </div>
        </div>
    </div>
</div>
</body>
<!-- js -->
<script th:src="@{/sys/aComApplySNBToCNT/js/applySNBToCNT.js}"></script>
</html>