|
|
|
@ -25,7 +25,7 @@ class LanzuCsWithdrawController extends AdminController |
|
|
|
*/ |
|
|
|
protected function grid() |
|
|
|
{ |
|
|
|
return Grid::make(new LanzuCsWithdraw(), function (Grid $grid) { |
|
|
|
return Grid::make(new LanzuCsWithdraw('csInfo'), function (Grid $grid) { |
|
|
|
$user = Admin::user(); |
|
|
|
if (!$user->isRole('lanzu_cs')) {//如果不是社区站点的角色登陆,则隐藏提现入口
|
|
|
|
$grid->disableCreateButton(); |
|
|
|
@ -40,15 +40,13 @@ class LanzuCsWithdrawController extends AdminController |
|
|
|
$grid->disableViewButton(); |
|
|
|
$grid->disableDeleteButton(); |
|
|
|
$grid->id->sortable(); |
|
|
|
$grid->cs_id('提现用户')->display(function () { |
|
|
|
return LanzuCsInfo::where('id', $this->cs_id)->first()->name; |
|
|
|
}); |
|
|
|
$grid->column('csInfo.name','提现用户'); |
|
|
|
$grid->money; |
|
|
|
$grid->status('状态')->using([1 => '已同意', -1 => '已拒绝', 0 => '待审核'])->label([1 => 'success', -1 => 'danger', 0 => 'default']); |
|
|
|
$grid->is_pay('是否到账')->using(['否', '是']); |
|
|
|
$grid->created_at; |
|
|
|
$grid->filter(function (Grid\Filter $filter) { |
|
|
|
$filter->equal('id'); |
|
|
|
$filter->like('csInfo.name','提现用户'); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|