vue-vben-admin/src/views/dashboard/analysis/index.vue

75 lines
2.2 KiB
Vue
Raw Normal View History

2020-10-11 22:59:44 +08:00
<template>
2021-01-28 23:28:50 +08:00
<div class="p-4 analysis">
2020-11-10 22:45:39 +08:00
<a-row class="pl-2">
2020-10-11 22:59:44 +08:00
<template v-for="item in growCardList" :key="item.title">
2021-01-28 23:28:50 +08:00
<a-col :sm="24" :md="12" :lg="6">
2020-10-11 22:59:44 +08:00
<GrowCard :info="item" />
2021-01-28 23:28:50 +08:00
</a-col>
2020-10-11 22:59:44 +08:00
</template>
2020-11-10 22:45:39 +08:00
</a-row>
2020-10-11 22:59:44 +08:00
2020-11-10 22:45:39 +08:00
<a-row>
<a-col :md="24" :lg="17" class="my-3">
2020-10-11 22:59:44 +08:00
<CollapseContainer class="mr-3" title="产品成交额" :canExpan="false">
<AnalysisLine />
</CollapseContainer>
2020-11-10 22:45:39 +08:00
<a-row class="mt-3">
<a-col :md="24" :lg="12" class="product-total">
2020-10-11 22:59:44 +08:00
<CollapseContainer class="mr-3" title="产品成交额" :canExpan="false">
<AnalysisPie />
</CollapseContainer>
2020-11-10 22:45:39 +08:00
</a-col>
<a-col :md="24" :lg="12">
2020-10-11 22:59:44 +08:00
<CollapseContainer class="mr-3" title="用户来源" :canExpan="false">
<AnalysisBar />
</CollapseContainer>
2020-11-10 22:45:39 +08:00
</a-col>
</a-row>
</a-col>
<a-col :md="24" :lg="7">
2020-10-11 22:59:44 +08:00
<CollapseContainer class="mt-3" title="项目进度" :canExpan="false">
<template v-for="item in taskList" :key="item.title">
<TaskCard :info="item" />
</template>
</CollapseContainer>
2020-11-10 22:45:39 +08:00
</a-col>
</a-row>
<a-row>
2020-10-11 22:59:44 +08:00
<FlowAnalysis />
2020-11-10 22:45:39 +08:00
</a-row>
2020-10-11 22:59:44 +08:00
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import GrowCard from './components/GrowCard.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';
2021-01-18 23:37:36 +08:00
import { Row, Col } from 'ant-design-vue';
2020-10-11 22:59:44 +08:00
import { growCardList, taskList } from './data';
export default defineComponent({
components: {
GrowCard,
CollapseContainer,
AnalysisLine,
AnalysisPie,
AnalysisBar,
TaskCard,
FlowAnalysis,
2021-01-18 23:37:36 +08:00
[Row.name]: Row,
[Col.name]: Col,
2020-10-11 22:59:44 +08:00
},
setup() {
return { growCardList, taskList };
},
});
</script>
<style lang="less" scoped>
.analysis {
width: 100%;
}
</style>