getAll(); $tableList = []; foreach ($list as $item) { $tableList[] = [ 'id' => $item['table_id'], 'url' => 'pages/plus/table/table?table_id=' . $item['table_id'], 'name' => $item['name'], 'type' => '表单' ]; } return $this->renderSuccess('', compact('tableList')); } /** * 获取自定义页面 */ public function getPageList() { $model = new PageModel; $list = $model->getLists(); return $this->renderSuccess('', compact('list')); } }