ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
配合 DBuilder 的 tabullet 方法使用 ~~~ public function topicGroupList($project_id){ $_POST['project_id'] = $project_id; $list = DBuilder('TopicGroup') ->tabullet() // 允许快虚编辑 ->filter([['project_id']]) ->rememberUri() ->getLists(); return $this->TBuilder('tabullet') ->setRowList($list) // 设置表格数据 ->setColumns([ // 批量设置数据列 ['title.text', '组名'], ['sort.text', '排序'], ]) ->fetch(); } ~~~ ![](https://box.kancloud.cn/4b01570bc118766d43a3d931051cdf48_1477x288.png)