NearThread.vue
1.08 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
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:47:43
-->
<template>
<div class="near-thread-box">
<BoxTitle :title="'近12个月的线索推送情况'" :fontSize="18"></BoxTitle>
<img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" />
<BarChart ref="nearThreadChartRef" :height="'24.82vh'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart>
</div>
</template>
<script>
import { nearThreadDataList } from '../const/index'
import BarChart from './BarChart.vue'
export default {
name: 'NearThread',
components: { BarChart },
data() {
return {
nearThreadDataList
}
},
mounted() {
this.$refs.nearThreadChartRef.drawBar()
},
methods: {}
}
</script>
<style lang="scss" scoped>
.near-thread-box {
width: 31.67vw;
height: 35.37vh;
padding: 1.85vh;
box-sizing: border-box;
background-image: url(../../../assets/images/near-bg.png);
background-size: 100% 100%;
.bottom-line {
width: 16.28vw;
height: 0.23vh;
}
}
</style>