Analyse.vue
2.19 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
79
80
81
82
83
84
85
86
87
88
89
90
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 16:49:20
* @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">
<BarChart domId="analyseChart" :revese="true" boxHeight="14.54vh" :analysisList="analysisList" :colorList="colorList"></BarChart>
</div>
<MyDialog :isShow="dialogShow" @closeDialog="closeDialog"></MyDialog>
</div>
</template>
<script>
import BarChart from './BarChart.vue'
import MyDialog from './Dialog.vue'
export default {
name: 'Analyse',
components: {
BarChart,
MyDialog
},
data() {
return {
analysisList: {},
isShow: true,
colorList: ['#5C56FF', '#22D8FF'],
dialogShow: false
}
},
mounted() {
this.getCustomerValueAnalysis()
},
methods: {
getCustomerValueAnalysis() {
this.api.operational.getCustomerValueAnalysis().then(res => {
if (res.code === '0') {
this.analysisList = res.data.dataList[0]
}
})
},
goAnalyse() {
this.dialogShow = true
},
closeDialog() {
this.dialogShow = false
}
}
}
</script>
<style scoped lang="scss">
.analyse {
width: 19.44vw;
.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;
background-image: linear-gradient(180deg, #003F57 0%, #111056 54%, #071735 100%);
}
.go {
width: 0.65vw;
height: 0.65vw;
margin: 3px 0;
cursor: pointer;
}
}
</style>