index.vue 2.4 KB
Newer Older
V
vben 已提交
1 2
<template>
  <div class="analysis p-4">
V
vben 已提交
3
    <a-row class="pl-2">
V
vben 已提交
4 5 6 7 8
      <template v-for="item in growCardList" :key="item.title">
        <ACol :sm="24" :md="12" :lg="6">
          <GrowCard :info="item" />
        </ACol>
      </template>
V
vben 已提交
9
    </a-row>
V
vben 已提交
10

V
vben 已提交
11 12
    <a-row>
      <a-col :md="24" :lg="17" class="my-3">
V
vben 已提交
13 14 15
        <CollapseContainer class="mr-3" title="产品成交额" :canExpan="false">
          <AnalysisLine />
        </CollapseContainer>
V
vben 已提交
16 17
        <a-row class="mt-3">
          <a-col :md="24" :lg="12" class="product-total">
V
vben 已提交
18 19 20
            <CollapseContainer class="mr-3" title="产品成交额" :canExpan="false">
              <AnalysisPie />
            </CollapseContainer>
V
vben 已提交
21 22
          </a-col>
          <a-col :md="24" :lg="12">
V
vben 已提交
23 24 25
            <CollapseContainer class="mr-3" title="用户来源" :canExpan="false">
              <AnalysisBar />
            </CollapseContainer>
V
vben 已提交
26 27 28 29
          </a-col>
        </a-row>
      </a-col>
      <a-col :md="24" :lg="7">
V
vben 已提交
30 31 32 33 34
        <CollapseContainer class="mt-3" title="项目进度" :canExpan="false">
          <template v-for="item in taskList" :key="item.title">
            <TaskCard :info="item" />
          </template>
        </CollapseContainer>
V
vben 已提交
35 36 37
      </a-col>
    </a-row>
    <a-row>
V
vben 已提交
38
      <FlowAnalysis />
V
vben 已提交
39
    </a-row>
V
vben 已提交
40 41 42 43 44 45 46 47 48 49 50 51
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import GrowCard from './components/GrowCard.vue';
  import TrendLine from './components/TrendLine.vue';
  import AnalysisLine from './components/AnalysisLine.vue';
  import AnalysisPie from './components/AnalysisPie.vue';
  import AnalysisBar from './components/AnalysisBar.vue';
  import TaskCard from './components/TaskCard.vue';
  import FlowAnalysis from './components/FlowAnalysis';
  import { CollapseContainer } from '/@/components/Container/index';
V
vben 已提交
52
  import { Row, Col } from 'ant-design-vue';
V
vben 已提交
53 54 55 56 57 58 59 60 61 62 63
  import { growCardList, taskList } from './data';
  export default defineComponent({
    components: {
      GrowCard,
      CollapseContainer,
      TrendLine,
      AnalysisLine,
      AnalysisPie,
      AnalysisBar,
      TaskCard,
      FlowAnalysis,
V
vben 已提交
64 65
      [Row.name]: Row,
      [Col.name]: Col,
V
vben 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
    },
    setup() {
      return { growCardList, taskList };
    },
  });
</script>
<style lang="less" scoped>
  .analysis {
    width: 100%;

    .product-total {
      .respond-to(small-and-medium, {padding-right: 0;margin-bottom: 24px;});
    }
  }
</style>