<template>
  <div class="TrafficFlow">
    <section class="foot">
      <el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs">
        <el-tab-pane label="公众服务统计分析" name="first">
          <div class="header-shot">
            <TopComponent />
          </div>
          <div class="content">
            <ChannelAnalytics class="content-l" />
            <EventTypeAnalysis class="content-l" />
            <AuditAnalytics class="content-l" />
            <PostTrendsDay class="content-l" style="margin-right: 0" />
          </div>
          <div class="content">
            <PostTrendsMonth class="content-mi" />
            <NucleusThrough class="content-mi" style="margin-right: 0" />
          </div>
        </el-tab-pane>
        <el-tab-pane label="公众服务统计查询" name="second"> </el-tab-pane>
      </el-tabs>
    </section>
  </div>
</template>

<script>
import TopComponent from "./components/topComponent";
import ChannelAnalytics from "./components/channelAnalytics";
import EventTypeAnalysis from "./components/eventTypeAnalysis";
import AuditAnalytics from "./components/auditAnalytics";
import PostTrendsDay from "./components/postTrendsDay";
import PostTrendsMonth from "./components/postTrendsMonth";
import NucleusThrough from "./components/nucleusThrough";

export default {
  name: "publicService",
  components: {
    TopComponent,
    ChannelAnalytics,
    EventTypeAnalysis,
    AuditAnalytics,
    PostTrendsDay,
    PostTrendsMonth,
    NucleusThrough,
  },
  data() {
    return {
      activeName: "first",
    };
  },
  methods: {
    changeTabs() {},
  },
};
</script>

<style lang="scss" scoped>
::v-deep .el-tabs__item {
  display: inline-flex;
  justify-content: center;
  font-size: 16px;
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  color: #ffffff;
  min-width: 128px;
  position: relative;
  left: 10px;
}

::v-deep .el-tabs__active-bar {
  min-width: 128px;
}

::v-deep .el-tabs__nav-wrap::after {
  background-color: #133242;
  opacity: 0.1;
}

.footTabs {
  display: inline;
  width: 100%;
}

.TrafficFlow {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 6;
  color: white;

  .header-shot {
    width: 98%;
    margin: auto;
    margin-top: 15px;
    height: 160px;
  }

  .content {
    width: 100%;
    margin: auto;
    display: flex;
    flex: 1;
    pointer-events: none;
    margin-top: 19px;
    --keep-ratio: scaleX(1);

    > div {
      pointer-events: auto;
    }

    .content-l {
      width: calc(25%);

      margin-right: 20px;
    }

    .content-mi {
      width: calc(50%);

      margin-right: 20px;
    }

    .content-m {
      display: inline-flex;
      flex-direction: column;
      width: calc(100% / 4);
      margin-right: 20px;

      .content-m-t {
        width: 100%;
        height: 240px;
        margin-bottom: 20px;
      }
    }
    .content-r {
      width: 49.4%;
    }
  }
  .foot {
    width: 98%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex: 1;
    pointer-events: none;
    margin-top: 8px;
    > div {
      pointer-events: auto;
    }

    .foot-w {
      width: 100%;
    }

    .foot-l {
      width: 726px;
    }
    .foot-m {
      width: 613px;
    }
    .foot-r {
      width: 493px;
    }
  }
}
</style>
