model = new SystemLog(); } /** * @NodeAnotation(title="列表") */ public function index() { if ($this->request->isAjax()) { if (input('selectFields')) { return $this->selectList(); } [$page, $limit, $where, $excludeFields] = $this->buildTableParames(['month']); list($count, $list) = SystemLogLogic::getList($page, $limit, $where, $excludeFields, $this->sort); $data = [ 'code' => 0, 'msg' => '', 'count' => $count, 'data' => $list, ]; return json($data); } return $this->fetch(); } }