Commit dcaf7369 by 胡悦

x修改生命周期样式

1 parent 4c7b4222
......@@ -2,7 +2,7 @@
<div class="AI-box">
<BoxTitle :title="'AI对话调用次数及覆盖门店'" :fontSize="18"></BoxTitle>
<img class="bottom-line" src="@/assets/images/bottomLine.png" alt="" />
<BarLineChart ref="AITalkRef" height="14.35vh" domId="AITalk" :dataList.sync="AIBarLineData"></BarLineChart>
<BarLineChart ref="AITalkRef" height="15.83vh" domId="AITalk" :dataList.sync="AIBarLineData"></BarLineChart>
</div>
</template>
......@@ -19,7 +19,9 @@ export default {
}
},
mounted() {},
mounted() {
this.$refs.AITalkRef.drawBarLine()
},
methods: {}
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-08-23 16:22:16
* @LastEditTime: 2024-01-26 21:35:57
* @FilePath: \dj-data-view\src\components\ViewTitle.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -37,7 +37,6 @@ export default {
}
}
},
data() {
return {
barLineOptions: [],
......@@ -53,10 +52,10 @@ export default {
this.barLineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.barLineDom)
this.chartBindEvent()
setTimeout(()=>{
// setTimeout(()=>{
},
1000)
// },
// 1000)
},
methods: {
drawBarLine() {
......
<template>
<div class="big-module-box">
<BoxTitle :title="'使用大模型创建活动的趋势'" :fontSize="16"></BoxTitle>
<BarChart ref="bigModuleChartRef" :height="'15.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
<BarChart class="bar-chart" ref="bigModuleChartRef" :height="'15.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
</div>
</template>
......@@ -13,11 +13,13 @@ export default {
components: { BarChart },
data() {
return {
bigModuleChartDataList
bigModuleChartDataList
}
},
mounted() {},
mounted() {
this.$refs.bigModuleChartRef.drawBar()
},
methods: {}
}
......@@ -32,4 +34,7 @@ export default {
background-size: 100% 100%;
padding: 3.61vh 1.59vw 5.93vh 0.78vw;
}
.bar-chart {
transform: translateY(30%);
}
</style>
......@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 11:37:34
* @LastEditTime: 2024-01-26 21:56:54
-->
<template>
<div class="hot-box">
<BoxTitle :title="'提问热词'" :fontSize="16"></BoxTitle>
<BoxTitle class="hot-title" :title="'提问热词'" :fontSize="16"></BoxTitle>
<div class="tagcloud"></div>
</div>
</template>
......@@ -40,24 +40,46 @@ export default {
return {}
},
mounted() {
TagCloud('.tagcloud', texts)
TagCloud('.tagcloud', texts, {
radius: 100
})
}
}
</script>
<style lang="scss">
.hot-box {
position: relative;
width: 10.31vw;
height: 23.8vh;
background-image: url(../../../assets/images/hot-words-bg.png);
background-image: url(../../../assets/images/hotword-bg.png);
background-size: 100% 100%;
text-align: center;
.hot-title {
padding-bottom: 4.19vh;
}
&::after {
content: '';
display:block;
width: 0.73vw;
height: 2.04vh;
position: absolute;
top: 1vh;
right: 1vh;
background-image: url(../../../assets/images/right-arrow.png);
background-size: 0.73vw 2.04vh;
}
}
.tagcloud {
width: 7.85vw !important;
height: 7.85vw !important;
background-image: url(../../../assets/images/hot-words-bg.png);
background-size: 100% 100%;
margin: 0 auto;
span {
font-size: 10px;
color: #5894FF;
background-image: -webkit-linear-gradient(left, #0185F9, #53FAFF);
-webkit-background-clip: text;
......
<!--
* @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="'22.83vh'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart>
<BarChart ref="nearThreadChartRef" :height="'24.82vh'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!