ActionLog::class, 'scenario' => 'default', 'partialMatchAttributes' => ['behavior', 'method', 'url', 'remark'], // 模糊查询 'defaultOrder' => [ 'id' => SORT_DESC, ], 'pageSize' => $this->pageSize, ]); $dataProvider = $searchModel ->search(Yii::$app->request->queryParams); $dataProvider->query ->andWhere(['is_addon' => StatusEnum::DISABLED]) ->andWhere(['>=', 'status', StatusEnum::DISABLED]) ->with(['member']); return $this->render($this->action->id, [ 'dataProvider' => $dataProvider, 'searchModel' => $searchModel, ]); } /** * 行为日志详情 * * @param $id * @return string */ public function actionView($id) { return $this->renderAjax($this->action->id, [ 'model' => ActionLog::findOne($id), ]); } }