...
|
...
|
@@ -46,15 +46,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
{field: 'area', title: __('Area'), operate: 'LIKE'},
|
|
|
{field: 'address', title: __('Address'), operate: 'LIKE'},
|
|
|
{field: 'avatar', title: __('Avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false},
|
|
|
/* {field: 'pay_status', title: __('Status'),formatter: function (value, row, index) {
|
|
|
if(value === 'paid'){
|
|
|
return '会员';
|
|
|
}else if(value === 'unpaid'){
|
|
|
return '非会员';
|
|
|
}else{
|
|
|
return '其他';
|
|
|
|
|
|
{
|
|
|
field : 'operate', title: __('Operate'), table: table, buttons: [
|
|
|
{
|
|
|
name : 'detail',
|
|
|
text : __('Detail'),
|
|
|
icon : 'fa fa-list',
|
|
|
classname: 'btn btn-info btn-xs btn-detail btn-dialog',
|
|
|
}
|
|
|
},/!*, searchList: {normal: __('Normal'), hidden: __('Hidden')}*!/},*/
|
|
|
],
|
|
|
events: Table.api.events.operate, formatter: function (value, row, index) {
|
|
|
var that = $.extend({}, this);
|
|
|
that.buttons[0].url = 'order/index?ids=' + row.id;
|
|
|
return Table.api.formatter.operate.call(that, value, row, index);
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
});
|
...
|
...
|
|