优化pd-dialog添加菜单icon

This commit is contained in:
吕金泽
2022-01-01 14:28:03 +08:00
parent 5d577a99a6
commit 7269b13382
60 changed files with 189 additions and 482 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"groupId" : "1952f25c81084e24b55b11385767dc38",
"name" : "登录",
"createTime" : null,
"updateTime" : 1635925201035,
"updateTime" : 1641016807364,
"lock" : "0",
"method" : "POST",
"path" : "/login",
File diff suppressed because one or more lines are too long
@@ -4,8 +4,8 @@
"script" : null,
"groupId" : "67b2ce258e24491194b74992958c74aa",
"name" : "获取菜单tree",
"createTime" : 1634724871168,
"updateTime" : 1634724871168,
"createTime" : null,
"updateTime" : 1641016870466,
"lock" : "0",
"method" : "GET",
"path" : "/tree",
@@ -94,7 +94,7 @@
}
================================
var toTree = (list,pid) => select t.*,toTree(list,t.id) children from list t where t.pid = pid
var list = toTree(db.select('select id,name,pid,is_show,url,sort,permission,desc_ribe from sys_menu where is_del = 0 order by sort'),'0')
var list = toTree(db.select('select id,name,pid,is_show,url,sort,permission,desc_ribe,icon from sys_menu where is_del = 0 order by sort'),'0')
return {
list: list,