You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
996 B
39 lines
996 B
<?php
|
|
|
|
|
|
namespace App\Admin\Controllers;
|
|
|
|
|
|
use App\Models\AdminUsers;
|
|
use App\Models\FinancialRecord0;
|
|
use Dcat\Admin\Controllers\AdminController;
|
|
use Dcat\Admin\Form;
|
|
use Dcat\Admin\Grid;
|
|
|
|
class LanzuFinancialRecord extends AdminController
|
|
{
|
|
protected function grid()
|
|
{
|
|
return Grid::make(new FinancialRecord0(),function (Grid $grid){
|
|
$grid->id;
|
|
$grid->user_id('用户');
|
|
$grid->money('金额');
|
|
$grid->desc('说明');
|
|
$grid->created_at('创建时间');
|
|
$grid->filter(function (Grid\Filter $filter){
|
|
$filter->equal('id');
|
|
});
|
|
$grid->disableViewButton();
|
|
$grid->disableCreateButton();
|
|
$grid->disableEditButton();
|
|
$grid->disableDeleteButton();
|
|
});
|
|
}
|
|
|
|
protected function form()
|
|
{
|
|
return Form::make(new FinancialRecord0(),function (Form $form){
|
|
$form->datetime('created_at');
|
|
});
|
|
}
|
|
}
|