home.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. const navButtons = [
  2. {
  3. name: '运维工单',
  4. img: '/static/images/home/order.png',
  5. url: '/pages/check-order/checkorderlist',
  6. badge: false,
  7. value: 0,
  8. },
  9. {
  10. name: '设备巡检',
  11. img: '/static/images/home/inspection.png',
  12. url: '/pages/equipment-inspection/inspectionlist',
  13. badge: false,
  14. value: 0,
  15. },
  16. {
  17. name: '工单统计',
  18. img: '/static/images/home/order_statistics.png',
  19. url: '/pages/report-forms/checkorderreportcount',
  20. badge: false,
  21. value: 0,
  22. },
  23. {
  24. name: '巡检统计',
  25. img: '/static/images/home/inspection_statistics.png',
  26. url: '/pages/report-forms/inspectionreportcount',
  27. badge: false,
  28. value: 0,
  29. },
  30. {
  31. name: '人员管理',
  32. img: '/static/images/home/contact.png',
  33. url: '/pages/serviceperson/servicepersonmanage?add=1',
  34. badge: false,
  35. value: 0,
  36. },
  37. {
  38. name: '人员通讯表',
  39. img: '/static/images/home/contact.png',
  40. url: '/pages/serviceperson/servicepersonmanage?add=0',
  41. badge: false,
  42. value: 0,
  43. },
  44. ]
  45. //获取系统管理员导航按钮
  46. const sysAdminNavButton = [true,false,false,false,true,false];
  47. //获取盟市管理员导航按钮
  48. const orgAdminNavButton = [true,false,false,false,true,false];
  49. //获取运维公司管理员导航按钮
  50. const companyAdminNavButton = [true,true,true,true,true,false];
  51. //获取运维公司技术员导航按钮
  52. const companyServicePersonNavButton = [true,false,false,false,false,false];
  53. //获取运应急人员导航按钮
  54. const yjServicePersonNavButton = [false,false,false,false,true,false];
  55. export default {
  56. navButtons,
  57. sysAdminNavButton,
  58. orgAdminNavButton,
  59. companyAdminNavButton,
  60. companyServicePersonNavButton,
  61. yjServicePersonNavButton
  62. }