<template>
  <div class="container">
    <div class="top">
      <Header></Header>
    </div>
    <div class="content">
      <div class="left">
        <div class="left-title">物资储备统计</div>
        <div class="left-card">
          <Wzcbqk msg="first"></Wzcbqk>
        </div>
        <div class="left-card">
          <Wzcbqk msg="second"></Wzcbqk>
        </div>
        <div class="left-card">
          <Wzcbqk msg="third"></Wzcbqk>
        </div>
      </div>
      <div class="center">
        <div class="title">
          <div class="title-item">
            <div class="title_icon1"></div>
            <p class="titlename">储备物资库总价值(亿元)</p>
            <p class="num">6,656</p>
          </div>
          <div class="title-item">
            <div class="title_icon2"></div>
            <p class="titlename">累计救援物资价值(亿元)</p>
            <p class="num">6,656</p>
          </div>
        </div>
        <div class="center_title">
          <Wzcb></Wzcb>
        </div>
        <div class="center_content"></div>
      </div>
      <div class="right">
        <div class="right-title">出入库记录</div>
        <div class="select">
          <el-select
            :teleported="false"
            popper-class="popperClass"
            class="select"
            size="small"
            placeholder="请选择"
            style="width: 150px; height: 21px"
            v-model="selectValue"
            @change="selectHandle"
          >
            <el-option value="0" label="全部" />
            <el-option value="2" label="出库记录" />
            <el-option value="1" label="入库记录" />
          </el-select>
        </div>
        <div class="right_crk">
          <el-scrollbar height="100%">
            <div class="right-card">
              <Crkjl ref="crkjl"></Crkjl>
            </div>
          </el-scrollbar>
        </div>
        <div class="right_shjl">
          <Shjl></Shjl>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import Header from "@/views/DataVisualization/home/components/header.vue";
import Wzcbqk from "@/views/DataVisualization/detailPage/components/wzcbqk.vue";
import Crkjl from "@/views/DataVisualization/detailPage/components/crkjl.vue";
import Wzcb from "@/views/DataVisualization/detailPage/components/wzcb.vue";
import Shjl from "@/views/DataVisualization/detailPage/components/shjl.vue";
import { reactive, toRefs, ref } from "vue";

const data = reactive({
  selectValue: "0"
});
let { selectValue } = toRefs(data);
let crkjl = ref();
const selectHandle = (val: any) => {
  if (crkjl.value) crkjl.value.selectHandleCh(val);
};
</script>
<style scoped>
.container {
  /* width: 1920px;
  height: 1080px; */
  width: 100%;
  height: 100%;
  background: url("@/assets/DataVisualization/bg.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
}
.container .top {
  width: 100%;
  height: 64px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: "黑体";
}
.container .content {
  flex: 1;
  width: 100%;
  padding: 0 30px 40px;
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
  justify-content: space-around;
}
.container .content .center {
  width: 800px;
  height: 100%;
}
.container .content .center .center_title {
  width: 100%;
  height: 25%;
}
.container .content .center .center_content {
  width: 96%;
  margin-left: 4%;
  height: 55%;
  /* background: rgba(255, 192, 203, 0.168); */
  background: url("@/assets/img/bg.jpg") no-repeat;
  background-size: 100% 100%;
}
.container .content .center .title {
  width: 100%;
  height: 20%;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  margin-top: 20px;
  align-items: center;
}
.container .content .center .title .title-item {
  width: 48%;
  height: 136px;
  text-align: center;
  background: url("@/assets/emergencyImg/center_title_bg.png") no-repeat;
  background-size: 100% 100%;
  position: relative;
  /* text-align: center; */
}
.title-item .title_icon1 {
  width: 55px;
  height: 55px;
  background: url("@/assets/emergencyImg/center_top1.png") no-repeat;
  background-size: 100% 100%;
  position: absolute;
  top: 35px;
  left: 44px;
}
.title-item .title_icon2 {
  width: 57px;
  height: 49px;
  background: url("@/assets/emergencyImg/center_top2.png") no-repeat;
  background-size: 100% 100%;
  position: absolute;
  top: 35px;
  left: 44px;
}
.container .content .center .title .num {
  font-size: 36px;
  color: white;
  text-align: center;
  font-weight: 700;
  margin-top: -5px;
  margin-left: 60px;
  font-family: "楷书";
  background: linear-gradient(to bottom, #ffffff, rgb(29, 233, 234));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container .content .center .title .titlename {
  font-size: 16px;
  margin-left: 110px;
  margin-top: 30px;
  color: white;
  text-align: center;
  /* font-weight: 700; */
  font-family: "黑体";
  opacity: 0.9;
}
.container .content .left {
  width: 540px;
  /* height: calc(100vh - 20px); */
  height: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  background: url("@/assets/emergencyImg/crk_out_bg.png") no-repeat;
  background-size: 100% 100%;
}

.container .content .left .left-card {
  width: 100%;
  height: 32%;
  overflow: hidden;
}
.container .content .left .left-title {
  font-size: 24px;
  color: white;
  text-align: left;
  font-weight: 700;
  margin-left: 50px;
  margin-top: -10px;
  font-family: "黑体";
  background: linear-gradient(to bottom, #ffffff, rgb(0, 195, 255));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container .content .right {
  width: 540px;
  height: 100%;
  margin-top: 25px;
  position: relative;
}
.container .content .right .right_crk {
  width: 100%;
  height: 57%;
  box-sizing: border-box;
  padding-top: 5%;
  display: flex;
  flex-direction: column;
  background: url("@/assets/emergencyImg/crk_out_bg.png") no-repeat;
  background-size: 100% 100%;
  position: relative;
}
.container .content .right .right_shjl {
  width: 100%;
  height: 38%;
  box-sizing: border-box;
  margin-top: 5%;
}
.container .content .right .right-card {
  width: 100%;
  height: 100%;
}

.container .content .right .right-title {
  font-size: 24px;
  color: white;
  text-align: left;
  font-weight: 700;
  /* margin-left: 50px;
  margin-top: -10px; */
  font-family: "黑体";
  background: linear-gradient(to bottom, #ffffff, rgb(0, 195, 255));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  left: 10%;
  top: -2.5%;
}

.select {
  position: absolute;
  left: 67%;
  top: -2.5%;
}
:deep(.select .el-select-dropdown) {
  background: rgba(9, 30, 71, 0.853) !important;
}
.el-select-dropdown__item.selected,
.el-select-dropdown__item:hover,
.el-select-dropdown__item.hover {
  color: #fff;
  background: #40a0ff99;
}
:deep(.el-popper.is-light) {
  background: #307cbf;
  border: 1px solid #273f70;
}

:deep(.el-select-dropdown__item) {
  background: transparent;
  border: none;
  color: #fff;
}
:deep(.el-popper.is-light .el-popper__arrow::before) {
  border: 1px solid #4778d9;
  background: #4778d9;
  right: 0;
}
:deep(.el-select__wrapper) {
  background: transparent !important;
  border: rgba(255, 255, 255, 0.2) 1px solid !important;
  box-shadow: none;
  color: #ffffff;
}
:deep(.el-select__placeholder) {
  color: #ffffffd7;
}
:deep(.el-select-dropdown__item.is-selected) {
  color: var(--el-color-primary);
  /* background: #40a0ff99; */
}
</style>
