<template>
  <div >
    <Title class="title" title="系统通知">
      <template v-slot:title-slot>
      <div class="left"></div>
      <div class="right">
      <div class="btn yse-events"><div class="text" :key="btnIndex" :class="getActive(1)" @click="change(1)">巡园通知</div></div>
      <div class="btn yse-events"><div class="text" :key="btnIndex" :class="getActive(2)" @click="change(2)">异常通知</div></div>
      </div>
      </template>
    </Title>
  </div>
</template>


<script setup>
import Highcharts from 'highcharts/highstock';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsDrilldown from 'highcharts/modules/drilldown';
import Highcharts3D from 'highcharts/highcharts-3d';
import Highmaps from 'highcharts/modules/map';
import Title from "../../../components/title";
import {onMounted, ref} from "vue";

const btnIndex = ref(null);
function getActive(index){
  return btnIndex.value == index ? "active" : "";
}
function change(index) {
  btnIndex.value = index;
}


</script>

<style lang="scss" scoped>
.content-box{
  position: absolute;
  width: 100%;
  height: calc(100% - 48px);
}
.title{
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  .left{
    width: 30%;
    text-align: left;
    white-space: nowrap;
    height: 28px;
    font-size: 20px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #B4FFFB;
    line-height: 28px;
    margin-left: 45px;
  }
  .right{
    width: 70%;
    text-align: left;
    box-sizing: border-box;
    height: 20px;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    .text{
      text-align: center;
      width: 88px;
      height: 36px;
      line-height: 36px;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #B4FFFB;
    }
    .btn{
      cursor: pointer;
      background-image: url(@/assets/img/tabs_btn3.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(180,255,251,0.6);
      width: 88px;
      height: 36px;
      .active{
        width: 88px;
        height: 36px;
        background: rgba(3,44,57,0.8);
        box-shadow: inset 0px 0px 20px 4px rgba(0,255,240,0.5);
        border-radius: 0px 0px 0px 0px;
        border: 1px solid #51E9F0;
      }
    }

  }
}
.slot-right{
  width: 70%;
  text-align: left;
  box-sizing: border-box;
  height: 20px;
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 20px;
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-items: center;
  .text{
    text-align: center;
    width: 88px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #B4FFFB;
  }
  .btn{
    cursor: pointer;
    background-image: url(@/assets/img/tabs_btn3.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-right: 10px;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(180,255,251,0.6);
    width: 88px;
    height: 36px;
    .active{
      width: 88px;
      height: 36px;
      background: rgba(3,44,57,0.8);
      box-shadow: inset 0px 0px 20px 4px rgba(0,255,240,0.5);
      border-radius: 0px 0px 0px 0px;
      border: 1px solid #51E9F0;
    }
  }

}
</style>

