Browse Source

增加$grid->disableBatchActions();

dev
李可松 4 years ago
parent
commit
4bc17e44c6
  1. 1
      app/AdminAgent/Renderable/SelectGuide.php
  2. 1
      app/AdminAgent/Renderable/SelectUser.php

1
app/AdminAgent/Renderable/SelectGuide.php

@ -23,6 +23,7 @@ class SelectGuide extends LazyRenderable
return Grid::make(new Guide(), function (Grid $grid) {
$grid->disableActions();
$grid->disableBatchDelete();
$grid->disableBatchActions();
$grid->model()->where(['status' => UserStatus::NORMAL]);
$grid->quickSearch(['contact_phone', 'name'])->placeholder('搜索手机号、地接名称');

1
app/AdminAgent/Renderable/SelectUser.php

@ -22,6 +22,7 @@ class SelectUser extends LazyRenderable
return Grid::make(new User(), function (Grid $grid) {
$grid->disableActions();
$grid->disableBatchDelete();
$grid->disableBatchActions();
$grid->model()->where(['status' => UserStatus::NORMAL, 'agent_id' => Admin::user()->id]);
$grid->quickSearch(['mobile', 'nickname'])->placeholder('搜索手机号、用户昵称');

Loading…
Cancel
Save