<template>
  <el-row class="mianBox-af">
    <el-row class="headerBox">
      <el-col class="title">
        <img src="../../../assets/image-af/title2.png" alt="" />
        设备告警情况
      </el-col>
    </el-row>
    <el-row class="contentBox">
        <div ref="echartD" class="echartD"></div>
    </el-row>
  </el-row>
</template>

<script>
import * as echarts from "echarts";
import echartsGet from "./echart";
export default {
  data() {
    return {
      isCheck: "info",
      option: null,
    };
  },
  mounted() {
    echarts.init(this.$refs.echartD).setOption(echartsGet(.4));
  },
  watch: {
    "$store.state.windowWidth"() {
      echarts.init(this.$refs.echartD).resize();
    },
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.mianBox-af {
  background: url("../../../assets/image-af/bg.png") no-repeat;
  background-size: 100% 100%;
  .contentBox{
    width: 100%;
    display: flex;
    padding: 0 20px;
    box-sizing: border-box;
    .echartD{
      width: 100%;
      height: calc(100% + 15px);
      transform: translateY(-15px); 
    }
  }
}
</style>