<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>
        </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 Munitions from "./model/Munitions/index.vue";
import ScientificInvestment from "./model/ScientificInvestment/index.vue";
import MapTitle from "@/components/mapTitle/index.vue";
import Mock from "./mock";
import { mapState } from "vuex";
/**
 * 五大体系建设
 */

export default defineComponent({
  components: {
    Platform,
    Outline,
    Munitions,
    ScientificInvestment,
    MapTitle,
  },
  setup() {},
    computed: {
    ...mapState({
      curDataType: (state) => state.curDataType,
    }),
    industryCardItems() {
      return Mock[this.curDataType].industryCardItems;
    },
     city() {
      return Mock[this.curDataType].city;
    },
    },
  data() {
    return {
      iswidth: 72,
     
    };
  },
});
</script>
<style lang="scss" scoped>
::v-deep .Progress .el-progress__text {
  position: relative;
  top: -20px;
  left: 65px;
  font-size: 18px;
  color: #4198ff;
}
::v-deep .Progress .el-progress__text span {
  font-size: 20px
}
.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 {
    margin: 15px 0;
    padding: 8px 15px;
    font-size: 14px;
    color: rgba(65, 152, 255, 1);
    .xbox-tit {
      margin-bottom: 8px;
    }
  }
  .xbox-content {
    height: 150px;
    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;
      }
      
    }
  }
  .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>
