|
@@ -7,8 +7,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'userwallet/index' + location.search,
|
|
|
add_url: 'userwallet/add',
|
|
|
- edit_url: 'userwallet/edit',
|
|
|
- del_url: 'userwallet/del',
|
|
|
+
|
|
|
+
|
|
|
multi_url: 'userwallet/multi',
|
|
|
import_url: 'userwallet/import',
|
|
|
table: 'user_wallet',
|
|
@@ -27,10 +27,23 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
+ {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
{field: 'money', title: __('Money'), operate:'BETWEEN'},
|
|
|
{field: 'jewel', title: __('Jewel')},
|
|
|
- {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'operate', title: __('Operate'),
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ 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',
|
|
|
+ },
|
|
|
+
|
|
|
+ ],
|
|
|
+ table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|
|
@@ -44,6 +57,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ updatemoney: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|