home.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. const navButtons = [
  2. {
  3. name: '工单管理',
  4. img: '/static/images/home/order.png',
  5. url: '/pages/check-order/check-order-manage',
  6. badge: false,
  7. value: 0,
  8. },
  9. {
  10. name: '巡检管理',
  11. img: '/static/images/home/inspection.png',
  12. url: '/pages/equipment-inspection/inspection-manage',
  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. name: '报表',
  46. img: '/static/images/home/contact.png',
  47. url: '/pages/serviceperson/servicepersonmanage?add=0',
  48. badge: false,
  49. value: 0,
  50. },
  51. {
  52. name: 'IOT整合',
  53. img: '/static/images/home/contact.png',
  54. url: '/pages/serviceperson/servicepersonmanage?add=0',
  55. badge: false,
  56. value: 0,
  57. },
  58. {
  59. name: '企业微信',
  60. img: '/static/images/home/contact.png',
  61. url: '/pages/serviceperson/servicepersonmanage?add=0',
  62. badge: false,
  63. value: 0,
  64. },
  65. {
  66. name: '钉钉',
  67. img: '/static/images/home/contact.png',
  68. url: '/pages/serviceperson/servicepersonmanage?add=0',
  69. badge: false,
  70. value: 0,
  71. },
  72. {
  73. name: '飞书',
  74. img: '/static/images/home/contact.png',
  75. url: '/pages/serviceperson/servicepersonmanage?add=0',
  76. badge: false,
  77. value: 0,
  78. },
  79. {
  80. name: '短信',
  81. img: '/static/images/home/contact.png',
  82. url: '/pages/serviceperson/servicepersonmanage?add=0',
  83. badge: false,
  84. value: 0,
  85. },
  86. ]
  87. //获取系统管理员导航按钮
  88. const sysAdminNavButton = [true,false,false,false,true,false,true,true,true,true,true,true];
  89. //获取盟市管理员导航按钮
  90. const orgAdminNavButton = [true,true,false,false,true,false,true,true,true,true,true,true];
  91. //获取运维公司管理员导航按钮
  92. const companyAdminNavButton = [true,true,true,true,true,false,true,true,true,true,true,true];
  93. //获取运维公司技术员导航按钮
  94. const companyServicePersonNavButton = [true,false,false,false,false,false,true,true,true,true,true,true];
  95. //获取运应急人员导航按钮
  96. const yjServicePersonNavButton = [false,false,false,false,true,false,true,true,true,true,true,true];
  97. export default {
  98. navButtons,
  99. sysAdminNavButton,
  100. orgAdminNavButton,
  101. companyAdminNavButton,
  102. companyServicePersonNavButton,
  103. yjServicePersonNavButton
  104. }