analyse.vue
1.68 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
76
77
78
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-31 13:52:49
* @FilePath: \dj-data-view\src\views\user\analyse.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="analyse">
<div class="title title-icon">
<span class="icon"></span>
<div class="title-h3">客户价值分析</div>
<div class="go" @click="goAnalyse">
<img src="@/assets/images/go.png" />
</div>
</div>
<div class="container">
<bar-chart domId="analyseChart" :revese="true" boxHeight="14.54vh" :analysisList="analysisList"></bar-chart>
</div>
</div>
</template>
<script>
export default {
name: 'Analyse',
data() {
return {
analysisList: {},
isShow: true
}
},
mounted() {
this.getCustomerValueAnalysis()
},
methods: {
getCustomerValueAnalysis() {
this.api.user.getCustomerValueAnalysis().then(res => {
if (res.code == 0) {
this.analysisList = res.data.dataList[0]
}
})
},
goAnalyse(){
this.$Dialog()
}
}
}
</script>
<style scoped lang="scss">
.analyse {
width: 18.06vw;
.container {
margin-top: -1vh;
margin-left: 1.5vw;
}
.icon {
display: inline-block;
transform: rotate(90deg);
}
.title {
display: block;
}
.title-h3 {
width: 10px;
margin: 4px 4px;
// height:10.98vh;
font-size: 10px;
}
.go {
width: 12px;
height: 12px;
margin: 3px;
cursor: pointer;
}
}
</style>