<template>
  <basic-container>
    <div class="app-container">
      <div class="query-box" ref="queryBox">
        <div class="btn-box">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="告警管理" name="1"></el-tab-pane>
            <el-tab-pane label="关闭电站" name="2"></el-tab-pane>
          </el-tabs>
        </div>
      </div>
      <!--未关闭-->
      <alarmInfoUnclose v-if="activeName == '1'" v-loading="loading" />
      <!--已关闭-->
      <alarmInfoClosed v-if="activeName == '2'" v-loading="loading" :switchalarm="switchalarm" />
    </div>
  </basic-container>
</template>

<script>
import alarmInfoClosed from '@/views/nh/alarmInfoClosed.vue'
import alarmInfoUnclose from '@/views/nh/alarmInfoUnclose.vue'

export default {
  name: "AlarmInfo",
  components: { alarmInfoClosed, alarmInfoUnclose },
  data() {
    return {
      activeName: '1',
      loading: false
    };
  },
  created() {
    
  },
  methods: {
    switchalarm(){
      console.log("switchTab:")
      this.activeName = "1";
    }
  }
}
</script>
