index.vue 2.6 KB

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