Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xutl committed Apr 5, 2022
1 parent a7e7e97 commit 0c4ad7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Admin/Controllers/PushController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ protected function grid()
{
return Grid::make(new BaiduPush(), function (Grid $grid) {
$grid->filter(function (Grid\Filter $filter) {
$filter->equal('id');
$filter->equal('type', '推送类型')->select(BaiduPush::TYPES);
$filter->equal('status', '推送状态')->select(BaiduPush::STATUS_MAPS);
$filter->expand();
$filter->panel();
$filter->equal('id')->width(2);
$filter->equal('type', '推送类型')->select(BaiduPush::TYPES)->width(2);
$filter->equal('status', '推送状态')->select(BaiduPush::STATUS_MAPS)->width(2);
//顶部筛选
$filter->scope('failure', '推送失败')->where('status', BaiduPush::STATUS_FAILURE);
$filter->scope('pending', '待推送')->where('status', BaiduPush::STATUS_PENDING);
Expand Down

0 comments on commit 0c4ad7a

Please sign in to comment.