|
@@ -7,8 +7,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'user/user/index' + location.search,
|
|
|
add_url: 'user/user/add',
|
|
|
- edit_url: 'user/user/edit',
|
|
|
- del_url: 'user/user/del',
|
|
|
+// edit_url: 'user/user/edit',
|
|
|
+// del_url: 'user/user/del',
|
|
|
multi_url: 'user/user/multi',
|
|
|
import_url: 'user/user/import',
|
|
|
table: 'user',
|
|
@@ -61,7 +61,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'introcode', title: __('Introcode'), operate: 'LIKE'},
|
|
|
{field: 'intro_uid', title: __('Intro_uid')},
|
|
|
{field: 'wallet.score', title: __('wallet.score')},
|
|
|
-// {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'operate', title: __('Operate'),
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'scoreadd',
|
|
|
+ text:'增加积分',
|
|
|
+ title:'增加积分',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'user/user/scoreadd/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ /*hidden:function(row){
|
|
|
+ return row.status==100 ? false : false;
|
|
|
+ }*/
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|
|
@@ -75,6 +90,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ scoreadd: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|