| xqd
@@ -39,12 +39,15 @@ class NoticeController extends AdminController
|
|
|
protected function detail($id)
|
|
|
{
|
|
|
return Show::make($id, new Notice(), function (Show $show) {
|
|
|
- $show->field('id');
|
|
|
- $show->field('teacher_id');
|
|
|
- $show->field('content');
|
|
|
- $show->field('created_at');
|
|
|
- $show->field('status');
|
|
|
- $show->field('updated_at');
|
|
|
+ $show->row(function (Show\Row $show) {
|
|
|
+ $show->width(12)->field('content');
|
|
|
+ $show->width(12)->field('teacher_id','通知对象')->using(config('map.teachers'));
|
|
|
+ });
|
|
|
+ // $show->field('teacher_id');
|
|
|
+ // $show->field('content');
|
|
|
+ // $show->field('created_at');
|
|
|
+ // $show->field('status');d
|
|
|
+ // $show->field('updated_at');
|
|
|
});
|
|
|
}
|
|
|
|
| xqd
@@ -63,7 +66,7 @@ class NoticeController extends AdminController
|
|
|
$form->multipleImage('photos','上传照片')->saveAsJson();
|
|
|
$form->file('pdf_file','点击上传文件')->help('上传格式为PDF,且大小不超过100MB');
|
|
|
});
|
|
|
- $form->disableViewButton();
|
|
|
+ //$form->disableViewButton();
|
|
|
// $form->text('teacher_id');
|
|
|
// $form->text('status');
|
|
|
// $form->text('desc');
|