ViewContentLeft.vue
1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<template>
<div class="left">
<div class="top">
<view-sub-title title="集团客户总览" />
<view-tabs />
<view-pie-group>
<div slot="1"><Age :height="defaultHeight"></Age></div>
<div slot="2"><Sex :height="defaultHeight"></Sex></div>
<div slot="3"><BuyCar :height="defaultHeight"></BuyCar></div>
</view-pie-group>
</div>
<div class="bottom">
<view-sub-title title="销售数据总览" />
<view-line-group height="15.9vh">
<div slot="1"><Flow height="15.9"></Flow></div>
<div slot="2"><Trend height="15.9"></Trend></div>
</view-line-group>
<view-pie-group>
<div slot="1"><EnterCategory :height="defaultHeight"></EnterCategory></div>
<div slot="2"><InfoFrom :height="defaultHeight"></InfoFrom></div>
<div slot="3"><CustomerCategory :height="defaultHeight"></CustomerCategory></div>
</view-pie-group>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import datas from '../utils/data'
import Age from '../views/customer/age'
import BuyCar from '../views/customer/buyCar'
import Sex from '../views/customer/sex'
import Flow from '../views/salesData/flow'
import Trend from '../views/salesData/trend'
import CustomerCategory from '../views/salesData/customerCategory'
import InfoFrom from '../views/salesData/infoFrom'
import EnterCategory from '../views/salesData/enterCategory'
export default {
name: 'ViewContentLeft',
components: {
Age,
BuyCar,
Sex,
Flow,
Trend,
CustomerCategory,
InfoFrom,
EnterCategory
},
data() {
return {
defaultHeight: datas.DefaultData.defaultPieHeight
}
},
mounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.left {
display: flex;
flex-direction: column;
.top {
// height: 59%;
height: 53.3vh;
}
.bottom {
// height: calc(41% - 16px);
height: 36.8vh;
margin-top: auto;
}
}
</style>