<!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('用户积分流水列表')" th:value="${id}"/>
</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>
                                <input type="hidden" name="id" id="id" th:value="${id}"/>
                            </li>
                        </ul>
                    </div>
                </form>
            </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 prefix = ctx + "system/bill";

        $(function() {
            var options = {
                url: prefix + "/listByUserId",
                modalName: "用户积分流水详情",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '用户账单id',
                    visible: false
                },
                {
                    field: 'username',
                    title: '用户名称'
                },
                {
                    field: 'title',
                    title: '账单标题'
                },
                {
                    field: 'number',
                    title: '明细数字'
                },
                {
                    field: 'balance',
                    title: '剩余'
                },
                {
                    field: 'useCategory',
                    title: '积分用途'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>