yoqw/web/cms/app/nav-items.js
2021-09-06 00:36:08 +08:00

194 lines
4.6 KiB
JavaScript

export default (function() {
return [{
text: '资源',
icon: 'fa-bars light-green',
perm: 'PERM_VIEW_MAIN_RESOURCE',
children: [{
perm: 'PERM_VIEW_AREA_CODE_LIST',
route: 'area-code.list',
icon: 'fa-angle-double-right',
text: '区号管理'
},
{
perm: 'PERM_VIEW_TELECOM_VENDOR_LIST',
route: 'telecom-vendor.list',
icon: 'fa-id-card',
text: '运营商管理'
},
{
perm: 'PERM_VIEW_GATEWAY_LIST',
route: 'gateway.list',
icon: 'fa-window-close-o',
text: '网关管理'
},
{
perm: 'PERM_VIEW_TRUNK_LIST',
route: 'trunk.list',
icon: 'fa-random',
text: '中继管理'
},
{
perm: 'PERM_VIEW_TRUNK_STRATEGY_LIST',
route: 'trunk-strategy.list',
icon: 'fa-retweet',
text: '中继策略管理'
},
// {
// perm: 'PERM_VIEW_TRUNK_ATTR_LIST',
// route: 'trunk-attr.list',
// icon: 'fa-book',
// text: '中继属性管理'
// },
{
perm: 'PERM_VIEW_IVR_MENU_LIST',
route: 'ivr-menu.list',
icon: 'fa-bullhorn',
text: 'IVR菜单管理'
},
{
perm: 'PERM_VIEW_SOUND_LIST',
route: 'sound.list',
icon: 'fa-file-sound-o',
text: '声音管理'
}
]
}, {
text: '坐席',
icon: 'fa-users light-red',
perm: 'PERM_VIEW_MAIN_AGENT',
children: [
{
perm: 'PERM_VIEW_AGENT_GROUP_LIST',
route: 'agent-group.list',
icon: 'fa-users',
text: '坐席组管理'
},
{
perm: 'PERM_VIEW_QUEUE_LIST',
route: 'queue.list',
icon: 'fa-tasks',
text: '队列管理'
},
{
perm: 'PERM_VIEW_AGENT_LIST',
route: 'agent.list',
icon: 'fa-user',
text: '坐席管理'
},
{
perm: 'PERM_VIEW_AGENT_STATUS_LIST',
route: 'agent-status.list',
icon: 'fa-comments',
text: '坐席状态管理'
},
{
perm: 'PERM_VIEW_AGENT_DAILY_IDLE_DETAIL_LIST',
route: 'agent-daily-idle-detail.list',
icon: 'fa-ship',
text: '坐席日空闲管理'
}
]
}, {
text: '话务',
icon: 'fa-phone-square',
perm: 'PERM_VIEW_MAIN_CALL',
children: [{
perm: 'PERM_VIEW_CAMPAIGN_LIST',
route: 'campaign.list',
icon: 'fa-fax',
text: '呼叫活动管理'
},
{
perm: 'PERM_VIEW_CALL_DETAIL_RECORD_LIST',
route: 'call-detail-record.list',
icon: 'fa fa-list',
text: '拨打详单'
},
{
perm: 'PERM_VIEW_CALL_DETAIL_RECORD_QUALITY_INSPECTION',
route: 'call-detail-record.quality-inspection',
icon: 'fa fa-calendar-check-o',
text: '话务质检'
},
{
perm: 'PERM_VIEW_CALL_SATISFACTION_LIST',
route: 'call-satisfaction.list',
icon: 'fa fa-pencil-square-o',
text: '通话满意度'
},
{
perm: 'PERM_VIEW_CALL_DETAIL_RECORD_ACCOUNT_REPORT',
route: 'call-detail-record.account-report',
icon: 'fa fa-database',
text: '账户报表'
},
{
perm: 'PERM_VIEW_PHONE_WHITELIST_LIST',
route: 'phone-whitelist.list',
icon: 'fa fa-list-ul',
text: '电话呼叫白名单'
},
{
perm: 'PERM_VIEW_PHONE_BLACKLIST_LIST',
route: 'phone-blacklist.list',
icon: 'fa fa-th-list',
text: '电话呼叫黑名单'
},
{
perm: 'PERM_VIEW_PHONE_GREYLIST_LIST',
route: 'phone-greylist.list',
icon: 'fa fa-list-alt',
text: '电话呼叫灰名单'
},
{
perm: 'PERM_VIEW_PHONE_ALIAS_LIST',
exactPerm: true,
route: 'phone-alias.list',
icon: 'fa fa-exchange',
text: '号码别名'
}
]
}, {
text: '公共',
icon: 'fa-cogs dark',
perm: 'PERM_VIEW_MAIN_UTIL',
children: [{
perm: 'PERM_VIEW_SEQUENCE_LIST',
route: 'sequence.list',
icon: 'fa-sort-numeric-asc',
text: '序号管理'
},
{
perm: 'PERM_VIEW_TAG_LIST',
route: 'tag.list',
icon: 'fa-tags',
text: '标签管理'
},
{
perm: 'PERM_VIEW_TENANT_LIST',
route: 'tenant.list',
icon: 'fa-cubes purple',
text: '租户管理'
},
{
perm: 'PERM_VIEW_AUTH_ROLE_LIST',
route: 'auth-role.list',
icon: 'fa-vcard',
text: '认证角色管理'
},
{
perm: 'PERM_VIEW_AUTH_PERMISSION_LIST',
route: 'auth-permission.list',
icon: 'fa-key',
text: '认证权限管理'
},
{
perm: 'PERM_VIEW_AUTH_USER_LIST',
route: 'auth-user.list',
icon: 'fa-address-book',
text: '认证用户管理'
},
]
}];
})();