Commit d8b42895 by 胡悦

修复样式

1 parent 891473c2
......@@ -82,7 +82,7 @@ img {
color: #E8E8E8;
line-height: 2.1vh;
font-weight: 400;
padding: 0.5vh 0.6vh;
padding: 0.5vh 8px;
user-select: none;
}
.title-icon {
......
......@@ -4,27 +4,28 @@
<view-sub-title title="集团客户总览" />
<view-tabs />
<view-pie-group>
<div slot="1"><Age></Age></div>
<div slot="2"><BuyCar></BuyCar></div>
<div slot="3"><Sex></Sex></div>
<div slot="1"><Age :height="defaultHeight"></Age></div>
<div slot="2"><BuyCar :height="defaultHeight"></BuyCar></div>
<div slot="3"><Sex :height="defaultHeight"></Sex></div>
</view-pie-group>
</div>
<div class="bottom">
<view-sub-title title="销售数据总览" />
<view-line-group height="14.9vh">
<div slot="1"><Flow></Flow></div>
<div slot="2"><Trend></Trend></div>
<div slot="1"><Flow height="14.9"></Flow></div>
<div slot="2"><Trend height="14.9"></Trend></div>
</view-line-group>
<view-pie-group>
<div slot="1"><EnterCategory></EnterCategory></div>
<div slot="2"><InfoFrom></InfoFrom></div>
<div slot="3"><CustomerCategory></CustomerCategory></div>
<div slot="1"><EnterCategory :height="defaultHeight"></EnterCategory></div>
<div slot="2"><InfoFrom :height="defaultHeight"></InfoFrom></div>
<div slot="3"><CustomerCategory :height="defaultHeight"></CustomerCategory></div>
</view-pie-group>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import datas from '../utils/data'
import Age from '../views/customer/age'
import BuyCar from '../views/customer/buyCar'
import Sex from '../views/customer/sex'
......@@ -45,11 +46,12 @@ export default {
InfoFrom,
EnterCategory
},
data () {
data() {
return {
defaultHeight: datas.DefaultData.defaultPieHeight
}
},
mounted () {
mounted() {
},
methods: {
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 10:52:23
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 10:49:55
* @LastEditTime: 2022-06-24 14:44:50
-->
<template>
<div class="right">
......@@ -21,8 +21,8 @@
<div slot="2"><Sadayasu :height="defaultHeight"></Sadayasu></div>
</view-line-group>
<view-line-group height="25.6vh" hideMargin>
<div slot="1"><Analyze height="25.6vh"></Analyze></div>
<div slot="2"><Mileage height="25.6vh"></Mileage></div>
<div slot="1"><Analyze height="25.6"></Analyze></div>
<div slot="2"><Mileage height="25.6"></Mileage></div>
</view-line-group>
</div>
</template>
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-23 11:28:03
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 10:51:16
* @LastEditTime: 2022-06-24 14:57:41
-->
<template>
<div class="line-group">
......@@ -22,7 +22,7 @@ export default {
props: {
height: {
type: String,
default: datas.DefaultData.defaultLineHeight
default: datas.DefaultData.defaultLineHeight + 'vh'
},
hideMargin: Boolean
},
......
......@@ -3,10 +3,11 @@
* @Author: huyue
* @Date: 2022-06-23 17:38:33
* @LastEditors: huyue
* @LastEditTime: 2022-06-24 11:24:36
* @LastEditTime: 2022-06-24 14:44:19
*/
const DefaultData = {
defaultLineHeight: '19.8vh'
defaultLineHeight: '19.8',
defaultPieHeight: '16.6'
}
const Customer = {
......
......@@ -3,16 +3,101 @@
* @Author: huyue
* @Date: 2022-06-23 15:05:21
* @LastEditors: huyue
* @LastEditTime: 2022-06-23 17:08:07
* @LastEditTime: 2022-06-24 16:26:20
-->
<template>
<div>
<div class="title">客流转化</div>
<div class="flow-box">
<div class="title inline">客流转化</div>
<div class="chart-box">
<div id="flow" :style="{ height: height - 3.1 + 'vh' }"></div>
</div>
</div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'Flow'
name: 'Flow',
props: ['height'],
data() {
return {}
},
mounted() {
this.getChart()
},
methods: {
getChart() {
var chartDom = document.getElementById('flow')
var myChart = echarts.init(chartDom)
var option
option = {
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c}%'
},
series: [
{
name: 'Funnel',
type: 'funnel',
left: 0,
top: 8,
bottom: 8,
width: '100%',
min: 0,
max: 100,
minSize: '30%',
maxSize: '100%',
sort: 'descending',
gap: 2,
label: {
show: true,
position: 'inside'
},
labelLine: {
length: 10,
lineStyle: {
width: 1,
type: 'solid'
}
},
itemStyle: {
borderColor: '#fff',
borderWidth: 1
},
emphasis: {
label: {
fontSize: 20
}
},
data: [
{ value: 60, name: 'Visit' },
{ value: 40, name: 'Inquiry' },
{ value: 20, name: 'Order' },
{ value: 80, name: 'Click' },
{ value: 100, name: 'Show' }
]
}
]
}
option && myChart.setOption(option)
}
}
}
</script>
<style lang="scss" scoped>
.flow-box {
padding: 0 8px 1vh;
box-sizing: border-box;
}
.chart-box {
width: 148px;
height: 11.7vh;
background-color: #262525;
padding: 0 25px;
// margin: 0 20px 1vh 8px;
// box-sizing: border-box;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!