<template>
  <d2-container class="page">
    <div class="home_top" style="display: flex; justify-content: space-between">
      <!-- 报警待处理 -->
      <div class="alarmTodo">
        <div class="alarmTodo_title">
          <img class="arrow" src="./image/xjt.png" />
          <span>报警待处理</span>
        </div>
        <div class="alarmTodo_table">
          <el-table
            :data="tableData"
            @row-click="jumpDetails"
            :row-class-name="tableRowClassName"
          >
            <el-table-column
              prop="cfmc"
              label="仓房名称"
              align="center"
              show-overflow-tooltip
            ></el-table-column>
            <el-table-column
              prop="bjsj"
              label="报警时间"
              align="center"
              show-overflow-tooltip
            ></el-table-column>
            <el-table-column
              prop="yclddsc"
              align="center"
              label="已处理等待时常"
              show-overflow-tooltip
            ></el-table-column>
            <el-table-column align="center" label="处理">
              <el-button
                class="czBut"
                type="button"
                size="small"
                icon="el-icon-edit"
                >反馈</el-button
              >
            </el-table-column>
          </el-table>
          <span class="seeMore">查看更多></span>
        </div>
        <div></div>
      </div>

      <!-- 库区图 -->
      <div class="kcImg">
        <div class="kc_left">
          <div class="ck_div">
            <!-- <div class="ckImg"> -->
            <div class="ckNumber">当天出库量（吨）</div>
            <div class="ckMiddle">
              <div class="bbb">
                <div class="aa">
                  <div
                    class="numberBac"
                    v-for="item in endVal.toString().split('')"
                    :key="index"
                  ></div>
                </div>
                <countTo
                class="hhh"
                  :startVal="startVal"
                  :endVal="endVal"
                  autoplay
                  :duration="3000"
                >
                </countTo>
              </div>
            </div>

            <div class="baifenNumber">
              较昨日增长
              <span style="color: #64d140">15%</span>
              <img src="./image/zezhang.png" alt="" />
            </div>
            <!-- </div> -->
          </div>
          <div class="rk_div">
            <div class="ckNumber">当天入库量（吨）</div>
            <div class="ckMiddle">
              <div class="numberBac"><span>7</span></div>
              <div class="numberBac"><span>7</span></div>
              <div class="numberBac"><span>7</span></div>
              <div class="numberBac"><span>7</span></div>
            </div>

            <div class="baifenNumber">
              较昨日降低
              <span style="color: #ee92a7">15%</span>
              <img src="./image/jiangdi.png" alt="" />
            </div>
          </div>
          <div class="cr_div">
            <!-- <div class="crImg"> -->
            <div class="cr_top">
              <span>总仓容</span>
              <div class="numberStyle">
                <span>7</span>
                <span>7</span>
                <span>7</span>
              </div>
              <span>吨</span>
            </div>
            <div class="cr_middle">
              <span>已用</span>
              <div class="numberStyle">
                <span>7</span>
                <span>7</span>
                <span>7</span>
              </div>
              <span>吨</span>
            </div>
            <div class="cr_bottom">
              <span>剩余可用</span>
              <div class="numberStyle">
                <span>7</span>
                <span>7</span>
                <span>7</span>
                <span>7</span>
              </div>
              <span>吨</span>
            </div>
            <!-- </div> -->
          </div>
        </div>
        <div class="kc_right">
          <div id="map">
            <img
              src="./image/kq.png"
              border="0"
              usemap="#planetmap"
              alt="Planets"
              class="imgStyle"
              style="width: 100%; height: 100%"
            />
          </div>
        </div>
      </div>
      <!-- 出入库数量 -->
      <div class="crkTrend">
        <div class="crkTrend_title">
          <img class="arrow" src="./image/xjt.png" />
          <span>出入库数量趋势</span>
        </div>
        <div class="crkTrend_date">
          <el-date-picker
            class="timeOption"
            v-model="time"
            type="monthrange"
            range-separator="-"
            start-placeholder="开始月份"
            end-placeholder="结束月份"
          >
          </el-date-picker>
        </div>
        <div
          class="myChart"
          id="myChart"
          :style="{ width: '100%', top: '25%', height: '75%' }"
        ></div>
      </div>
    </div>

    <div class="page-content-bottom">
      <span class="content-bottom-title">
        <img
          style="margin-right: 5px"
          class="arrow"
          src="./image/xjt.png"
        />近一周粮食数量变化</span
      >
      <div style="position: absolute; right: 7.3%; top: 20px; display: flex">
        <div>
          <el-button type="primary">今日</el-button>
          <el-button type="primary">本周</el-button>
          <el-button type="primary">本月</el-button>
        </div>
        <div style="margin-left: 10px">
          <el-date-picker
            v-model="timeValue"
            type="daterange"
            range-separator="-"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
          >
          </el-date-picker>
        </div>
        <div style="margin-left: 10px">
          <el-form :model="cfSelect" label-width="80px">
            <el-form-item label="仓房名称:">
              <el-select v-model="cfSelect.cfbh" placeholder="请选择仓房">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </el-form-item>
          </el-form>
        </div>
      </div>
      <div class="bottom_div">
        <div class="imgLeft_father">
          <div class="bac_div">
            <div style="font-size: 10px; margin-left: 20px">仓房名称:</div>
            <div style="text-align: center">1号仓</div>
          </div>
          <div class="bac_div">
            <div style="font-size: 10px; margin-left: 20px">粮食种类:</div>
            <div style="text-align: center">稻谷</div>
          </div>
          <div class="bac_div">
            <div style="font-size: 10px; margin-left: 15px">
              目前粮食数量(kg):
            </div>
            <div style="text-align: center; margin-bottom: 3px">100</div>
            <div style="font-size: 10px; text-align: center">
              同比昨天<span class="zcColor"></span
              ><img src="./image/zezhang.png" />
            </div>
          </div>
        </div>
        <div
          class="myChart2"
          id="myChart2"
          :style="{ width: '80%', height: '80%', top: '10%' }"
        ></div>
      </div>
    </div>
  </d2-container>
</template>

<script>
import $ from "jquery";
import fjmap from "./fjmap";
import countTo from "vue-count-to";
export default {
  components: { fjmap, countTo },
  data() {
    return {
      //热区初始化
      datas: {
        //从上往下

        maps: [
          //从上往下
          {
            index: 0,
            x: 90.34375,
            y: 7,
            path: "/warehouseTravel",
            params: 111,
          },
          {
            index: 1,
            x: 88.34375,
            y: 18,
            path: "/warehouseTravel",
            params: "02",
          },
          { index: 2, x: 82.34375, y: 32 },
          { index: 3, x: 81.34375, y: 48 },
          { index: 4, x: 76.34375, y: 63 },
          { index: 5, x: 72.34375, y: 77 },
          { index: 6, x: 68.34375, y: 92 },
          { index: 7, x: 65.34375, y: 107 },
          { index: 8, x: 62.34375, y: 122 },
          // 从左上到右下
          { index: 9, x: 31.34375, y: 144, w: 10, h: 10 },
          { index: 10, x: 26.34375, y: 154, w: 10, h: 10 },
          { index: 11, x: 40.34375, y: 156, w: 10, h: 10 },
          { index: 12, x: 55.34375, y: 159, w: 10, h: 10 },
          { index: 13, x: 57.34375, y: 149, w: 10, h: 10 },
        ],
        width: 206.491,
        height: 202.898,
      },
      cfSelect: {
        cfbh: "",
      },
      startVal: 0,
      endVal: 7777,

      options: [
        {
          value: "选项1",
          label: "1号仓",
        },
        {
          value: "选项2",
          label: "2号仓",
        },
      ],
      // ************
      timeValue: [],
      time: "",
      tableData: [
        {
          ckmc: "商丘中转库",
          cfmc: "3号仓",
          bjsj: "2020-10-21",
          yclddsc: "2小时",
        },
        {
          ckmc: "商丘中转库",
          cfmc: "5号仓",
          bjsj: "2020-10-22",
          yclddsc: "5小时",
        },
      ],
      tzggListData: [
        // { name: "哈哈哈" },
        //  { name: "哈哈哈" }
      ],
    };
  },
  created() {},
  mounted() {
    //出入库数量趋势

    this.drawLine();

    //粮食数量变化
    this.drawQuline();

    // 热区
    window.onresize = () => {
      this.scale();
    };
    setTimeout(() => {
      // this.getValue();
      this.addArea();
      this.scale();
    }, 500);
  },
  methods: {
    jumpDetails() {},
    tableRowClassName({ row, rowIndex }) {
      if ((rowIndex + 1) % 2 === 0) {
        return "one-row";
      } else {
        return "two-row";
      }
    },

    drawLine() {
      // 基于准备好的dom，初始化echarts实例
      let myChart = this.$echarts.init(document.getElementById("myChart"));
      // 绘制图表
      myChart.setOption({
        // title: { text: "在Vue中使用echarts" },
        tooltip: {
          backgroundColor: "rgba(21, 96, 176, 0.5)",
          borderColor: "#7dc9de",
          textStyle: {
            color: "dafaff",
          },
        },
        legend: {
          x: "center",
          y: "bottom",
          padding: [0, 0, 20, 0],
          data: ["出库", "入库"],
          textStyle: {
            color: "#dafaff",
          },
        },
        grid: {
          top: "40px",
          left: "5%",
          right: "4%",
          // bottom: "3%",
          containLabel: true,
        },
        xAxis: {
          type: "category",
          boundaryGap: false,
          splitLine: {
            show: true,
            lineStyle: {
              width: 1,
              type: "solid",
              color: "#0a4b88",
            },
          },
          axisLine: {
            lineStyle: {
              color: "#dafaff",
              width: 1,
              type: "solid",
            },
          },
          axisLabel: {
            interval: 0,
          },
          data: [
            "1月",
            "2月",
            "3月",
            "4月",
            "5月",
            "6月",
            "7月",
            "8月",
            "9月",
            "10月",
            "11月",
            "12月",
          ],
        },
        yAxis: {
          type: "value",
          splitLine: {
            show: true,
            lineStyle: {
              width: 1,
              type: "solid",
              color: "#0a4b88",
            },
          },
          axisLine: {
            lineStyle: {
              color: "#dafaff",
              width: 1,
              type: "solid",
            },
          },
        },
        series: [
          {
            name: "出库",
            type: "line",
            stack: "Total",
            smooth: true,
            data: [120, 132, 101, 134, 90, 230, 210, 120, 132, 101, 134, 90],
          },
          {
            name: "入库",
            type: "line",
            stack: "Total",
            smooth: true,
            data: [220, 182, 191, 234, 290, 330, 310, 120, 132, 101, 134, 90],
          },
        ],
      });

      window.addEventListener("resize", function () {
        myChart.resize();
      });
    },
    drawQuline() {
      // 基于准备好的dom，初始化echarts实例
      let myChart2 = this.$echarts.init(document.getElementById("myChart2"));
      // 绘制图表
      myChart2.setOption({
        // title: { text: "在Vue中使用echarts" },
        xAxis: [
          {
            splitLine: {
              show: true,
              lineStyle: {
                color: "#005292",
              },
            },
            axisLabel: {
              textStyle: {
                color: "#fff", //坐标值得具体的颜色
              },
            },
            axisLine: {
              show: true, // X轴 网格线 颜色类型的修改
              lineStyle: {
                type: "dashed",
                color: "#005292",
              },
            },

            data: [
              "10-23周日",
              "10-24周一",
              "10-25周二",
              "10-26周三",
              "10-27周四",
              "10-28周五",
              "10-29周六",
            ],
          },
        ],
        grid: {
          top: "7%",
          left: "7%",
          right: "3%",
          bottom: "15%",
        },
        yAxis: [
          {
            splitLine: {
              show: true,
              lineStyle: {
                color: "#005292",
              },
            },
            type: "value",
            axisLabel: {
              textStyle: {
                color: "#fff", //坐标值得具体的颜色
              },
            },
          },
          {
            type: "value",
            name: "Precipitation",

            position: "right",

            axisLine: {
              show: true,
              lineStyle: {
                type: "dashed",
                color: "#005292",
              },
            },
          },
        ],

        series: [
          {
            data: [10, 22, 28, 23, 19],
            type: "line",
            smooth: true,
            itemStyle: {
              normal: {
                color: "#fff", //折点颜色
                lineStyle: {
                  color: "#00d7db", //折线颜色
                },
              },
            },
            areaStyle: {
              color: this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
                {
                  offset: 0,
                  color: "#00d7db",
                },
                {
                  offset: 1,
                  color: "#002d56",
                },
              ]),
            },
          },
        ],
      });

      window.addEventListener("resize", function () {
        myChart2.resize();
      });
    },

    //热区
    addArea() {
      var htmlStr = "";
      for (let index = 0; index < this.datas.maps.length; index++) {
        const ele = this.datas.maps[index];
        var x = ele.x;
        var y = ele.y;
        var w = ele.w === undefined ? 12 : ele.w;
        var h = ele.h === undefined ? 12 : ele.h;
        var url = ele.url === undefined ? "-1" : ele.url;
        var path = ele.path === undefined ? "-1" : ele.path;
        var params = ele.params === undefined ? "-1" : ele.params;

        htmlStr += `<div w=${w} h=${h} x=${x}  y=${y} url=${url} path=${path}  params=${params} class="area" style=left:${
          x - w / 2
        }px;top:${y - h / 2}px;width:${ele.w}px;height:${ele.h}px></div>`;
      }

      $("#map").append(htmlStr);

      console.log($("#map"), "////");
      $(".area").click((e) => {
        console.log(".....");
        console.log(e.target, "e.target...");
        var url = e.target.getAttribute("url");
        var path = e.target.getAttribute("path");
        var params = e.target.getAttribute("params");

        console.log(url, path);
        if (url !== "-1") {
          console.log(",,,,");
          this.type = 1;
          // this.iframSrc = url
          window.location.href = url;
          // window.open(url);
        }
        // if(Vindex ==21&&url !== "-1"){
        //   this.type = 1
        //
        //    this.iframSrc = url
        //    $("#mobsf").css({ width: "100%", height: "100%" })
        // }

        if (path !== "-1") {
          // this.type = 3;
          console.log(params, "params....");
          this.$router.push({
            path: path,
            query: {
              houseId: params,
            },
          });
        }
        //库区监管
        // if (Vindex == 12) {
        //   this.type = 2
        // }
      });
    },
    scale() {
      var w = $("#map").width();
      var h = $("#map").height();
      console.log(w, h, ">>>>>>");
      $(".area").each((index, ele) => {
        var left = Number($(ele).attr("x"));
        var top = Number($(ele).attr("y"));
        var araw = Number($(ele).attr("w"));
        var arah = Number($(ele).attr("h"));
        // var index=Number($(ele).attr("index"))

        var sx = left / this.datas.width;
        var sy = top / this.datas.height;
        var sw = araw / this.datas.width;
        var sh = arah / this.datas.height;

        var x = w * sx;
        var y = h * sy;
        var w1 = w * sw;
        var h1 = h * sh;

        $(ele).css({ left: x - w1 / 2, top: y - h1 / 2 });

        //$(ele).offset({ left: x - w1 / 2, top: y - h1 / 2 + 70 });
        $(ele).css({ width: w1, height: h1 });
      });
    },

    getValue() {
      var data = {
        maps: [],
      };
      var index = 0;
      $("#map").mousedown(function (e) {
        data.width = $(".imgStyle").width();
        data.height = $(".imgStyle").height();
        var left = $(this).offset().left;
        var top = $(this).offset().top;
        console.log(e.pageX, e.pageY, left, top);

        var area = {
          index: index,
          x: Number(e.pageX) - left,
          y: Number(e.pageY) - top,
        };
        data.maps.push(area);
        index++;

        console.log(data, ".........////");

        console.log(JSON.stringify(data));
        this.datas = JSON.stringify(data);
        //$(".a").css({position: "absolute",'top': ,'left':offsetleft+50});
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.page {
  width: 100%;
  height: 100%;
  // min-height:600px;
  // overflow-y:auto ;

  color: #dafaff;
  background: url("./image/bg.png") center no-repeat;
  background-size: 100%;
  ::v-deep.el-button--small,
  .el-button--small.is-round {
    padding: 7px 15px;
  }
  ::v-deep.el-table::before {
    background-color: #042c59 !important;
  }
  ::v-deep.el-table td.el-table__cell,
  ::v-deep.el-table th.el-table__cell.is-leaf {
    border: 0px !important;
    padding: 5px 0px;
  }
  ::v-deep.el-table th.el-table__cell {
    background-color: #1460b0;
  }
  ::v-deep.el-table--enable-row-hover
    .el-table__body
    tr:hover
    > td.el-table__cell {
    background-color: #1460b0;
  }
  ::v-deep.el-table thead {
    color: #dafaff;
  }
  ::v-deep.d2-container-full__body {
    background: none !important;
    min-height: 600px !important;
    overflow-y: auto !important;
  }
  ::v-deep.el-table .one-row {
    background-color: #042c59 !important;
    color: #dafaff;
  }
  ::v-deep.el-table .two-row {
    background-color: #063c67 !important;
    color: #f7feff;
  }
  ::v-deep.el-date-editor {
    background: #0e2a59;
  }
  // 下拉选样式
  ::v-deep.el-form-item__label {
    color: #fff;
  }

  ::v-deep.el-input__inner {
    background: #1a2f62;
  }
  .page-content-bottom {
    position: relative;
    margin-top: 20px;
    height: calc(40% - 20px);
    background: url("./image/lsslCopy.png") no-repeat;
    background-size: 100% 100%;
  }
  .content-bottom-title {
    position: absolute;
    left: 10px;
    top: 10px;
  }
  .right-content {
    height: 30%;
    min-height: 300px;
    margin-right: -20px;
    float: right;
  }
  .left-content {
    height: 30%;
    min-height: 400px;
    float: left;
  }
  .tzggList {
    margin: 10px 0;
    padding: 0;
  }
  .tzggList li {
    margin: 0 5px;
    padding-left: 20px;
    list-style: none;
    padding-right: 10px;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #1460b0;
  }
  .tzggList li:hover {
    background: #1460af;
    // border-bottom: 1px solid #1460b0;
    border-radius: 25px;
  }
  .tzggListLi {
    float: right;
  }
  // .myChart {
  //   margin: 0 auto;
  //   color: #f7feff;
  // }
  .mapPosition {
    width: 30%;
    margin: 0 auto;
    min-width: 400px;
    height: 92%;
    position: absolute;
    left: 36%;
    right: center;
  }
  .echarts-map {
    min-width: 30px;
    min-height: 30px;
    width: 100%;
    height: 100%;
  }
  .kck-content {
    font-size: 14px;
    width: 91%;
    height: 50px;
    margin: 5% 0 0 4%;
    float: left;
    background: url("./image/crbg.png") no-repeat;
    background-size: 100% 100%;
    background-position: center;
  }
  .kck-content-out {
    text-align: center;
    line-height: 47px;
  }
  .kck-content-in-2 {
    margin: 0 15px;
  }
  .kck-content-num1 {
    margin: 0 5px;
    font-size: 20px;
    font-weight: bold;
  }
  .kck-content-num2 {
    display: inline-block;
    width: 35px;
    height: 22px;
    line-height: 22px;
    background: url("./image/szkBlue.png") no-repeat;
    background-size: 100%;
    letter-spacing: 12px;
    padding-left: 6px;
  }
  .kck-content-num3 {
    display: inline-block;

    width: 35px;
    height: 22px;
    line-height: 22px;
    background: url("./image/szkBlue.png") no-repeat;
    background-size: 100% 100%;
    letter-spacing: 12px;
    padding-left: 6px;
  }
  .ckt-bg {
    position: relative;
    width: 190px;
    height: 100px;
    float: left;
    background: url("./image/ckl.png") no-repeat;
    background-size: 100% 100%;
  }
  .rkt-bg {
    width: 190px;
    height: 100px;
    float: right;
    background: url("./image/rkl.png") no-repeat;
    background-size: 100% 100%;
  }
  .czBut {
    color: #dafaff;
    background-color: #142f66;
    border: 1.5px solid #4a95be;
    border-radius: 7px;
  }
  .czBut:hover {
    color: #dafaff;
    background-color: #3d8ee9;
    border: 1.5px solid #4a95be;
    border-radius: 7px;
  }
  .ckmcImg {
    width: 17px;
    margin: 0px 10px 0 -5px;
  }
  .seeMore {
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    right: 0px;
    margin: 10px 20px;
    cursor: pointer;
  }
  .tzXyd {
    background: #dafaff;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 10px;
  }
  .ckt-szk-bg {
    position: absolute;
    width: 35px;
    height: 22px;
    left: 100px;
    top: 50px;
    background: url("./image/szkBlue.png") no-repeat;
    background-size: 100% 100%;
    letter-spacing: 12px;
    padding-left: 6px;
  }
  .rkt-szk-bg {
    position: absolute;
    width: 35px;
    height: 22px;
    right: 100px;
    top: 50px;
    background: url("./image/szkGreen.png") no-repeat;
    background-size: 100% 100%;
    letter-spacing: 12px;
    padding-left: 6px;
  }
  .rkt-bg-font {
    font-size: 14px;
    position: absolute;
    right: 70px;
    top: 23px;
  }
  .ckt-bg-font {
    font-size: 14px;
    position: absolute;
    left: 70px;
    top: 23px;
  }
  .ckt-bg-little {
    font-size: 12px;
    position: absolute;
    left: 60px;
    top: 79px;
  }
  .rkt-bg-little {
    font-size: 12px;
    position: absolute;
    right: 40px;
    top: 79px;
  }
  .zcColor {
    margin-right: 5px;
    color: #19d606;
  }
  .jdColor {
    margin-right: 5px;
    color: #ff8ca7;
  }
  .timeOption {
    position: absolute;
    width: 187px;
    right: 20px;
    height: 28px;
    background-color: #142f66;
    padding: 0;
    margin: -16px 0 0 0;
    border: 1.5px solid #4a95be;
  }
  ::v-deep.el-date-editor .el-range__icon {
    font-size: 12px;
    margin-left: 5px;
    color: #f7feff;
    float: left;
    line-height: 26px;
  }
  ::v-deep.el-range-editor .el-range-input {
    background: #142f66;
    font-size: 12px;
  }
  ::v-deep.el-date-editor .el-range-separator {
    padding: 0 5px;
    line-height: 25px;
    width: 5%;
    color: #f7feff;
  }
  .bottom_div {
    width: calc(100% - 20px);
    height: 75%;
    position: absolute;
    top: 50px;
    left: 20px;
    display: flex;
    justify-content: space-between;
    .imgLeft_father {
      width: 150px;

      background: url("./image/kuang-bg_2.png") no-repeat;
      background-size: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      .bac_div {
        height: 32%;
        margin-top: 15px;
      }
      .imgLeft {
        // display: inline-block;
        // width: 200px;
        // height: 220px;
      }
    }
    .myChart2 {
      position: absolute;
      left: 15%;
    }
  }
  ::v-deep.el-input__inner {
    border: 1px solid #338ab3;
  }

  // .btn-group {
  //   color: $color-text-placehoder;
  //   font-size: 12px;
  //   line-height: 12px;
  //   margin-top: 0px;
  //   margin-bottom: 20px;
  //   .btn-group__btn {
  //     color: $color-text-sub;
  //     &:hover {
  //       color: $color-text-main;
  //     }
  //     &.btn-group__btn--link {
  //       color: $color-primary;
  //     }
  //   }
  // }
}

.home_top {
  height: 60%;
  width: 100%;
  .alarmTodo,
  .crkTrend {
    height: 100%;
    width: 33%;
    background: url("./image/kuang-bg_1.png") no-repeat;
    background-size: 100% 100%;
    position: relative;
  }
  .kcImg {
    height: 100%;
    width: 33%;

    display: flex;
    box-sizing: border-box;

    .kc_left {
      width: 200px;
      // height: 70%;
      height: 100%;

      .ck_div,
      .rk_div,
      .cr_div {
        width: 100%;
        // height: 90px;
        height: 32%;
      }
      .ck_div {
        background: url("./image/ck_new.png") no-repeat;
        background-size: 100% 100%;
        position: relative;
        .ckNumber {
          position: absolute;
          // top: 20px;
          top: 28px;
          left: 80px;
          font-size: 14px;
        }
        .ckMiddle {
          display: flex;
          justify-content: center;
          width: calc(100% - 100px);
          position: absolute;
          left: 88px;
          // top: 42px;
          top: 58px;

          .bbb {
            position: relative;
          }

          .aa {
            display: flex;
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            justify-content: center;
          }
          .hhh{
            position:relative;
            letter-spacing: 5px;
          }

          .numberBac {
            padding: 8px 10px;
            background: url("./image/ckNumber.png") no-repeat;
            background-size: 100% 100%;
            background-position: center;
            
          }
        }

        .baifenNumber {
          position: absolute;
          // top: 69px;
          top: 100px;
          left: 58px;
          font-size: 14px;
        }
      }
      .rk_div {
        background: url("./image/rk_new.png") no-repeat;
        background-size: 100% 100%;
        position: relative;
        .ckNumber {
          position: absolute;
          top: 25px;
          left: 80px;
          font-size: 14px;
        }
        .ckMiddle {
          display: flex;
          justify-content: center;
          width: calc(100% - 100px);
          position: absolute;
          left: 88px;
          top: 55px;

          .numberBac {
            flex: 1;
            padding: 3px 5px;
            display: inline-block;
            background: url("./image/rkNumber.png") repeat;
            background-size: 100% 100%;
            background-position: center;
          }
        }

        .baifenNumber {
          position: absolute;
          top: 98px;
          left: 58px;
          font-size: 14px;
        }
      }
      .cr_div {
        background: url("./image/cr.png") no-repeat;
        background-size: 100% 100%;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        font-size: 14px;

        .cr_top,
        .cr_middle,
        .cr_bottom {
          width: 100%;
          height: 32%;
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          .numberStyle {
            margin: 0 5px;
            span {
              display: inline-block;
              padding: 3px 5px;
              background: url("./image/ckNumber.png") no-repeat;
              background-size: 100% 100%;
            }
          }
        }
      }
    }
    .kc_right {
      // width:60%;
      width: calc(100% - 200px);
    }
  }
  .crkTrend_title,
  .alarmTodo_title {
    position: absolute;
    left: 10px;
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 15px;
    .arrow {
      margin-right: 5px;
    }
  }
  .crkTrend_date {
    position: absolute;
    top: 45px;
    right: 0px;
  }
  .alarmTodo_table {
    width: 90%;
    height: 80%;
    position: absolute;
    left: 5%;
    top: 15%;
  }
  //  .numberBac {
  //           padding: 3px 5px;
  //           background: url("./image/ckNumber.png") no-repeat;
  //           background-size: 100% 100%;
  //           background-position: center;
  //         }
}
</style>

<style>
.area {
  position: absolute;

  /* background: rgba(107, 107, 106, 0.514); */

  border-radius: 50%;
  cursor: pointer;
  /* pointer-events: none; */
}
#map {
  height: 100%;
  position: relative;
  /* soverflow: hidden; */
}
</style>
