{
field: 'buttons',
width: "120px",
title: __('操作'),
table: table,
events: Table.api.events.operate,
buttons: [
{
name: 'review',
text: __('提现审核'),
title: __('提现审核'),
classname: 'btn btn-sm btn-primary btn-dialog btn-review',
icon: 'fa fa-diamond',
url: 'Withdrawals/review',
visible: function (row) {
//返回true时按钮显示,返回false隐藏
//console.log(row);
if(row.status==1 && row.group==2 ){
return true;
}else {
return false;
}
}
},
{
name: 'pay',
text: __('结算'),
title: __('结算'),
classname: 'btn btn-sm btn-success btn-dialog btn-pay',
icon: 'fa fa-credit-card',
url: 'Withdrawals/pay',
visible: function (row) {
//返回true时按钮显示,返回false隐藏
//console.log(row);
if(row.status==2 && row.pay_status==0 && row.group==2 ){
return true;
}else {
return false;
}
}
},
{
name: 'detail',
text: __('查看'),
title: __('查看'),
classname: 'btn btn-sm btn-info btn-dialog btn-detail',
icon: 'fa fa-file-text-o',
url: 'Withdrawals/detail',
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
},
],
formatter: Table.api.formatter.buttons,operate:false
}
http://www.xueh188.top/index.php/archives/28/
最新推荐文章于 2024-06-02 23:41:46 发布