update2022

This commit is contained in:
2022-05-08 17:00:49 +08:00
parent 769b276649
commit 0943735bf8
6 changed files with 25 additions and 13 deletions

View File

@@ -23,7 +23,12 @@ class ItemController extends Controller
protected function grid($vote)
{
$grid = new Grid(new Item);
$grid->model()->where('vote_id', $vote->id);
$grid->filter(function (Grid\Filter $v) {
$v->column(1 / 2, function (Grid\Filter $f) {
$f->like('name', '姓名');
});
});
$grid->model()->where('vote_id', $vote->id)->orderBy('sort');
$grid->column('cover')->image('', 80);
$grid->column('id', '#ID#');
$grid->column('name');