|
|
@@ -8,6 +8,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
index_url: 'user/user/index',
|
|
|
edit_url: 'user/user/edit',
|
|
|
del_url: 'user/user/del',
|
|
|
+ multi_url: 'user/user/multi',
|
|
|
balance_url: 'user/user/balance',
|
|
|
cardslip_url: 'user/user/cardslip',
|
|
|
collection_url: 'user/user/collection',
|
|
|
@@ -20,8 +21,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// 初始化表格
|
|
|
table.bootstrapTable({
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
|
- pk: 'a.id',
|
|
|
- sortName: 'a.id',
|
|
|
+ pk: 'id',
|
|
|
+ sortName: 'id',
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
@@ -29,15 +30,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
|
|
|
{field: 'agent', title: __('Group_id'), operate: false},
|
|
|
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
|
|
|
- {field: 'parent_name', title: __('Parent_id'), operate: false},
|
|
|
+ {field: 'parent.mobile', title: __('Parent_id'), operate: false},
|
|
|
{field: 'balance', title: __('Balance'), operate: false},
|
|
|
{field: 'freeze', title: __('Freeze'), operate: false},
|
|
|
{field: 'task_num', title: __('Task'), operate: false},
|
|
|
-
|
|
|
- {field: 'id', title: __('Recharge'), operate: false},
|
|
|
- {field: 'id', title: __('Withdrawal'), operate: false},
|
|
|
- {field: 'id', title: __('Income'), operate: false},
|
|
|
-
|
|
|
+ {field: 'recharge', title: __('Recharge'), operate: false},
|
|
|
+ {field: 'withdraw', title: __('Withdrawal'), operate: false},
|
|
|
+ {field: 'id', title: __('Income'), operate: false, formatter: function(value, row, index) {
|
|
|
+ var income = row.withdraw - row.recharge;
|
|
|
+ return income < 0?0:income;
|
|
|
+ }},
|
|
|
{field: 'invitation_code', title: __('Invitation_code'), operate: false},
|
|
|
{field: 'is_agent', title: __('Is_agent'), searchList: {1: __('Yes'), 0: __('No')}, formatter: Table.api.formatter.status},
|
|
|
|