Commit dcaf7369 by 胡悦

x修改生命周期样式

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