index.vue 2.6 KB

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