index.vue 2.5 KB

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