Commit 4c7b4222 by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents 4487e5a6 5d4c6d8c
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
--> -->
<template> <template>
<div> <div>
<div :id="domId" style="width: 100%;" :style="{ height }"></div> <div :id="domId" style="width: 100%" :style="{ height }"></div>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import * as echarts from 'echarts' import * as echarts from 'echarts'
import getBarLineOptions from './BarLineOptions' import getBarLineOptions from './BarLineOptions'
export default { export default {
name: 'BarLineChart', name: 'BarLineChart',
props: { props: {
height: { height: {
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
} }
} }
}, },
data() { data() {
return { return {
barLineOptions: [], barLineOptions: [],
...@@ -52,7 +53,10 @@ ...@@ -52,7 +53,10 @@
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()
this.drawBarLine() setTimeout(()=>{
},
1000)
}, },
methods: { methods: {
drawBarLine() { drawBarLine() {
...@@ -69,9 +73,7 @@ ...@@ -69,9 +73,7 @@
}) })
} }
} }
} }
</script> </script>
<style scoped lang="scss">
</style>
<style scoped lang="scss"></style>
<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.83'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart> <BarChart ref="bigModuleChartRef" :height="'15.83vh'" domId="bigModuleChart" :dataList.sync="bigModuleChartDataList"></BarChart>
</div> </div>
</template> </template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<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.83'" domId="nearThreadChart" :dataList.sync="nearThreadDataList"></BarChart> <BarChart ref="nearThreadChartRef" :height="'22.83vh'" 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!