|
|
@ -2,60 +2,62 @@ import React from 'react'; |
|
|
|
import { IconCode } from '@douyinfe/semi-icons'; |
|
|
|
|
|
|
|
export function getNavItem (user, dispatch) { |
|
|
|
return ( |
|
|
|
[ |
|
|
|
{ |
|
|
|
itemKey: 'service', |
|
|
|
text: '服务', |
|
|
|
icon: <IconCode />, |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
itemKey: 'reportingServices', |
|
|
|
text: '报表服务', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/reportingServices/reportManagement', |
|
|
|
items: [{ |
|
|
|
itemKey: 'reportManagement', to: '/service/reportingServices/reportManagement', text: '报表管理' |
|
|
|
}] |
|
|
|
}, { |
|
|
|
itemKey: 'maintenancePlan', |
|
|
|
text: '维护计划', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/maintenancePlan/cyclePlan', |
|
|
|
items: [{ |
|
|
|
itemKey: 'cyclePlan', to: '/service/maintenancePlan/cyclePlan', text: '周期计划' |
|
|
|
}, { |
|
|
|
itemKey: 'temporaryResponse', to: '/service/maintenancePlan/temporaryResponse', text: '临时响应' |
|
|
|
}] |
|
|
|
}, { |
|
|
|
itemKey: 'carrierPigeon', |
|
|
|
text: '信鸽服务', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="xingefuwu"></iconpark-icon>, |
|
|
|
to: '/service/carrierPigeon/emPush', |
|
|
|
items: [{ |
|
|
|
itemKey: 'emPush', to: '/service/carrierPigeon/emPush', text: 'EM推送' |
|
|
|
},{ |
|
|
|
itemKey: 'appPush', to: '/service/carrierPigeon/appPush', text: '应用推送' |
|
|
|
}] |
|
|
|
},{ |
|
|
|
itemKey: 'preventiveMaintenance', |
|
|
|
text: '预防性维保', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/preventiveMaintenance/maintenanceModel', |
|
|
|
items: [{ |
|
|
|
itemKey: 'maintenanceModel', to: '/service/preventiveMaintenance/maintenanceModel', text: '维保模型' |
|
|
|
}] |
|
|
|
},{ |
|
|
|
itemKey: 'serviceRecord', |
|
|
|
text: '服务记录', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/serviceRecord/serviceRecord1', |
|
|
|
items: [{ |
|
|
|
itemKey: 'serviceRecord1', to: '/service/serviceRecord/serviceRecord1', text: '服务记录' |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
] |
|
|
|
); |
|
|
|
return ( |
|
|
|
[ |
|
|
|
{ |
|
|
|
itemKey: 'service', |
|
|
|
text: '服务', |
|
|
|
icon: <IconCode />, |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
itemKey: 'reportingServices', |
|
|
|
text: '报表服务', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/reportingServices/reportManagement', |
|
|
|
items: [{ |
|
|
|
itemKey: 'reportManagement', to: '/service/reportingServices/reportManagement', text: '报表管理' |
|
|
|
}] |
|
|
|
}, { |
|
|
|
itemKey: 'maintenancePlan', |
|
|
|
text: '维护计划', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/maintenancePlan/cyclePlan', |
|
|
|
items: [{ |
|
|
|
itemKey: 'cyclePlan', to: '/service/maintenancePlan/cyclePlan', text: '周期计划' |
|
|
|
}, { |
|
|
|
itemKey: 'temporaryResponse', to: '/service/maintenancePlan/temporaryResponse', text: '临时响应' |
|
|
|
}] |
|
|
|
}, { |
|
|
|
itemKey: 'carrierPigeon', |
|
|
|
text: '信鸽服务', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="xingefuwu"></iconpark-icon>, |
|
|
|
to: '/service/carrierPigeon/emPush', |
|
|
|
items: [{ |
|
|
|
itemKey: 'emPush', to: '/service/carrierPigeon/emPush', text: 'EM推送' |
|
|
|
}, { |
|
|
|
itemKey: 'appPush', to: '/service/carrierPigeon/appPush', text: '应用推送' |
|
|
|
}] |
|
|
|
}, |
|
|
|
// { |
|
|
|
// itemKey: 'preventiveMaintenance', |
|
|
|
// text: '预防性维保', |
|
|
|
// icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
// to: '/service/preventiveMaintenance/maintenanceModel', |
|
|
|
// items: [{ |
|
|
|
// itemKey: 'maintenanceModel', to: '/service/preventiveMaintenance/maintenanceModel', text: '维保模型' |
|
|
|
// }] |
|
|
|
// }, |
|
|
|
{ |
|
|
|
itemKey: 'serviceRecord', |
|
|
|
text: '服务记录', |
|
|
|
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>, |
|
|
|
to: '/service/serviceRecord/serviceRecord1', |
|
|
|
items: [{ |
|
|
|
itemKey: 'serviceRecord1', to: '/service/serviceRecord/serviceRecord1', text: '服务记录' |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
] |
|
|
|
); |
|
|
|
} |