<template>
 
  <div class="nitrogen-box">
    <customHeader>智能注氮管控系统</customHeader>
    <!-- <nitrogenHome v-if="btnActive == 'nitrogen_page'" /> -->
    <nitrogenHome1 v-if="btnActive == 'nitrogen_page1'" />
    <nitrogenEcharts v-if="btnActive == 'yfj_monitor_echarts'"/>
    <nitrogenHistory v-if="btnActive == 'yfj_history'"/>
    <nitrogenHandleHistory v-if="btnActive == 'yfj_handler_history'"/>
    <nitrogenAlarmHistory v-if="btnActive == 'yfj_faultRecord'"/>
    <BottomMenu :nav-list="navList" @change="changeActive"/>
  </div>
  
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import customHeader from '/@/views/vent/comment/components/customHeader.vue';
// import nitrogenHome from './components/nitrogenHome.vue'
import nitrogenHome1 from './components/nitrogenHome1.vue'
import nitrogenEcharts from './components/nitrogenEcharts.vue'
import nitrogenHistory from './components/nitrogenHistory.vue'
import nitrogenHandleHistory from './components/nitrogenHandleHistory.vue'
import nitrogenAlarmHistory from './components/nitrogenAlarmHistory.vue'
import BottomMenu from '/@/views/vent/comment/components/bottomMenu.vue';
const loading = ref(true)
const btnActive = ref('nitrogen_page1')
const navList = ref([
  {
    title: '监控界面',
    pathName: 'nitrogen_page1',
    isHover: true
  },
  {
    title: '历史监测记录',
    pathName: 'yfj_history',
    isHover: false
  },
  {
    title: '操作历史记录',
    pathName: 'yfj_handler_history',
    isHover: false
  },
  {
    title: '故障诊断历史记录',
    pathName: 'yfj_faultRecord',
    isHover: false
  }
])


function changeActive(activeValue) {
  btnActive.value = activeValue
}

</script>

<style lang="less" scoped>
@ventSpace: zxm;
.nitrogen-home-header {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    background: url('/@/assets/images/vent/new-home/header-bg.png') no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;

    .header-icon {
      margin-top: 45px;
    }

    .header-text {
      position: fixed;
      top: 18px;
      color: #fff;
      font-size: 24px;
    }
  }
.nitrogen-box{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  .bottom-btn-group {
    display: flex;
    position: fixed;
    width: calc(100% - 400px);
    height: 100px;
    bottom: 10px;
    align-items: center;
    justify-content: center;
    z-index: 2;
    .btn-item {
      width: 200px;
      height: 60px;
      margin: 10px;
      color: #fff;
      cursor: pointer;
      pointer-events: auto;
    }
  }
  &:deep(.win) {
    margin: 0 !important;
  }
}


</style>
