fastadmin 多表关联查询

一键生成CRUD,生成的控制器的方法,继承基类,把基类的 index 方法复制到对应的控制器

在index方法加入 $this->relationSearch = true; 为开启关联查询,并关联对应的方法

在model 写入处理的方法

在生成的 js文件,展示名字

猜你喜欢

转载自www.cnblogs.com/songxuan/p/12120058.html