From 042058f6ae4c02d9fe4b2f92ae63adf3866066b7 Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 4 Aug 2023 17:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E6=94=BF=E6=9D=83=E9=99=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/1.3.1/schema/3.insert_resource.sql | 2 +- web/client/src/sections/fillion/nav-item.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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') ? 路政管理