[ 'class' => LoginBehavior::className(), ], ]); } //报告列表 public function actionIndex() { if (\Yii::$app->request->isAjax) { $form = new ReportListForm(); $form->attributes = \Yii::$app->request->get(); $data = $form->search(); return $this->responseHandler($data); } return $this->render('index',[]); } }