|  | @@ -38,10 +38,32 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 | 
	
		
			
				|  |  |                          {field: 'mobile', title: __('Mobile')},
 | 
	
		
			
				|  |  |                          {field: 'status', title: __("Status"), searchList: {"normal":__('Normal'),"hidden":__('Hidden')}, formatter: Table.api.formatter.status},
 | 
	
		
			
				|  |  |                          {field: 'logintime', title: __('Login time'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
 | 
	
		
			
				|  |  | -                        {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function (value, row, index) {
 | 
	
		
			
				|  |  | +                        {field: 'operate', title: __('Operate'), table: table,
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                            buttons: [
 | 
	
		
			
				|  |  | +                                {
 | 
	
		
			
				|  |  | +                                    name: 'detail',
 | 
	
		
			
				|  |  | +                                    text: __('修改金额'),
 | 
	
		
			
				|  |  | +                                    title: __('修改金额'),
 | 
	
		
			
				|  |  | +                                    classname: 'btn btn-xs btn-primary btn-dialog',
 | 
	
		
			
				|  |  | +                                    icon: 'fa fa-list',
 | 
	
		
			
				|  |  | +                                    url: 'auth/admin/changemoney',
 | 
	
		
			
				|  |  | +                                    callback: function (data) {
 | 
	
		
			
				|  |  | +                                        Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
 | 
	
		
			
				|  |  | +                                    },
 | 
	
		
			
				|  |  | +                                    visible: function (row) {
 | 
	
		
			
				|  |  | +                                        //返回true时按钮显示,返回false隐藏
 | 
	
		
			
				|  |  | +                                        return true;
 | 
	
		
			
				|  |  | +                                    }
 | 
	
		
			
				|  |  | +                                },
 | 
	
		
			
				|  |  | +                            ],
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                            events: Table.api.events.operate, formatter: function (value, row, index) {
 | 
	
		
			
				|  |  |                                  if(row.id == Config.admin.id){
 | 
	
		
			
				|  |  |                                      return '';
 | 
	
		
			
				|  |  |                                  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                                  return Table.api.formatter.operate.call(this, value, row, index);
 | 
	
		
			
				|  |  |                              }}
 | 
	
		
			
				|  |  |                      ]
 | 
	
	
		
			
				|  | @@ -56,7 +78,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          edit: function () {
 | 
	
		
			
				|  |  |              Form.api.bindevent($("form[role=form]"));
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        changemoney: function () {
 | 
	
		
			
				|  |  | +            Form.api.bindevent($("form[role=form]"));
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |      return Controller;
 | 
	
		
			
				|  |  |  });
 |