调整app后台版本查看
parent
0223a44027
commit
9e8db909fa
|
|
@ -20,11 +20,15 @@ class AppVersionController extends AdminController
|
|||
{
|
||||
return Grid::make(new AppVersion(), function (Grid $grid) {
|
||||
$grid->column('id')->sortable();
|
||||
$grid->column('name');
|
||||
$grid->column('title');
|
||||
$grid->column('name')->label();
|
||||
$grid->column('v');
|
||||
$grid->column('cate')->using([
|
||||
1=>'苹果',
|
||||
2=>'安卓',
|
||||
])->label([
|
||||
1=>'warning',
|
||||
2=>'success',
|
||||
]);
|
||||
$grid->column('is_force')->bool();
|
||||
$grid->column('link');
|
||||
|
|
@ -50,6 +54,7 @@ class AppVersionController extends AdminController
|
|||
$grid->filter(function (Grid\Filter $filter) {
|
||||
$filter->panel();
|
||||
$filter->equal('name')->width(3);
|
||||
$filter->equal('title')->width(3);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
return [
|
||||
'labels' => [
|
||||
'AppVersion' => 'AppVersion',
|
||||
'app-version' => 'AppVersion',
|
||||
'AppVersion' => 'App版本管理',
|
||||
'app-versions' => 'App版本管理',
|
||||
],
|
||||
'fields' => [
|
||||
'title' => '更新标题',
|
||||
|
|
|
|||
Loading…
Reference in New Issue