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 loading = ref(true)
  25. const btnActive = ref('nitrogen_page')
  26. const navList = ref([
  27. {
  28. title: '监控界面',
  29. pathName: 'nitrogen_page',
  30. isHover: true
  31. },
  32. {
  33. title: '历史监测记录',
  34. pathName: 'yfj_history',
  35. isHover: false
  36. },
  37. {
  38. title: '操作历史记录',
  39. pathName: 'yfj_handler_history',
  40. isHover: false
  41. },
  42. {
  43. title: '故障诊断历史记录',
  44. pathName: 'yfj_faultRecord',
  45. isHover: false
  46. }
  47. ])
  48. function changeActive(activeValue) {
  49. btnActive.value = activeValue
  50. }
  51. </script>
  52. <style lang="less" scoped>
  53. @ventSpace: zxm;
  54. .nitrogen-home-header {
  55. width: 100%;
  56. height: 100px;
  57. position: fixed;
  58. top: 0;
  59. background: url('/@/assets/images/vent/new-home/header-bg.png') no-repeat;
  60. background-size: contain;
  61. display: flex;
  62. justify-content: center;
  63. .header-icon {
  64. margin-top: 45px;
  65. }
  66. .header-text {
  67. position: fixed;
  68. top: 18px;
  69. color: #fff;
  70. font-size: 24px;
  71. }
  72. }
  73. .nitrogen-box{
  74. width: 100%;
  75. height: 100%;
  76. display: flex;
  77. justify-content: center;
  78. .bottom-btn-group {
  79. display: flex;
  80. position: fixed;
  81. width: calc(100% - 400px);
  82. height: 100px;
  83. bottom: 10px;
  84. align-items: center;
  85. justify-content: center;
  86. z-index: 2;
  87. .btn-item {
  88. width: 200px;
  89. height: 60px;
  90. margin: 10px;
  91. color: #fff;
  92. cursor: pointer;
  93. pointer-events: auto;
  94. }
  95. }
  96. &:deep(.win) {
  97. margin: 0 !important;
  98. }
  99. }
  100. </style>