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