Commit b0d2080f by lujunyi

删除无用

parent a8e56a0d
......@@ -4,10 +4,8 @@
use App\Admin\Repositories\DoctorCorrectionRepository;
use App\Models\DoctorCorrectionModel;
use Dcat\Admin\Form;
use Dcat\Admin\Grid;
use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Show;
// 医师纠错
class DoctorCorrectionController extends AdminController
......@@ -46,50 +44,4 @@ protected function grid()
$grid->disableBatchActions(); // 禁用批量操作
});
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected function detail($id)
{
return Show::make($id, new DoctorCorrectionRepository(), function (Show $show) {
$show->field('id');
$show->field('doctor_id');
$show->field('doctor_name');
$show->field('is_handle');
$show->field('content');
$show->field('created_at');
$show->field('updated_at');
$show->panel()->tools(function ($tools) {
$tools->disableDelete(); // 禁止删除按钮
});
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
return Form::make(new DoctorCorrectionRepository(), function (Form $form) {
$form->display('id')->width(4);
// $form->text('doctor_id')->readonly()->width(4);
$form->text('doctor_name')->readonly()->width(4);
$form->textarea('content')->readonly()->width(4);
$form->switch('is_handle')->width(4);
$form->display('created_at')->width(4);
$form->display('updated_at')->width(4);
// 右上角按钮控制
$form->disableDeleteButton(); // 去掉删除按钮
$form->disableViewButton(); // 去掉跳转详情页按钮
});
}
}
......@@ -4,10 +4,8 @@
use App\Admin\Repositories\PharmacyCorrectionRepository;
use App\Models\PharmacyCorrectionModel;
use Dcat\Admin\Form;
use Dcat\Admin\Grid;
use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Show;
// 药店-纠错
class PharmacyCorrectionController extends AdminController
......@@ -46,50 +44,4 @@ protected function grid()
$grid->disableBatchActions(); // 禁用批量操作
});
}
/**
* Make a show builder.
*
* @param mixed $id
* @return Show
*/
protected function detail($id)
{
return Show::make($id, new PharmacyCorrectionRepository(), function (Show $show) {
$show->field('id');
$show->field('pharmacy_id');
$show->field('pharmacy_name');
$show->field('is_handle');
$show->field('content');
$show->field('created_at');
$show->field('updated_at');
$show->panel()->tools(function ($tools) {
$tools->disableDelete(); // 禁止删除按钮
});
});
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
return Form::make(new PharmacyCorrectionRepository(), function (Form $form) {
$form->display('id')->width(4);
// $form->text('pharmacy_id')->width(4);
$form->text('pharmacy_name')->readonly()->width(4);
$form->text('content')->readonly()->width(4);
$form->switch('is_handle')->width(4);
$form->display('created_at')->width(4);
$form->display('updated_at')->width(4);
// 右上角按钮控制
$form->disableDeleteButton(); // 去掉删除按钮
$form->disableViewButton(); // 去掉跳转详情页按钮
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment