Browse Source

路政权限管理

dev
dengyinhuan 1 year ago
parent
commit
042058f6ae
  1. 2
      scripts/1.3.1/schema/3.insert_resource.sql
  2. 1
      web/client/src/sections/fillion/nav-item.js

2
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';
DELETE FROM resource WHERE code = 'OVERLOADMANAGE'

1
web/client/src/sections/fillion/nav-item.js

@ -34,6 +34,7 @@ export function getNavItem(user, dispatch) {
{/* <Menu.Item key="filliontask">
<Link to="/fillion/task">任务管理</Link>
</Menu.Item> */}
{user?.username == 'SuperAdmin' || user?.userResources?.some(i => i.resourceId === 'LUZHENG') ?
<Menu.Item key="luzheng">
<Link to="/fillion/luzheng">路政管理</Link>

Loading…
Cancel
Save