4
0
Fork 0
panliang 2022-10-08 13:59:25 +08:00
parent c26a77ef5d
commit 7e0c93cda1
1 changed files with 1 additions and 3 deletions

View File

@ -128,9 +128,7 @@ class GoodsController extends AdminController
$grid->column('brand.name');
$grid->column('type.name')->label();
$grid->column('name')->display(function () {
return ($this->cover_image ? '<img src="' . $this->cover_image . '" width="60" class="img-thumbnail"/>&nbsp;' : '') . '<a href="' . admin_url(
'goods/' . $this->id
) . '">' . $this->name . '</a>';
return ($this->cover_image ? '<img src="' . $this->cover_image . '" width="60" class="img-thumbnail"/>&nbsp;' : '') . '<a href="' . admin_url('goods/' . $this->id) . '">' . $this->name . '</a>';
});
$grid->column('price');
$grid->column('stock')