index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="nitrogen-box">
  3. <customHeader >智能压风管控系统</customHeader>
  4. <!-- 锦界 -->
  5. <nitrogenHome v-if="btnActive == 'nitrogen_page'" />
  6. <!-- 布尔台 -->
  7. <!-- <nitrogenHome1 v-if="btnActive == 'nitrogen_page'" /> -->
  8. <nitrogenEcharts v-if="btnActive == 'yfj_monitor_echarts'"/>
  9. <nitrogenHistory v-if="btnActive == 'yfj_history'"/>
  10. <nitrogenHandleHistory v-if="btnActive == 'yfj_handler_history'"/>
  11. <nitrogenAlarmHistory v-if="btnActive == 'yfj_faultRecord'"/>
  12. <BottomMenu :nav-list="navList" @change="changeActive"/>
  13. </div>
  14. </template>
  15. <script lang="ts" setup>
  16. import { ref } from 'vue'
  17. import nitrogenHome from './components/nitrogenHome.vue'
  18. import nitrogenHome1 from './components/nitrogenHome1.vue'
  19. import nitrogenEcharts from './components/nitrogenEcharts.vue'
  20. import nitrogenHistory from './components/nitrogenHistory.vue'
  21. import nitrogenHandleHistory from './components/nitrogenHandleHistory.vue'
  22. import nitrogenAlarmHistory from './components/nitrogenAlarmHistory.vue'
  23. import customHeader from '/@/views/vent/comment/components/customHeader.vue';
  24. import BottomMenu from '/@/views/vent/comment/components/bottomMenu.vue';
  25. const btnActive = ref('nitrogen_page')
  26. const navList = ref([
  27. {
  28. title: '监控界面',
  29. pathName: 'nitrogen_page',
  30. isHover: false
  31. },
  32. {
  33. title: '实时曲线',
  34. pathName: 'yfj_monitor_echarts',
  35. isHover: false
  36. },
  37. {
  38. title: '历史监测记录',
  39. pathName: 'yfj_history',
  40. isHover: false
  41. },
  42. {
  43. title: '操作历史记录',
  44. pathName: 'yfj_handler_history',
  45. isHover: false
  46. },
  47. {
  48. title: '故障诊断历史记录',
  49. pathName: 'yfj_faultRecord',
  50. isHover: false
  51. }
  52. ])
  53. function changeActive(activeValue) {
  54. btnActive.value = activeValue
  55. }
  56. </script>
  57. <style lang="less" scoped>
  58. @ventSpace: zxm;
  59. .nitrogen-home-header {
  60. width: 100%;
  61. height: 100px;
  62. position: fixed;
  63. top: 0;
  64. background: url('/@/assets/images/vent/new-home/header-bg.png') no-repeat;
  65. background-size: contain;
  66. display: flex;
  67. justify-content: center;
  68. .header-icon {
  69. margin-top: 45px;
  70. }
  71. .header-text {
  72. position: fixed;
  73. top: 18px;
  74. color: #fff;
  75. font-size: 24px;
  76. }
  77. }
  78. .nitrogen-box{
  79. width: 100%;
  80. height: 100%;
  81. display: flex;
  82. justify-content: center;
  83. .bottom-btn-group {
  84. display: flex;
  85. position: fixed;
  86. width: calc(100% - 400px);
  87. height: 100px;
  88. bottom: 10px;
  89. align-items: center;
  90. justify-content: center;
  91. z-index: 2;
  92. .btn-item {
  93. width: 200px;
  94. height: 60px;
  95. margin: 10px;
  96. color: #fff;
  97. cursor: pointer;
  98. pointer-events: auto;
  99. }
  100. }
  101. }
  102. </style>