|
|
|
@ -58,9 +58,10 @@ class GoodsController extends AdminController |
|
|
|
$grid->store_id->display(function ($storeId) use($storeList){ |
|
|
|
return isset($storeList[$storeId]) ? $storeList[$storeId] : ''; |
|
|
|
}); |
|
|
|
$grid->category_id->display(function ($categoryId) use($categoryList){ |
|
|
|
return isset($categoryList[$categoryId]) ? $categoryList[$categoryId] : ''; |
|
|
|
}); |
|
|
|
$grid->category_id->select($categoryList); |
|
|
|
// $grid->category_id->display(function ($categoryId) use($categoryList){
|
|
|
|
// return isset($categoryList[$categoryId]) ? $categoryList[$categoryId] : '';
|
|
|
|
// });
|
|
|
|
$grid->goods_category_id->display(function ($goodsCategoryId) use($goodsCategoryList){ |
|
|
|
return isset($goodsCategoryList[$goodsCategoryId]) ? $goodsCategoryList[$goodsCategoryId] : ''; |
|
|
|
}); |
|
|
|
|