michealwoo 2 年之前
父節點
當前提交
23641ed4bd
共有 1 個文件被更改,包括 10 次插入7 次删除
  1. 10 7
      app/Admin/Controllers/NoticeController.php

+ 10 - 7
app/Admin/Controllers/NoticeController.php

@@ -39,12 +39,15 @@ class NoticeController extends AdminController
     protected function detail($id)
     protected function detail($id)
     {
     {
         return Show::make($id, new Notice(), function (Show $show) {
         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');
         });
         });
     }
     }
 
 
@@ -63,7 +66,7 @@ class NoticeController extends AdminController
                 $form->multipleImage('photos','上传照片')->saveAsJson();
                 $form->multipleImage('photos','上传照片')->saveAsJson();
                 $form->file('pdf_file','点击上传文件')->help('上传格式为PDF,且大小不超过100MB');
                 $form->file('pdf_file','点击上传文件')->help('上传格式为PDF,且大小不超过100MB');
            });
            });
-           $form->disableViewButton();
+           //$form->disableViewButton();
             // $form->text('teacher_id');
             // $form->text('teacher_id');
             // $form->text('status');
             // $form->text('status');
             // $form->text('desc');
             // $form->text('desc');