From f489bd6e878ad8e8237135daeac81c2af811c4bd Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 4 Aug 2023 16:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E6=94=BF=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/1.3.1/schema/3.insert_resource.sql | 3 +++ web/client/src/sections/fillion/nav-item.js | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 scripts/1.3.1/schema/3.insert_resource.sql diff --git a/scripts/1.3.1/schema/3.insert_resource.sql b/scripts/1.3.1/schema/3.insert_resource.sql new file mode 100644 index 00000000..0df80bf9 --- /dev/null +++ b/scripts/1.3.1/schema/3.insert_resource.sql @@ -0,0 +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 diff --git a/web/client/src/sections/fillion/nav-item.js b/web/client/src/sections/fillion/nav-item.js index 8ac54677..deb62352 100644 --- a/web/client/src/sections/fillion/nav-item.js +++ b/web/client/src/sections/fillion/nav-item.js @@ -20,20 +20,21 @@ export function getNavItem(user, dispatch) { i.resourceId === 'ASSESSMANAGE' || i.resourceId === 'VIDEOCENTER' || i.resourceId === 'BUILDINGPROJECT' || - i.resourceId === 'MAINTENANCESPOTCHECK' + i.resourceId === 'MAINTENANCESPOTCHECK' || + i.resourceId === 'LUZHENG' ) return ( user?.username == 'SuperAdmin' || isshow ? } title={'数据管理'}> - {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? + {/* {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? 治超管理 - : ''} + : ''} */} {/* 任务管理 */} - {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'OVERLOADMANAGE') ? + {user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'LUZHENG') ? 路政管理 : ''}