index.vue 3.0 KB

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