|
@@ -75,7 +75,39 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'jinyantime', title: __('Jinyantime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'jinyantype', title: __('Jinyantype'), searchList: {"1":__('Jinyantype 1'),"2":__('Jinyantype 2'),"3":__('Jinyantype 3')}, formatter: Table.api.formatter.normal},
|
|
|
// {field: 'is_shouchong', title: __('Is_shouchong'), searchList: {"0":__('Is_shouchong 0'),"1":__('Is_shouchong 1')}, formatter: Table.api.formatter.normal},
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'userwallet.gold', title: __('Userwallet.gold'), operate: false},
|
|
|
+ {field: 'userwallet.jewel', title: __('Userwallet.jewel'), operate: false},
|
|
|
+ {field: 'operate', title: __('Operate'), table: table,
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'updatemoney',
|
|
|
+ text:'充值金币',
|
|
|
+ title:'充值金币',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'user/user/updatemoney/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name:'updatejewel',
|
|
|
+ text:'收益金币',
|
|
|
+ title:'收益金币',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'user/user/updatejewel/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ },
|
|
|
+ /* {
|
|
|
+ name:'updatevip',
|
|
|
+ text:'充值vip会员',
|
|
|
+ title:'充值vip会员',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'userwallet/updatevip/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ }*/
|
|
|
+ ],
|
|
|
+ events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|
|
@@ -89,6 +121,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ updatemoney: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
+ updatejewel: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|