diff --git a/scripts/1.3.1/schema/3.insert_resource.sql b/scripts/1.3.1/schema/3.insert_resource.sql index 0df80bf9..a29e8582 100644 --- a/scripts/1.3.1/schema/3.insert_resource.sql +++ b/scripts/1.3.1/schema/3.insert_resource.sql @@ -1,3 +1,3 @@ INSERT INTO resource (code, name, parent_resource) VALUES ('LUZHENG', '路政管理', 'ALLSELECT'); DELETE FROM user_resource WHERE resource_id = 'OVERLOADMANAGE'; -DELETE FROM resource WHERE code = 'OVERLOADMANAGE'; \ No newline at end of file +DELETE FROM resource WHERE code = 'OVERLOADMANAGE'; \ No newline at end of file diff --git a/web/client/src/sections/fillion/nav-item.js b/web/client/src/sections/fillion/nav-item.js index deb62352..f8644ec0 100644 --- a/web/client/src/sections/fillion/nav-item.js +++ b/web/client/src/sections/fillion/nav-item.js @@ -34,6 +34,7 @@ export function getNavItem(user, dispatch) { {/* 任务管理 */} + {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'LUZHENG') ? 路政管理