|
@@ -108,8 +108,10 @@ class SitePagesController extends AdminDistController
|
|
|
//页面类型
|
|
|
$pageType = getTempValue('location');
|
|
|
$pagesTag = $show->model()->pagesTag->toArray();
|
|
|
- //$show->field('id');
|
|
|
$show->field('title');
|
|
|
+ if ($pageType == 1) {
|
|
|
+ $show->field('template_file');
|
|
|
+ }
|
|
|
$show->field('pagesTag',admin_trans_label('tags'))->as(function ($value) use ($pagesTag) {
|
|
|
return array_column($pagesTag,'name');
|
|
|
})->label();
|
|
@@ -125,8 +127,6 @@ class SitePagesController extends AdminDistController
|
|
|
return CommonHelper::displayImage($dataImages,150);
|
|
|
})->unescape();
|
|
|
$show->field('content')->unescape();
|
|
|
- $show->field('created_at');
|
|
|
- $show->field('updated_at');
|
|
|
$show->field('seo_title');
|
|
|
$show->field('seo_keywords');
|
|
|
$show->field('seo_description');
|
|
@@ -134,6 +134,8 @@ class SitePagesController extends AdminDistController
|
|
|
return getSiteDomain().config('dictionary.site_url.pages').'/'.$value;
|
|
|
});
|
|
|
$show->field('status')->using(admin_trans_array(config('dictionary.pages_status')));
|
|
|
+ $show->field('created_at');
|
|
|
+ $show->field('updated_at');
|
|
|
});
|
|
|
}
|
|
|
|