<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('短剧用户提现账户列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>用户id：</label>
                            <input type="text" name="userId"/>
                        </li>
                        <li>
                            <label>用户真实姓名：</label>
                            <input type="text" name="realName"/>
                        </li>
                        <li>
                            <label>支付宝账号：</label>
                            <input type="text" name="zfbAccount"/>
                        </li>
                        <li>
                            <label>银行卡收款户名：</label>
                            <input type="text" name="bankCardAccountName"/>
                        </li>
                        <li>
                            <label>银行卡支行所在地区：</label>
                            <input type="text" name="bankCardArea"/>
                        </li>
                        <li>
                            <label>银行卡支行名称：</label>
                            <input type="text" name="bankCardSubBranchName"/>
                        </li>
                        <li>
                            <label>银行卡卡号：</label>
                            <input type="text" name="bankCardNumber"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:account:remove">
                <i class="fa fa-remove"></i> 删除
            </a>
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:account:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:account:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:account:remove')}]];
    var bankDict = [[${@dict.getType('playlet_user_bank')}]];
    var prefix = ctx + "system/playlet/userAccount";

    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "短剧用户提现账户",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '${comment}',
                    visible: false
                },
                {
                    field: 'userId',
                    title: '用户id'
                },
                {
                    field: 'realName',
                    title: '用户真实姓名'
                },
                {
                    field: 'zfbAccount',
                    title: '支付宝账号'
                },
                {
                    field: 'bankCardType',
                    title: '银行卡名称',
                    align: 'center',
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(bankDict, value);
                    }
                },
                {
                    field: 'bankCardAccountName',
                    title: '银行卡收款户名'
                },
                {
                    field: 'bankCardArea',
                    title: '银行卡支行所在地区'
                },
                {
                    field: 'bankCardSubBranchName',
                    title: '银行卡支行名称'
                },
                {
                    field: 'bankCardNumber',
                    title: '银行卡卡号'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>