From 1e3cb50347128c2aa3473a3fcae01d4b3e9fba26 Mon Sep 17 00:00:00 2001 From: liapples Date: Sat, 18 Sep 2021 20:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/IndustryProductController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Admin/Controllers/IndustryProductController.php b/app/Admin/Controllers/IndustryProductController.php index 6776f71..326b4b6 100644 --- a/app/Admin/Controllers/IndustryProductController.php +++ b/app/Admin/Controllers/IndustryProductController.php @@ -24,6 +24,7 @@ class IndustryProductController extends AdminController return Grid::make(new IndustryProduct(['category']), function (Grid $grid) { $grid->disableCreateButton(); $grid->disableDeleteButton(); + $grid->disableEditButton(); //如果是审核页面,多加where条件判断 if (strpos(Route::current()->uri, 'audit')) { @@ -76,6 +77,7 @@ class IndustryProductController extends AdminController { return Show::make($id, new IndustryProduct(['category:id,name', 'supplier:id,name,contact_phone']), function (Show $show) { $show->disableDeleteButton(); + $show->disableEditButton(); $show->field('id'); $show->field('supplier.name', '供应商');