<template>
  <el-row class="map-warpper" :gutter="16">
    <el-col class="map-left" :span="8">
      <div class="footer-item card-item"><TargetBar /></div>
    </el-col>
    <el-col :span="16">
      <el-row class="map-right card-item" >
        <el-col :span="12">
          <IncomExtendLine
            echartsId="incomExtend"
            echartsTitle="全省军民协同创新平台情况"
            echartsDesText="主营业务收入趋势"
            :cardItems="extendCardItems"
          />
        </el-col>
        <el-col :span="10" :offset="1"><IncomDistribution /></el-col>
      </el-row>
    </el-col>
  </el-row>

  <!-- foot -->
  <el-row class="footer-warpper" :gutter="16">
    <el-col class="map-right" :span="16">
      <div class="footer-item card-item">
        <BusinessIncome />
      </div>
    </el-col>

    <el-col class="map-left" :span="8">
      <div class="business-extend footer-item card-item">
        <IncomExtendLine
          echartsId="industryDistribute"
          echartsTitle="国防科技工业产值规模分布"
          echartsDesText="工业总产值趋势图"
          :cardItems="industryCardItems"
        />
      </div>
    </el-col>
  </el-row>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import TargetBar from "./model/TargetBar/index.vue";
import IncomExtendLine from "./model/IncomExtendLine/index.vue";
import IncomDistribution from "./model/IncomDistribution/index.vue";
import BusinessIncome from "./model/BusinessIncome/index.vue";

export default defineComponent({
  components: {
    TargetBar,
    IncomExtendLine,
    IncomDistribution,
    BusinessIncome,
  },
  setup() {},
  data() {
    return {
      industryCardItems: [
        { label: "国防科技工业产值总量", value: "1113.4" },
        {
          label: "国防科技工业产值总量增长率",
          value: "19",
        },
      ],
      extendCardItems: [
        { label: "参与军民融合产业互动的规模以上企业主营收入", value: "3545.5" },
        {
          label: "参与军民融合产业互动的规模以上企业主营收入增长率",
          value: "19",
        },
      ],
    };
  },
});
</script>
<style lang="scss" scoped>
.card-item {
  background: #fff;
  border-radius: 5px;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 2px 2px 10px #eee;
}

.map-warpper {
  box-sizing: border-box;
  .map-right{
    padding-bottom: 0;
  }
}
.footer-warpper {
  margin-top: 20px;
  .business-extend {
    height: 430px;
  }
}
</style>
