设置默认展开筛选
parent
f3ce94002c
commit
37400ced1f
|
|
@ -51,7 +51,6 @@ class TagController extends AdminController
|
|||
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
$filter->panel();
|
||||
$filter->expand(false);
|
||||
$filter->equal('type')->select([
|
||||
TagModel::TYPE_ORDER =>'订单',
|
||||
TagModel::TYPE_PACKAGE =>'货运',
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ class ProductSkuTable extends Grid
|
|||
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
$filter->panel();
|
||||
$filter->expand();
|
||||
$filter->equal('name')->width(3);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@ Grid::resolving(function (Grid $grid) {
|
|||
$grid->disableViewButton();
|
||||
$grid->disableEditButton();
|
||||
$grid->disableDeleteButton();
|
||||
$grid->filter(function (Grid\Filter $filter) {
|
||||
$filter->expand();
|
||||
});
|
||||
});
|
||||
|
||||
Form::resolving(function (Form $form) {
|
||||
|
|
|
|||
|
|
@ -67,12 +67,22 @@ class AdAddressSeeder extends Seeder
|
|||
],
|
||||
'vip_will_cheap_banner'=> [
|
||||
'name' => '会员就是省',
|
||||
'dimensions'=> '',
|
||||
'dimensions'=> '710*382',
|
||||
'is_show' => true,
|
||||
],
|
||||
'vip_award_bottom_banner'=> [
|
||||
'name' => '会员推广奖励底部广告位',
|
||||
'dimensions'=> '',
|
||||
'dimensions'=> '470*202',
|
||||
'is_show' => true,
|
||||
],
|
||||
'show_vip_banner'=> [
|
||||
'name' => '查看会员权益广告位',
|
||||
'dimensions'=> '710*382',
|
||||
'is_show' => true,
|
||||
],
|
||||
'become_vip_banner'=> [
|
||||
'name' => '成为会员广告位',
|
||||
'dimensions'=> '710*382',
|
||||
'is_show' => true,
|
||||
],
|
||||
] as $key => $values) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue