BigModuleTrend.vue
1.07 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
<!--
* @Description:
* @Author: huyue
* @Date: 2024-07-09 10:35:58
* @LastEditors: huyue
* @LastEditTime: 2024-07-10 15:44:05
-->
<template>
<div class="big-module-box">
<BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="16"></BoxTitle>
<BarChart class="bar-chart" ref="bigModuleChartRef" :height="'25.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
</div>
</template>
<script>
import { bigModuleChartDataList } from '../const/index'
import BarChart from './BarChart.vue'
export default {
name: 'BigModuleTrend',
components: { BarChart },
data() {
return {
bigModuleChartDataList
}
},
mounted() {
let _this = this;
_this.$nextTick(function () {
_this.$refs.bigModuleChartRef.drawBar()
})
},
methods: {}
}
</script>
<style lang="scss" scoped>
.big-module-box {
box-sizing: border-box;
width: 15vw;
height: 34.23vh;
background-image: url(../../../assets/images/big-module-bg.png);
background-size: 100% 100%;
padding: 3.61vh 1.59vw 5.93vh 0.78vw;
}
</style>