|
@@ -30,8 +30,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
{field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
- {field: 'money', title: __('Money'), operate:'BETWEEN'},
|
|
|
{field: 'gold', title: __('Gold')},
|
|
|
+ {field: 'money', title: __('Money')},
|
|
|
+ {field: 'jewel', title: __('Jewel')},
|
|
|
{field: 'vip_endtime', title: __('Vip_endtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
// {field: 'vip_level', title: __('Vip_level'),searchList: {"0":__('Vip_level 0'),"10":__('Vip_level 10'),"20":__('Vip_level 20'),"30":__('Vip_level 30'),"40":__('Vip_level 40')}, formatter: Table.api.formatter.status},
|
|
|
{field: 'pay_money', title: __('累计消费金额')},
|
|
@@ -39,17 +40,35 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'operate', title: __('Operate'), table: table,
|
|
|
buttons:[
|
|
|
{
|
|
|
- name:'updatemoney',
|
|
|
+ name:'updategold',
|
|
|
text:'充值金币',
|
|
|
title:'充值金币',
|
|
|
icon:'fa fa-exclamation-circle',
|
|
|
classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'userwallet/updategold/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'updatemoney',
|
|
|
+ text:'充值积分',
|
|
|
+ title:'充值积分',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
url:'userwallet/updatemoney/id/{ids}?dialog=1',
|
|
|
target:'_self',
|
|
|
- /*hidden:function(row){
|
|
|
- return row.status==100 ? false : false;
|
|
|
- }*/
|
|
|
- }
|
|
|
+
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'updatejewel',
|
|
|
+ text:'充值钻石',
|
|
|
+ title:'充值钻石',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'userwallet/updatejewel/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+
|
|
|
+ },
|
|
|
],
|
|
|
events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
@@ -65,9 +84,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ updategold: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
updatemoney: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ updatejewel: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|