columnIdDesc(); $helper->columnUserIDInfo(); $grid->column('fund_id', '账户')->using(AccountService::getFundsDesc()); $helper->columnc1000('balance')->sortable(); $helper->columnAt('create_time'); $helper->columnAt('update_time'); $helper->disableAll(); $grid->filter(function (Grid\Filter $filter) { $helper= new FilterHelper($filter,$this); $filter->equal('user_id'); $helper->equalRadio('fund_id',AccountService::getFundsDesc(),'账户'); $helper->gtas('user_idgt','user_id','最小'); $filter->expand(); $filter->panel(); }); $grid->actions(function (Grid\Displayers\Actions $actions) { // $actions->disableDelete(); // $actions->disableView(); $actions->append(new FundAdminAction()); $actions->append(new Circulation()); }); }); } /** * Make a show builder. * * @param mixed $id * * @return Show */ protected function detail($id) { return Show::make($id, new FundRepository(), function (Show $show) { $show->field('id'); $show->field('service_id'); $show->field('title'); $show->field('title_i18n'); }); } /** * Make a form builder. * * @return Form */ protected function form() { return Form::make(new Fund(), function (Form $form) { }); } public function circulation(Content $content) { return $content ->title('流转') ->body(new CirculationForm()); } }