<template>
  <div class="module">
    <div class="displayFlex left_bg">
      <div class="flex1">
        <div class="yd_title left_1"></div>
        <div style="width: 100%; height:calc(100% - 46px);display: flex;flex-wrap:wrap;">
          <ePie1></ePie1>
          <ePie2></ePie2>
          <ePie3></ePie3>
          <ePie4></ePie4>
        </div>
      </div>
      <div class="flex1">
        <div class="yd_title left_2"></div>
        <div class="selectLint">
          <div class="selectBox">
            <el-select v-model="value" placeholder="Select" size="large">
              <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
            </el-select>
          </div>
          <div class="selectBox">
            <el-select v-model="value" placeholder="Select" size="large">
              <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
            </el-select>
          </div>
        </div>
        <ePieRose></ePieRose>
      </div>
    </div>
    <div class="displayFlex center_bg">
      <div class="flex1">
        <div class="yd_title center_1"></div>
        <eGraph></eGraph>
      </div>
    </div>
    <div class="displayFlex right_bg">
      <div class="flex1">
        <div class="yd_title right_1"></div>
        <div class="czr-sl">
          <div class="historyimg historyimg1">
            <span>覆盖医疗机构数量</span>
            <span>22</span>
          </div>
          <div class="historyimg historyimg2">
            <span>启用角色数量</span>
            <span>101</span>
          </div>
          <!-- <img src="@/assets/eduImg/jyImg14.png" alt="" />
          <img src="@/assets/eduImg/jyImg15.png" alt="" /> -->
        </div>
        <edCSR></edCSR>
      </div>
      <div class="flex11">
        <div class="earlyWarning">
          <div class="earlyWarning1">
            <div>
              <span class="green">16</span>
            </div>
            <img src="@/assets/eduImg/jyImg10.png" alt="" />
            <div class="historyimg historyimg1">
              <span>绿色预警</span>
            </div>
          </div>
          <div class="earlyWarning1">
            <div>
              <span class="yellow">239</span>
            </div>
            <img src="@/assets/eduImg/jyImg9.png" alt="" />
            <div class="historyimg historyimg2">
              <span>黄色预警</span>
            </div>
          </div>
          <div class="earlyWarning1">
            <div>
              <span class="red">139</span>
            </div>
            <img src="@/assets/eduImg/jyImg8.png" alt="" />
            <div class="historyimg historyimg3">
              <span>红色预警</span>
            </div>
          </div>
        </div>
      </div>
      <div class="flex1">
        <div style="display: flex; justify-content: center">
          <div class="czr-bj">
            <div class="czrBox">
              <div class="situation situation1"></div>
            </div>
            <div class="czrBox">
              <div class="situation situation2"></div>
            </div>
            <div class="czrBox">
              <div class="situation situation3"></div>
            </div>
          </div>
        </div>
        <!-- <eBubble></eBubble> -->
      </div>
    </div>
  </div>
</template>

<script setup>
import edCSR from "./echarts_education/edCSR.vue";
import ePie1 from "./echarts_education/pie1.vue";
import ePie2 from "./echarts_education/pie2.vue";
import ePie3 from "./echarts_education/pie3.vue";
import ePie4 from "./echarts_education/pie4.vue";
import ePieRose from "./echarts_education/pieRose.vue";
import { ref } from 'vue'

const value = ref('')
const options = [
  {
    value: 'Option1',
    label: 'Option1',
  },
  {
    value: 'Option2',
    label: 'Option2',
  },
  {
    value: 'Option3',
    label: 'Option3',
  },
  {
    value: 'Option4',
    label: 'Option4',
  },
  {
    value: 'Option5',
    label: 'Option5',
  },
]
</script>

<style lang="scss" scoped>
.displayFlex {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  // flex: 1;
  width: 30%;
}

.flex1 {
  flex: 1;
  // padding: 0 28px;
  box-sizing: border-box;
}

.module {
  display: flex;
  width: 100%;
  height: calc(100vh - 112px);
}

.left_bg {
  width: 642px;
  // height: 100%;
  box-sizing: border-box;
  padding-left: 50px;
  padding-right: 20px;
  margin-right: 28px;
  background-image: url(@/assets/images/left_bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.center_bg {
  width: 582px;
  box-sizing: border-box;
  padding-left: 10px;
  // margin-right: 28px;
  background-image: url(@/assets/images/center_bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.right_bg {
  width: 642px;
  box-sizing: border-box;
  padding-right: 50px;
  padding-left: 20px;
  margin-left: 28px;
  background-image: url(@/assets/images/right_bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.left_1 {
  background-image: url(@/assets/eduImg/title1.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.left_2 {
  background-image: url(@/assets/eduImg/title2.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.center_1 {
  background-image: url(@/assets/eduImg/title3.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.right_1 {
  background-image: url(@/assets/eduImg/title4.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.yd_title {
  // background-image: url(@/assets/img_04.png);
  // background-repeat: no-repeat;
  // background-size: 100% 100%;
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  position: relative;

  .text {
    font-size: 16px;
    font-family: SourceHanSansCN;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    left: 33px;
    top: 3px;
  }
}

.basicInformation {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-top: 22px;

  .basicInformation_item {
    flex: 0 0 50%;
    padding: 0 2px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;

    .icon {
      width: 79px;
      height: 47px;
    }

    .right {
      margin-left: 4px;

      .label {
        background-image: url(@/assets/img_11.png);
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: bottom;
        margin-bottom: 4px;

        span {
          font-size: 12px;
          font-weight: 400;
          color: #eff0f1;
          line-height: 19px;
          margin-left: 2px;
        }
      }

      p {
        font-size: 16px;
        font-weight: bold;
        color: #6acbff;
        line-height: 24px;
      }
    }
  }
}

.visitLog {
  .visitLog_item {
    display: flex;
    align-items: center;
    background-image: url(@/assets/img_12.png);
    background-size: 100% 100%;
    margin-top: 16px;
    padding: 15px 8px;
    box-sizing: border-box;

    img {
      display: inline-block;
      margin-right: 10px;
    }

    .visitLog_item_box {
      flex: auto;

      h4 {
        font-size: 18px;
        font-family: MicrosoftYaHei;
        font-weight: bold;
        color: #0096ff;
        margin-bottom: 2px;
      }

      p {
        font-size: 12px;
        font-family: SourceHanSansCN;
        font-weight: 400;
        color: #ffffff;
        margin-top: 6px;
      }
    }

    .check {
      font-size: 12px;
      font-family: SourceHanSansCN;
      font-weight: 400;
      color: #0096ff;
      line-height: 20px;
    }
  }
}

.history {
  padding-top: 12px;

  p {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    line-height: 28px;
    border-bottom: 13px solid rgba(57, 59, 109, 1);
  }
}

.concernLabel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 20px;

  span {
    text-align: center;
    background: rgba(0, 89, 130, 0.73);
    border-radius: 10px;
    width: 118px;
    height: 49px;
    line-height: 49px;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 10px;
  }
}

.property {
  display: flex;
  padding: 14px 0 10px;

  .property_box {
    background-image: url(@/assets/img_05.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 179px;
    height: 91px;
    margin: 0 12px;
    text-align: center;

    h5 {
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      margin: 9px 0 16px;
    }

    p {
      font-size: 21px;
      font-weight: bold;
      color: #48ece7;
    }
  }
}

.activity {
  h5 {
    font-size: 14px;
    font-weight: bold;
    color: rgba(0, 164, 250, 0.8);
    line-height: 47px;
    border-bottom: 2px solid rgba(0, 164, 250, 1);
    margin-bottom: 17px;
  }

  .activity_content {
    margin: 0 -6px 12px;
    display: flex;

    .activity_box {
      width: 50%;
      display: inline-block;
      margin: 0 6px;
      box-sizing: border-box;
      background-color: rgba(15, 28, 54, 1);
      padding: 12px 12px 19px;

      p {
        font-size: 14px;
        font-weight: 400;
        color: #ffffff;
        line-height: 27px;
        height: 100%;
      }
    }
  }
}

.monitor {
  .monitor_box {
    display: flex;
    padding: 8px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.67);

    img {
      width: 115px;
      height: 84px;
      margin-right: 21px;
    }

    .monitor_box_text {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      h4 {
        font-size: 14px;
        font-weight: 400;
        color: #ffffff;
        line-height: 20px;
      }

      p {
        font-size: 14px;
        font-weight: 400;
        color: #818181;
        line-height: 23px;
      }
    }
  }
}

.yd_title {
  // background-image: url(@/assets/img_04.png);
  // background-repeat: no-repeat;
  // background-size: 100% 100%;
  box-sizing: border-box;
  width: 94%;
  height: 36px;
  position: relative;

  .text {
    display: flex;
    position: absolute;
    font-size: 16px;
    font-family: SourceHanSansCN;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    right: 5px;
    top: 3px;
  }
}

.mechanism {
  background-image: url(@/assets/YLTitle/titleImg10.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.czr-sl {
  display: flex;
  .historyimg {
    width: 255px;
    height: 56px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-left: 70px;
    span {
      font-weight: 400;
      font-size: 16px;
      color: #ffffff;
      line-height: 22px;
      letter-spacing: 2px;
      text-align: left;
      font-style: normal;
      font-family: PingFangSC, PingFang SC;
      padding-right: 10px;
    }
  }
  .historyimg1 {
    background-image: url(@/assets/eduImg/jyImg14.png);
    margin-right: 10px;
  }
  .historyimg2 {
    background-image: url(@/assets/eduImg/jyImg15.png);
  }
}
.flex11 {
  padding: 12px 0;
}
.earlyWarning {
  height: calc(100% - 10px);

  display: flex;
  align-items: center;
  justify-content: space-around;
  .earlyWarning1 {
    font-size: 26px;
    color: #ffffff;
    line-height: 30px;
    letter-spacing: 1px;
    text-align: center;
    font-style: normal;
    font-family: PangMenZhengDao;
    display: flex;
    flex-direction: column;
    align-items: center;
    img {
      width: 136px;
      height: 100px;
    }
    .green {
      font-size: 26px;
      font-weight: bold;
      letter-spacing: 2px;
      text-align: center;
      font-style: normal;
      font-family: DINAlternate, DINAlternate;
      background-image: linear-gradient(180deg, #7be546 0%, #38ffb1 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .yellow {
      font-size: 26px;
      font-weight: bold;
      letter-spacing: 2px;
      text-align: center;
      font-style: normal;
      font-family: DINAlternate, DINAlternate;
      background-image: linear-gradient(180deg, #ee8404 0%, #efd404 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .red {
      font-size: 26px;
      font-weight: bold;
      letter-spacing: 2px;
      text-align: center;
      font-style: normal;
      font-family: DINAlternate, DINAlternate;
      background-image: linear-gradient(180deg, #ff3e00 0%, #ed5a2d 100%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .historyimg {
      width: 133px;
      height: 19px;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      margin-top: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      span {
        font-weight: 500;
        font-size: 14px;
        color: #ffffff;
        letter-spacing: 4px;
        font-style: normal;
        font-family: PingFangSC, PingFang SC;
      }
    }
    .historyimg1 {
      background-image: url(@/assets/eduImg/jyImg4.png);
    }
    .historyimg2 {
      background-image: url(@/assets/eduImg/jyImg6.png);
    }
    .historyimg3 {
      background-image: url(@/assets/eduImg/jyImg5.png);
    }
  }
}
.czr-bj {
  width: 529px;
  height: calc(100% - 26px);
  background: rgba(0, 103, 165, 0.18);
  box-shadow: inset 0px 0px 58px 0px rgba(37, 175, 252, 0.47);
  border-radius: 2px;
  padding: 20px 0 0 14px;
  // box-sizing: border-box;

  .czrBox {
    height: 8vh;
  }
  .situation {
    width: 495px;
    height: 26px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .situation1 {
    background-image: url(@/assets/eduImg/jyImg11.png);
  }
  .situation2 {
    background-image: url(@/assets/eduImg/jyImg12.png);
  }
  .situation3 {
    background-image: url(@/assets/eduImg/jyImg13.png);
  }
};
.selectLint {
  width: 100%;
  display: flex;
  margin: 30px 0 10px;
  justify-content: space-between;

  .selectBox {
    width: 48%;
    background-image: url(@/assets/eduImg/title3.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  }
}
</style>
<style lang="scss">
.selectBox {
  .el-select--large .el-select__wrapper {
    font-size: 18px !important;
  }
  .el-select__wrapper {
    background-color: rgba(255,255,255,0) !important;
    
  }
  .el-select__placeholder{
    color: #fff !important;
  }
  .el-select__caret{
    color: #fff !important;
    font-size: 18px !important;
  }
  .el-select-dropdown__item{
    color: #fff !important;
  }
  .el-select-dropdown__wrap{

  }
}
</style>
