在gridview中的columns添加代码

echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel, 'columns' => [   [     'attribute' => '审核状态 ',     'value' => function ($model) {       return $model->authName;     },     'filter' => Html::activeDropDownList($searchModel, 'is_auth', $searchModel->isauthList, ['prompt' => '全部', "class" => "form-control "]     )   ],
]]);

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2022-01-05
  • 2021-09-23
  • 2021-08-26
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案