<template>
  <el-row class="footer-warpper" :gutter="16">
    <el-col class="map-left" :span="8">
      <div class="business-extend footer-item card-item">
        <Outline />
      </div>
    </el-col>

    <el-col class="map-right" :span="16">
      <div class="footer-item card-item">
        <Munitions />
      </div>
    </el-col>
  </el-row>

  <!-- foot -->
  <el-row class="map-warpper" :gutter="16">
    <el-col class="map-left" :span="8">
      <div class="footer-item card-item">
        <Platform />
      </div>
    </el-col>
    <el-col class="map-right" :span="16">
      <el-row :gutter="16">
        <el-col :span="12">
          <div class="economic-construct card-item">
            <ScientificInvestment />
          </div>
        </el-col>
        <el-col :span="12">
          <div class="card-item">
            <MapTitle text="工作运行与政策制度体系" />
            <div class="card-item-xbox" v-for="(citys,idx) in city" :key="idx">
              <div class="xbox-tit">{{citys.tit}}</div>
              <div class="xbox-content user_line">
                <div class="Progress">
                  <p>{{citys.municipal}}</p>
                  <el-progress type="circle" :percentage="citys.municipalnum" :width="iswidth"></el-progress>
                </div>
                <div class="Progress">
                  <p>{{citys.county}}</p>
                  <el-progress
                    type="circle"
                    :percentage="citys.countynum"
                    color="#634cf0"
                    :width="iswidth"
                  ></el-progress>
                </div>
              </div>
            </div>

            <!-- <div class="Coverage">
              <div class="Coverage_left user_line" >
                <div class="Coverage_text">{{ citys.tit }}</div>
                <div class="Progress">
                  <el-progress type="circle" :percentage="citys.num" :width="iswidth"></el-progress>
                </div>
              </div>
            </div>-->
            <!-- <Industrial
              echartsId="technologyInfo"
              echartsTitle="工作运行与政策制度体系"
              :cardItems="industryCardItems"
            />-->
          </div>
        </el-col>
      </el-row>
    </el-col>
  </el-row>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import Platform from "./model/Platform/index.vue";
import Outline from "./model/Outline/index.vue";
import Science from "./model/Science/index.vue";
import Munitions from "./model/Munitions/index.vue";
import ScientificInvestment from "./model/ScientificInvestment/index.vue";
import MapTitle from "@/components/mapTitle/index.vue";
// import Industrial from "./model/Industrial/index.vue";
/**
 * 五大体系建设
 */

export default defineComponent({
  components: {
    Platform,
    Outline,
    Science,
    Munitions,
    ScientificInvestment,
    // Industrial,
    MapTitle,
  },
  setup() {},
  data() {
    return {
      iswidth: 72,
      industryCardItems: [
        { label: "国家部委、军委机关批复立项项目", value: "1113", unit: "个" },
        {
          label: "省直部门新认定的领跑技术(产品)",
          value: "19",
          unit: "个",
        },
      ],
      city: [
        {
          tit: "编制JMRH发展“十四五”规划进展",
          municipal: "市级",
          county: "区县",
          municipalnum: 78,
          countynum: 76,
        },
        {
          tit: "今年以来制定涉及JMRH发展政策情况",
          municipal: "市级",
          county: "区县",
          municipalnum: 77,
          countynum: 75,
        },
      ],
    };
  },
});
</script>
<style lang="scss" scoped>
::v-deep .Progress .el-progress__text {
  position: relative;
  top: -20px;
  left: 65px;
  font-size: 18px;
  color: #4198ff;
}
.card-item {
  background: #fff;
  border-radius: 5px;
  padding: 15px 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 2px 2px 10px #eee;
  flex: 1;
  height: 100%;
  box-sizing: border-box;

  .card-item-xbox {
    // border: 1px solid;
    margin: 15px 0;
    padding: 8px 15px;
    font-size: 14px;
    color: rgba(65, 152, 255, 1);
    .xbox-tit {
      margin-bottom: 8px;
    }
  }
  .xbox-content {
    width: 546px;
    height: 150px;
    // padding: 0px 60px;
    box-sizing: border-box;
    background-color: #f8f9fb;
    border-radius: 4px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 4px;
    .Progress {
      p {
        color: #666666;
        position: relative;
        left: 80px;
        top: 20px;
        font-size: 14px;
        letter-spacing: 0.5em;
      }
    }
  }
  .user_line {
    &:last-of-type {
      position: relative;
      &::before {
        position: absolute;
        content: " ";
        top: 43px;
        left: 53%;
        height: 50%;
        width: 1px;
        border-right: 1px dashed rgba(23, 129, 223, 0.2);
      }
    }
  }
}

.map-warpper {
  box-sizing: border-box;
  .economic-construct {
    flex: 1;
  }
  .map-right {
    .card-item {
      flex: 1;
    }
  }
}
.footer-warpper {
  margin-bottom: 20px;
}
</style>
