NearThread.vue
1.16 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
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 15:14:45
-->
<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="'28.77vh'" 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() {
let _this = this;
_this.$nextTick(function(){
_this.$refs.nearThreadChartRef.drawBar()
})
},
methods: {}
}
</script>
<style lang="scss" scoped>
.near-thread-box {
width: 30.51vw;
height: 35.37vh;
padding: 1vh 1vw 3.56vh;
box-sizing: border-box;
background-image: url(../../../assets/images/near-bg.png);
background-size: 100% 100%;
.bottom-line {
width: 28.17vw;
height: 0.23vh;
}
}
</style>