App.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <div id="app">
  3. <el-container style="width: 100%">
  4. <el-header>
  5. <el-menu
  6. :default-active="activeIndex"
  7. class="el-menu-demo"
  8. mode="horizontal"
  9. @select="handleSelect"
  10. background-color="#545c64"
  11. text-color="#fff"
  12. active-text-color="#ffd04b"
  13. router
  14. >
  15. <el-menu-item index="/">首页</el-menu-item>
  16. <el-submenu index="2">
  17. <template slot="title">实时监视</template>
  18. <el-menu-item index="/about">状态监视</el-menu-item>
  19. <el-submenu index="2-4">
  20. <template slot="title">矩阵监视</template>
  21. <el-menu-item index="2-4-1">选项1</el-menu-item>
  22. <el-menu-item index="2-4-2">选项2</el-menu-item>
  23. <el-menu-item index="2-4-3">选项3</el-menu-item>
  24. </el-submenu>
  25. </el-submenu>
  26. <el-submenu index="3">
  27. <template slot="title">性能分析</template>
  28. <el-menu-item index="/gradeEvaluation">等级评估</el-menu-item>
  29. </el-submenu>
  30. <el-submenu index="4">
  31. <template slot="title">对标管理</template>
  32. <el-submenu index="2-4">
  33. <template slot="title">风机绩效</template>
  34. <el-menu-item index="/performanceList_fan">风机绩效榜单</el-menu-item>
  35. </el-submenu>
  36. <el-submenu index="2-5">
  37. <template slot="title">损失对标</template>
  38. <el-menu-item index="/fiveLossRates">五项损失率</el-menu-item>
  39. </el-submenu>
  40. <el-submenu index="2-6">
  41. <template slot="title">场际对标</template>
  42. <el-menu-item index="/benchmark_Venue">场内对标</el-menu-item>
  43. <el-menu-item index="/benchmark_International">场际对标</el-menu-item>
  44. </el-submenu>
  45. <el-submenu index="2-7">
  46. <template slot="title">项目对标</template>
  47. <el-menu-item index="/benchmark_project">项目对标</el-menu-item>
  48. </el-submenu>
  49. </el-submenu>
  50. <el-submenu index="5">
  51. <template slot="title">健康管理</template>
  52. </el-submenu>
  53. <el-submenu index="6">
  54. <template slot="title">智能报警</template>
  55. </el-submenu>
  56. <el-submenu index="7">
  57. <template slot="title">安全管控</template>
  58. <el-menu-item index="7-1">人员矩阵</el-menu-item>
  59. <el-menu-item index="7-2">全局监视</el-menu-item>
  60. <el-menu-item index="/point">point</el-menu-item>
  61. <el-menu-item index="/FanStatusQueryExport">风机状态查询导出</el-menu-item>
  62. </el-submenu>
  63. <el-submenu index="8">
  64. <template slot="title">报表管理</template>
  65. </el-submenu>
  66. </el-menu>
  67. </el-header>
  68. <el-main>
  69. <router-view></router-view>
  70. </el-main>
  71. <el-footer>GYEE </el-footer>
  72. </el-container>
  73. </div>
  74. </template>
  75. <script>
  76. import { datainit } from "../public/websocket";
  77. export default {
  78. data() {
  79. return {
  80. activeIndex: "/index",
  81. };
  82. },
  83. created() {
  84. // datainit();
  85. },
  86. methods: {
  87. handleSelect(key, keyPath) {},
  88. },
  89. };
  90. </script>
  91. <style lang="scss" scoped>
  92. #app {
  93. width: 100%;
  94. height: 100%;
  95. }
  96. #mychart {
  97. height: 500px;
  98. width: 500px;
  99. }
  100. .el-header {
  101. position: sticky;
  102. top: 0;
  103. z-index: 999;
  104. }
  105. .el-footer {
  106. background-color: rgb(84, 92, 100);
  107. color: aliceblue;
  108. position: fixed;
  109. bottom: 0;
  110. width: 100%;
  111. z-index: 999;
  112. text-align: center;
  113. line-height: 60px;
  114. }
  115. </style>
  116. <style lang="scss">
  117. body,
  118. .el-header,
  119. .el-main,
  120. .el-footer {
  121. margin: 0 !important;
  122. padding: 0 !important;
  123. height: 100%;
  124. }
  125. ::-webkit-scrollbar {
  126. width: 6px;
  127. height: 6px;
  128. background-color: #f5f5f5;
  129. }
  130. /*定义滚动条轨道 内阴影+圆角*/
  131. ::-webkit-scrollbar-track {
  132. box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  133. border-radius: 10px;
  134. background-color: #f5f5f5;
  135. }
  136. /*定义滑块 内阴影+圆角*/
  137. ::-webkit-scrollbar-thumb {
  138. border-radius: 10px;
  139. box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  140. background-color: #555;
  141. }
  142. </style>