**在專案中刪除某個選單時,提示存在子選單(選單已分配),不允許刪除,如下:** !( 查了一下原始碼:
public ajaxresult remove
(@pathvariable
("menuid"
) long menuid)
if(menuservice.
selectcountrolemenubymenuid
(menuid)
>0)
return
toajax
(menuservice.
deletemenubyid
(menuid));
}
發現都是關聯到role,這個怎麼解決呢?
專案裡有個角色管理模組,把關聯要刪除選單的角色取消關聯選單,再次刪除就可以了。
角色管理在這:
若依修改頁面資料
如果使用的是 option的這種 含有columns 則使用formatter 進行修改 在頁面顯示的studentgender的那列 是 0 或 1 function removeurl prefix remove modalname 學生 columns table.init options 修...
若依框架問題總結
後端 1.注意配置中的mysql的密碼和資料庫是否正確 npm err exit status 1 npm err npm err failed at the ruoyi 3.3.0 dev script.npm err this is probably not a problem with npm...
若依的字典使用
單個值的回顯 利用thymeleaf框架th text 方法 雙引號中寫 dict.getlabel 傳入所要的引數即可取出對應的值。col sm 2 control label 回顯資料字典單個的值 label form control static th text div 迴圈下拉列表回顯多個值...