indexLayout.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <div :class="['home-wrapper']">
  3. <!-- <div class="maintitle">漯河管理系统</div>-->
  4. <el-container style="height: 100%;">
  5. <!-- default-active设置进入页面时默认打开的菜单条目路由(这里的/indexpage是首页菜单条目的路由);:router设置为真,打开路由;:collapse这里联合折叠图标实现菜单折叠与展开 -->
  6. <el-menu v-if="showMenu" default-active="/redirectMaintain" :router="true" background-color="#001529"
  7. text-color="#fff" style="overflow-y: scroll; width: 200px; border: none;">
  8. <!-- <div class="fold">-->
  9. <!--折叠菜单的图标 -->
  10. <!-- <i class="icon" :class="foldphoto"></i>-->
  11. <!-- </div>-->
  12. <div class="luohetitle">漯河管理系统</div>
  13. <el-submenu index="1" style="">
  14. <template slot="title">
  15. <!-- i标签的class值为element-UI官网icon图标值,可直接引用 -->
  16. <i class="el-icon-s-home icon"></i>
  17. <span>监管平台</span>
  18. </template>
  19. <!-- index为对应菜单条目的路由,在router文件夹的index.js中设置 -->
  20. <el-menu-item v-for="(item, index) in menu" :key="index" :index="item.url">{{item.name}}</el-menu-item>
  21. </el-submenu>
  22. </el-menu>
  23. <el-main class="main">
  24. <!--引入跳转路由-->
  25. <router-view></router-view>
  26. </el-main>
  27. </el-container>
  28. </div>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. showMenu: process.env.NODE_ENV === 'development',
  35. isCollapse: false,//默认为不折叠菜单
  36. foldphoto: "el-icon-s-unfold",//菜单展开图标
  37. menu: [
  38. {name: '静态资源', url: '/static_resource'},
  39. {name: '记录查询', url: '/record_query'},
  40. {name: '数据对接', url: '/data_docking'},
  41. {name: '停车运行监管', url: '/park_monitor'},
  42. {name: '停车行为监测', url: '/park_bahavior'},
  43. {name: '设备运行监测', url: '/equipment_running'},
  44. {name: '从业人员资质', url: '/employee_qualification'},
  45. {name: '客户投诉监管', url: '/customer_complaint'},
  46. {name: '收费价格监管', url: '/charge_price'},
  47. {name: '车主信用监管', url: '/car_owner_credit'},
  48. {name: '企业服务监管', url: '/enterprise_service'},
  49. {name: '泊位基础情况', url: '/berths_information'},
  50. {name: '泊位使用情况', url: '/berths_usage'},
  51. {name: '泊位营收情况', url: '/berths_revenue'},
  52. {name: '停车场情况', url: '/parking_lot_situation'},
  53. {name: '泊位运营分析', url: '/berth_peration_nalysis'},
  54. {name: '收费业务分析', url: '/charge_business_analysis'},
  55. {name: '接入数据分析', url: '/access_data_analysis'},
  56. {name: '道路(路内)泊位主题', url: '/berth_road'},
  57. {name: '经营性(路外)车场主题', url: '/berth_road_out'},
  58. {name: '停车收费取证主题', url: '/parking_fee'},
  59. {name: '车辆违规主题', url: '/vehicle_violations'},
  60. {name: '运营停车场主题', url: '/parking_operate'},
  61. {name: '区域停车主题', url: '/parking_area'},
  62. {name: '设备运营主题', url: '/service_operations'},
  63. {name: '停车饱和预警', url: '/saturation_warning'},
  64. {name: '车辆迁徒分析', url: '/track_map'},
  65. {name: '停车缺口分析', url: '/gap_analysis'},
  66. {name: '停车难易指数', url: '/park_easy'},
  67. {name: '全局停车诱导', url: '/park_guidance'},
  68. {name: '区域停车发展分析', url: '/park_development_analysis'},
  69. {name: '路内泊位设置推荐', url: '/berth_recommend'},
  70. {name: '停车盲点挖掘', url: '/blind_spot_digging'},
  71. {name: '其他分析', url: '/other_analyse'},
  72. {name: '服务发布功能', url: '/service_publish'},
  73. {name: '公告功能', url: '/announcement_function'},
  74. {name: '消息中心功能', url: '/message'},
  75. {name: '技术支持功能', url: '/support'},
  76. {name: '服务监控功能', url: '/service_monitor'},
  77. {name: '凭证管理功能', url: '/credential_management_function'},
  78. {name: '服务订阅功能', url: '/service_subscription_function'},
  79. {name: 'IP白名单功能', url: '/ip_white_list'},
  80. {name: '服务调用功能', url: '/service_call_function'},
  81. {name: '操作日志功能', url: '/operation_log'},
  82. {name: 'demo1', url: '/demo1'},
  83. {name: 'demo2', url: '/demo2'},
  84. {name: 'hot_map', url: '/hot_map'},
  85. {name: 'heat_map', url: '/heat_map'},
  86. {name: '业务概览', url: '/business_overview'},
  87. {name: '经营情况', url: '/business_conditions'},
  88. {name: '事件监测', url: '/event_monitoring'},
  89. {name: '资源接入', url: '/resource_access'},
  90. // 以下为运营管理平台
  91. {name: '停车场热力图', url: '/parking_heatmap'},
  92. {name: '停车场分析报表', url: '/parking_analysis_report'},
  93. {name: '停车时段分析', url: '/parking_period_analysis'},
  94. {name: '停车实况数据', url: '/parking_live'},
  95. {name: '泊位利用分析', url: '/berth_use'},
  96. {name: '停车总分析', url: '/parking_analysis'},
  97. {name: '停车时长分析', url: '/parking_time_analysis'},
  98. {name: '临时停车统计', url: '/temp_parking-statistics'},
  99. {name: '泊位周转分析 ', url: '/berth_turnover'},
  100. {name: '停车场泊位分析 ', url: '/parking_lot'},
  101. {name: '夜间停车统计 ', url: '/night_parking_statistics'},
  102. {name: '车辆类型 ', url: '/vehicle_type'},
  103. {name: '欠费总分析 ', url: '/arrears_total'},
  104. {name: '欠费历史分析 ', url: '/arrears_trend'},
  105. {name: '城市欠费分析 ', url: '/city_arrears'},
  106. {name: '欠费追缴分析 ', url: '/city_pay'},
  107. {name: '城市收入统计 ', url: '/city_contrast'},
  108. {name: '城市统计分析 ', url: '/urban_statisics'},
  109. {name: '客单价分析 ', url: '/customer_price_analysis'},
  110. {name: '设备运行统计 ', url: '/device_report'},
  111. {name: '停车分析 ', url: '/parking'},
  112. ]
  113. }
  114. },
  115. mounted() {
  116. },
  117. methods: {
  118. // isfold() {
  119. // //每次点击折叠图标值取反
  120. // this.isCollapse = !this.isCollapse
  121. // if (this.isCollapse) {
  122. // //折叠图标
  123. // this.foldphoto = "el-icon-s-fold"
  124. // } else {
  125. // //展开图标
  126. // this.foldphoto = "el-icon-s-unfold"
  127. // }
  128. // }
  129. }
  130. }
  131. </script>
  132. <style scoped>
  133. .home-wrapper {
  134. position: absolute;
  135. width: 100%;
  136. height: 100%;
  137. background-size: cover;
  138. box-sizing: border-box;
  139. }
  140. .maintitle {
  141. height: 6%;
  142. /* border: 1px solid green; */
  143. padding-left: 1.2rem;
  144. display: flex;
  145. align-items: center;
  146. font-size: 1.6rem;
  147. letter-spacing: 0.2rem;
  148. /* font-weight: bold; */
  149. background-color: #545c64;
  150. color: white;
  151. }
  152. .luohetitle {
  153. display: flex;
  154. justify-content: center;
  155. margin: 20px 0;
  156. color: white;
  157. font-weight: bold;
  158. font-size: 20px;
  159. }
  160. /* 图标样式 */
  161. .icon {
  162. color: white;
  163. }
  164. /* 折叠图标 */
  165. .fold {
  166. height: 3rem;
  167. /* border-bottom: 1px solid rgba(255, 255, 255, 0.3); */
  168. display: flex;
  169. align-items: center;
  170. justify-content: flex-end;
  171. padding-right: 0.3rem;
  172. margin-bottom: 0.6rem;
  173. background-color: rgba(0, 0, 0, 0.5);
  174. }
  175. .main {
  176. background-color: #0c0c0c;
  177. overflow-y: auto;
  178. overflow-x: hidden;
  179. }
  180. </style>