<!--
 * @Author: 纪泽龙 jizelong@qq.com
 * @Date: 2026-01-09 15:10:53
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @LastEditTime: 2026-01-15 14:39:47
 * @FilePath: /huaxindd-web/src/views/Ind2/components/Right.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->

<template>
  <div class="left">
    <div class="lb">
      <Title text="设备统计" />
      <div class="lba lbamt">
        <!-- <div class="box-a">阀门井设备统计</div> -->
        <div class="box-b">
          <div class="fa">
            <div class="faa">调压箱</div>
            <div class="facaaa"></div>
          </div>
          <div class="fb">
            <PressureBarChart :data="pressureData" />
          </div>
        </div>
      </div>

      <div class="lba">
        <!-- <div class="box-a">调压箱统计</div> -->
        <div class="box-b">
          <div class="fa">
            <div class="faa">阀门井</div>
            <div class="facbbb"></div>
          </div>
          <div class="fb">
            <PressureBarChart :data="pressureData" />
          </div>
        </div>
      </div>
    </div>
    <div class="lb2">
      <Title text="报警信息" />
      <div class="table">
        <AlarmScrollTableVue/>
      </div>
    </div>
  </div>
</template>

<script>
import Title from "@/views/bigWindow/PubCom/title.vue";
import PressureBarChart from "./PressureBarChart.vue";

import AlarmScrollTableVue from './AlarmScrollTable.vue';

export default {
  name: "",
  components: {
    Title,
    PressureBarChart,
    AlarmScrollTableVue
  },
  data() {
    return {
      pressureData: [
        { name: "次高压线", value: 120 },
        { name: "中压线", value: 98 },
        { name: "低压线", value: 86 },
        { name: "低压线", value: 50 },
      ],
    };
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.left {
  // width: 20%;
  width: 434px;

  position: absolute;
  top: 102px;
  bottom: 50px;
  // background: url("~@/assets/bigwindowImg/index/r.png") no-repeat center;
  // background-size: 100% 100%;
  // background: red;
  // border: 1px solid red;
  left: 10px;
  z-index: 9999;
}
.lbamt {
  margin-top: 20px;
}
.lba {
  height: 205px;
  margin-bottom: 30px;
  .box-a {
    width: 172px;
    height: 36px;
    background: url("~@/assets/bigwindowImg/indImg/boxabg.png") no-repeat;
    background-size: 100% 100%;
    text-align: center;
    line-height: 36px;
    color: #fff;
    margin-bottom: 12px;
  }
  .box-b {
    width: 100%;
    // height: 130px;
    height: 205px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    .fa {
      width: 155px;
      // height: 124px;
      height: 205px;

      color: #fff;
      text-align: center;
      padding-top: 15px;
      .faa {
        position: relative;
        text-align: center;
        font-size: 22px;
        top: 0px;
      }
      .fab {
        position: absolute;
        z-index: 99;
        font-size: 20px;
      }
      .facaaa {
        position: relative;
        top: -25px;
        width: 100%;
        height: 205px;
        background: url("~@/assets/bigwindowImg/ind3Img/ttt.png") no-repeat center center;
      }
      .facbbb {
        position: relative;
        top: -25px;
        width: 100%;
        height: 205px;

        background: url("~@/assets/bigwindowImg/ind3Img/bbb.png") no-repeat center center;
      }
    }
    .fb {
      flex: 1;
    }
  }
  
}
.lb2 {
    display: flex;
    flex-direction: column;
    height: 307px;;


    .table {
      margin-top:20px;
      flex: 1;
      width: 100%;
      // background: red;
      overflow: hidden;
    }
  }
</style>
