You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.9 KiB
49 lines
1.9 KiB
import React from 'react';
|
|
import { IconCode } from '@douyinfe/semi-icons';
|
|
|
|
export function getNavItem (user, dispatch) {
|
|
return (
|
|
[
|
|
{
|
|
itemKey: 'install',
|
|
text: '设置',
|
|
icon: <IconCode />,
|
|
items: [
|
|
{
|
|
itemKey: 'authentication',
|
|
text: '鉴权管理',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="jq"></iconpark-icon>,
|
|
to: '/install/authentication/roles',
|
|
items: [{
|
|
itemKey: 'roles', to: '/install/authentication/roles', text: '人员及角色'
|
|
}]
|
|
}, {
|
|
itemKey: 'mapping',
|
|
text: '关系映射',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="ys"></iconpark-icon>,
|
|
to: '/install/mapping/system',
|
|
items: [{
|
|
itemKey: 'system', to: '/install/mapping/system', text: '系统映射'
|
|
}]
|
|
}, {
|
|
itemKey: 'order ',
|
|
text: '工单管理',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
|
|
to: '/install/order/setup',
|
|
items: [{
|
|
itemKey: 'setup', to: '/install/order/setup', text: '工单设置'
|
|
}]
|
|
}, {
|
|
itemKey: 'relation',
|
|
text: '容差管理',
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
|
|
to: '/install/relation/set',
|
|
items: [{
|
|
itemKey: 'set', to: '/install/relation/set', text: '容差设置'
|
|
}]
|
|
},
|
|
]
|
|
},
|
|
]
|
|
);
|
|
}
|