请问要怎么做可以实现SelectTable(联动资料表)
小弟刚接触 dcat-admin,使用代码生成器产生二个数据表
表名 1:itemmanage1
栏位名为 id、Item_Name
模型 App\Models\Itemmanage
控制器 App\Admin\Controllers\ItemmanageController
数据仓库
App\Admin\Repositories\Itemmanage
表名 2 为 videoupload
栏位名 id、Item_Name、Video_Name
模型 App\Models\Videoupload
控制器 App\Admin\Controllers\VideouploadController
数据仓库
App\Admin\Repositories\Videoupload
我想在 Videoupload 表单中的 Item_Name 改成 selectTable 的下拉型态,点击 Item_Name 时,能跳出 itemmanage 的 Table,选取项目能填入 itemmanage 的 ID,请问有没有哪个前辈能指导我,因为找了很多资料,但一直搞不出来。
推荐文章: