|
|
|
@ -21,7 +21,7 @@ class IndustryProductController extends AdminController |
|
|
|
*/ |
|
|
|
protected function grid() |
|
|
|
{ |
|
|
|
return Grid::make(new IndustryProduct(['category:id,name']), function (Grid $grid) { |
|
|
|
return Grid::make(new IndustryProduct(['category:id,name', 'supplier:id,company_name']), function (Grid $grid) { |
|
|
|
$grid->disableDeleteButton(); |
|
|
|
$grid->disableRowSelector(); |
|
|
|
$grid->disableCreateButton(); |
|
|
|
@ -31,7 +31,7 @@ class IndustryProductController extends AdminController |
|
|
|
$grid->model()->where('status', ProductStatus::ON_SALE); |
|
|
|
|
|
|
|
$grid->column('id')->sortable(); |
|
|
|
$grid->column('type')->using(admin_trans('product.options.publish_type')); |
|
|
|
$grid->column('supplier.company_name', '供应商')->limit(10); |
|
|
|
$grid->column('category.name', '分类'); |
|
|
|
$grid->column('title')->limit(15); |
|
|
|
$grid->column('picture')->image('', 60,60); |
|
|
|
|