title = '行为日志'; $this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']]; ?>

title; ?>

$dataProvider, 'filterModel' => $searchModel, // 重新定义分页样式 'tableOptions' => ['class' => 'table table-hover'], 'columns' => [ 'id', MemberHelper::gridView($searchModel), [ 'attribute' => 'app_id', 'filter' => Html::activeDropDownList($searchModel, 'app_id', AppEnum::getMap(), [ 'prompt' => '全部', 'class' => 'form-control' ]), 'value' => function ($model) { return AppEnum::getValue($model->app_id); }, 'headerOptions' => ['class' => 'col-md-1'], ], 'url', 'behavior', 'remark', [ 'label' => '位置信息', 'value' => function ($model) { $str = []; $str[] = DebrisHelper::analysisIp($model->ip); $str[] = $model->ip; return implode('
', $str); }, 'format' => 'raw', ], [ 'attribute' => 'created_at', 'filter' => false, //不显示搜索框 'format' => ['date', 'php:Y-m-d H:i:s'], ], [ 'header' => "操作", 'class' => 'yii\grid\ActionColumn', 'template' => '{view}', 'buttons' => [ 'view' => function ($url, $model, $key) { return Html::linkButton(['view', 'id' => $model->id], '查看详情', [ 'data-toggle' => 'modal', 'data-target' => '#ajaxModalLg', ]); }, ], ], ], ]); ?>