xiaoyong931011
2022-12-05 34efa2ca14f6ec35a71b33291a62e53ba691dfb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div className="layui-fluid layui-anim febs-anim" id="febs-team-info" lay-title="团队详情">
    <div className="layui-row febs-container">
        <div className="layui-col-md12">
            <div className="layui-card">
                <div className="layui-card-body febs-table-full">
                    <table lay-filter="teamInfoChild" lay-data="{id: 'teamInfoChild'}"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script data-th-inline="none" type="text/javascript">
    layui.use(['jquery', 'form', 'table', 'febs'], function () {
        var $ = layui.jquery,
            febs = layui.febs,
            form = layui.form,
            table = layui.table,
            $view = $('#febs-team-info'),
            tableIns;
 
        form.render();
 
        initTable();
 
        function initTable() {
            tableIns = febs.table.init({
                elem: $view.find('table'),
                id: 'teamInfoChild',
                url: ctx + 'member/teamInfo?parentId=1',
                totalRow: true,
                cols: [[
                    {field: 'address', title: '地址', minWidth: 100, totalRowText: '合计'},
                    {field: 'accountType', title: '代理级别', minWidth: 100,},
                    {field: 'activeStatus', title: '加入动能',
                        templet: function (d) {
                            if (d.activeStatus === 1) {
                                return '<span style="color:green;">'+d.systemProfitId+'</span>'
                            } else{
                                return ''
                            }
                        }, minWidth: 80,align:'center'},
                    {field: 'directCnt', title: '直推数量', minWidth: 100, totalRow: true},
                    {field: 'directProfit', title: '直推收益', minWidth: 100, totalRow: true},
                    {field: 'levelProfit', title: '层级收益', minWidth: 100, totalRow: true},
                    {field: 'luckyProfit', title: '出局收益', minWidth: 100, totalRow: true}
                ]]
            });
        }
 
    })
</script>