Commit 94c9e556 by 匡雅琴

运营数据右侧样式调整

1 parent 0bd409ec
...@@ -51,7 +51,7 @@ const getTrend = params => { ...@@ -51,7 +51,7 @@ const getTrend = params => {
// 私域用户池总览接口---客户价值分析--品牌分布/区域分布 // 私域用户池总览接口---客户价值分析--品牌分布/区域分布
const getValueDistribution = params => { const getValueDistribution = params => {
return window.$HTTP.get('dj/private/getValueDistribution', params) return window.$HTTP.get('dj/private/getValueDistribution', params, false, true)
} }
// 私域用户池总览接口---用户数:总数/当年新增,企微客户数:总数/当年新增,企微群数:总数/当年新增,小程序:总数/当年新增,个微客户数:总数/当年新增 // 私域用户池总览接口---用户数:总数/当年新增,企微客户数:总数/当年新增,企微群数:总数/当年新增,小程序:总数/当年新增,个微客户数:总数/当年新增
......
...@@ -139,9 +139,7 @@ img { ...@@ -139,9 +139,7 @@ img {
-webkit-text-fill-color:transparent; -webkit-text-fill-color:transparent;
} }
.user-box { .user-box {
height: 9.51vh; height: 9.63vh;
width:11.18vw; width:13.26vw;
margin-right: 0.28vw; background: #071735;
margin-bottom: 0.28vw;
background: #0b0e31;
} }
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
</div> </div>
<div class="bottom"> <div class="bottom">
<box-title title="SaaS订阅业务总览"></box-title> <box-title title="SaaS订阅业务总览"></box-title>
<div class="bottom-content">
<UserTab></UserTab> <UserTab></UserTab>
<view-chart></view-chart> <view-chart></view-chart>
<view-line-group> <view-line-group>
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
</view-line-group> </view-line-group>
</div> </div>
</div> </div>
</div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
...@@ -31,8 +33,8 @@ import datas from '../../utils/data' ...@@ -31,8 +33,8 @@ import datas from '../../utils/data'
import Business from './components/Business.vue' import Business from './components/Business.vue'
import Project from './components/Project.vue' import Project from './components/Project.vue'
import Analyse from './components/Analyse.vue' import Analyse from './components/Analyse.vue'
import Area from './components/Area.vue' import Area from './components/AreaSaas.vue'
import Brand from './components/Brand.vue' import Brand from './components/BrandSaas.vue'
import UserTab from './components/UserTab.vue' import UserTab from './components/UserTab.vue'
import ViewChart from './components/ViewChart.vue' import ViewChart from './components/ViewChart.vue'
import ViewLineGroup from './components/ViewLineGroup.vue' import ViewLineGroup from './components/ViewLineGroup.vue'
...@@ -68,7 +70,7 @@ export default { ...@@ -68,7 +70,7 @@ export default {
queryItem: queryItem[7 - itemKey] queryItem: queryItem[7 - itemKey]
} }
} }
this.api.user.getValueDistribution(params).then(res => { this.api.operational.getValueDistribution(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.areaList = res.data.dataList[0].rankDistributions this.areaList = res.data.dataList[0].rankDistributions
this.brandList = res.data.dataList[1].rankDistributions this.brandList = res.data.dataList[1].rankDistributions
...@@ -81,21 +83,21 @@ export default { ...@@ -81,21 +83,21 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.right { .right {
width: 51.67vw; width: 53.89vw;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.top { .top {
height: 33.41vh; height: 32.68vh;
box-sizing: border-box; box-sizing: border-box;
} }
.bottom { .bottom {
height: 55.12vh; height: 53.66vh;
margin-top: auto; margin-top: 1.95vh;
// background-image: url('../assets/images/bg-4.png'); box-shadow: inset 0 0 20px 0 #3d57ff69;
background-repeat: no-repeat;
background-size: 100% 100%;
padding: 0 16px;
box-sizing: border-box; box-sizing: border-box;
&-content {
padding: 0 0.83vw;
}
} }
} }
</style> </style>
...@@ -8,9 +8,8 @@ ...@@ -8,9 +8,8 @@
<template> <template>
<div class="user-box"> <div class="user-box">
<div class="title title-icon"> <div class="title-icon">
<span class="icon"></span> <span class="title-bg">客户年龄分布</span>
<span>客户年龄分布</span>
</div> </div>
<div class="user-container flex"> <div class="user-container flex">
<pie-chart ref="pieChart" :id="chart.id" :size="chart.size" :list="ageData" :keys="chart.keys" :radius="chart.radius" height="6.1vh" @pieAction="pieAction"></pie-chart> <pie-chart ref="pieChart" :id="chart.id" :size="chart.size" :list="ageData" :keys="chart.keys" :radius="chart.radius" height="6.1vh" @pieAction="pieAction"></pie-chart>
...@@ -53,16 +52,23 @@ export default { ...@@ -53,16 +52,23 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.user-box { .user-box {
.title { .title-icon {
font-weight: 500;
font-size: 10px; font-size: 10px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw;
}
} }
.legend-item { .legend-item {
width: 4.65vw; width: 4.65vw;
height: 1.83vh; height: 1.83vh;
background: #0d133b; background: #0A214D;
font-weight: 400; font-weight: 400;
font-size: 9px; font-size: 9px;
color: #fff; color: #fff;
margin-right: 2vw;
span { span {
width: 5px; width: 5px;
height: 5px; height: 5px;
......
...@@ -16,14 +16,18 @@ ...@@ -16,14 +16,18 @@
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<bar-chart domId="analyseChart" :revese="true" boxHeight="14.54vh" :analysisList="analysisList"></bar-chart> <BarChart domId="analyseChart" :revese="true" boxHeight="14.54vh" :analysisList="analysisList"></BarChart>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import BarChart from './BarChart.vue'
export default { export default {
name: 'Analyse', name: 'Analyse',
components: {
BarChart
},
data() { data() {
return { return {
analysisList: {}, analysisList: {},
...@@ -36,7 +40,7 @@ export default { ...@@ -36,7 +40,7 @@ export default {
methods: { methods: {
getCustomerValueAnalysis() { getCustomerValueAnalysis() {
this.api.operational.getCustomerValueAnalysis().then(res => { this.api.operational.getCustomerValueAnalysis().then(res => {
if (res.code === 0) { if (res.code === '0') {
this.analysisList = res.data.dataList[0] this.analysisList = res.data.dataList[0]
} }
}) })
...@@ -49,7 +53,7 @@ export default { ...@@ -49,7 +53,7 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.analyse { .analyse {
width: 18.06vw; width: 19.44vw;
.container { .container {
margin-top: -1vh; margin-top: -1vh;
margin-left: 1.5vw; margin-left: 1.5vw;
......
<template>
<div class="area">
<div class="title title-icon">
<span class="icon"></span>
<span>区域分布</span>
</div>
<div class="container">
<BarChart domId="areaChart" :analysisList="areaList"></BarChart>
</div>
</div>
</template>
<script>
import BarChart from './BarChart.vue'
export default {
name: 'AreaSaas',
components: {
BarChart
},
data() {
return {}
},
props: {
areaList: {
type: Array,
default: () => []
}
}
}
</script>
<style scoped lang="scss">
.area {
width: 15.83vw;
}
</style>
<template>
<div class="line-box">
<div :id="domId" class="line-chart" :style="{ height: boxHeight }"></div>
</div>
</template>
<script>
const ValueAnalysis = [
{ name: 'gendev', label: '一般发展', order: 6 },
{ name: 'genrecall', label: '一般召回', order: 7 },
{ name: 'gensave', label: '一般挽留', order: 8 },
{ name: 'genval', label: '一般价值', order: 5 },
{ name: 'majordev', label: '重要发展', order: 2 },
{ name: 'majorrecall', label: '重要召回', order: 3 },
{ name: 'majorsave', label: '重要挽留', order: 4 },
{ name: 'majorval', label: '重要价值', order: 1 }
]
import datas from '@/utils/data'
import * as echarts from 'echarts'
import utils from '../../../utils/util'
import { getBarOptions, getBarReverseOptions } from './options'
export default {
name: 'BarChart',
props: {
domId: {
type: String,
default: 'line-chart'
},
rotate: {
type: Number,
default: 0
},
revese: {
type: Boolean,
default: false
},
boxHeight: {
type: String,
default: '13.83vh'
},
storeOrBrandTxt: {
type: String,
default: '品牌'
},
analysisList: {
type: [Array, Object],
default: () => []
},
// 0-月表;1-日表
queryType: {
type: Number,
default: 0
},
tooltipFormatterObj: {
type: Array,
default: () => {
return [
{
label: '数量',
attrName: 'num'
},
{
label: '环比',
attrName: 'hrate',
addSymbol: '%'
},
{
label: '同比',
attrName: 'trate',
addSymbol: '%'
}
]
}
}
},
data() {
return {
directionTimer: datas.DefaultData.directionTimer,
delayTimer: datas.DefaultData.delayTimer,
rankFlag: 'top',
lineOptions: [],
rankList: [],
areaList2: this.areaList,
echartsLine: '',
moveAttr: {
// speed: 900,
seriesIndex: 0,
dataIndex: 0
},
timer: null,
currentData: {
dataIndex: 0
}
}
},
// created() {
// const { rotate, analysisList } = this
// const obj = {
// rotate,
// analysisList
// }
// this.lineOptions = this.revese ? getBarReverseOptions(obj) : getBarOptions(obj)
// },
watch: {
analysisList: {
handler() {
const { rotate, analysisList } = this
const obj = {
rotate,
analysisList,
ValueAnalysis
}
this.lineOptions = this.revese ? getBarReverseOptions(obj) : getBarOptions(obj)
this.chartBindEvent()
},
deep: true
}
},
mounted() {
this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom)
// this.chartBindEvent()
},
methods: {
chartBindEvent() {
this[this.domId].setOption(this.lineOptions)
if (this.revese === false) return
this.chartAction()
this[this.domId].getZr().on(
'mousemove',
utils.debounce(params => {
clearInterval(this.timer)
this.timer = null
const pointInPixel = [params.offsetX, params.offsetY]
const pointInGrid = this[this.domId].convertFromPixel({ seriesIndex: 0 }, pointInPixel)
const yIndex = pointInGrid[1]
this.currentData = {
dataIndex: yIndex
}
this.chartAction(yIndex)
}, 500)
)
this[this.domId].getZr().on(
'mouseout',
utils.debounce(() => {
if (!this.timer) {
this.timer = setInterval(this.setInter, 5000)
}
}, 500)
)
this.timer = setInterval(this.setInter, 5000)
},
setInter() {
if (this.currentData.dataIndex == 0) {
this.currentData.dataIndex = 7
} else {
this.currentData.dataIndex--
}
this.chartAction(this.currentData.dataIndex)
},
chartAction(index = 7) {
this[this.domId].dispatchAction({
type: 'showTip',
seriesIndex: 0,
dataIndex: index
})
this.$bus.$emit('drawChart', index)
}
}
}
</script>
<style lang="scss" scoped>
.line-box {
height: 100%;
color: #ffffff;
.txt-orange {
color: #eb6001;
}
.line-chart {
width: 100%;
}
}
</style>
<template>
<div class="brand">
<div class="title title-icon">
<span class="icon"></span>
<span>品牌分布</span>
</div>
<div class="container">
<BarChart domId="brandChart" :rotate="30" :analysisList="brandList"></BarChart>
</div>
</div>
</template>
<script>
import BarChart from './BarChart.vue'
export default {
name: 'BrandSaas',
components: {
BarChart
},
data() {
return {}
},
props: {
brandList: {
type: Array,
default: () => []
}
}
}
</script>
<style scoped lang="scss">
.brand {
width: 15.83vw;
}
</style>
...@@ -95,14 +95,15 @@ export default { ...@@ -95,14 +95,15 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.business-wrap { .business-wrap {
height: 13.9vh; height: 14.15vh;
margin: 0.98vh 0.83vw; margin: 0.98vh 0.83vw;
// margin-bottom: 0.98vh; // margin-bottom: 0.98vh;
// margin-top: 0.98vh; // margin-top: 0.98vh;
justify-content: space-between;
.business-data { .business-data {
margin-right: 4px; margin-right: 4px;
// margin-top: 0.98vh; // margin-top: 0.98vh;
width: 36.11vw; width: 38.06vw;
height: 100%; height: 100%;
/deep/{ /deep/{
.business-box.statistics { .business-box.statistics {
...@@ -123,7 +124,7 @@ export default { ...@@ -123,7 +124,7 @@ export default {
} }
} }
.business-category { .business-category {
width: 14.15vw; width: 13.89vw;
height: 100%; height: 100%;
} }
} }
......
...@@ -8,9 +8,8 @@ ...@@ -8,9 +8,8 @@
<template> <template>
<div class="user-box"> <div class="user-box">
<div class="title title-icon"> <div class="title-icon">
<span class="icon"></span> <span class="title-bg">购车年限</span>
<span>购车年限</span>
</div> </div>
<div class="user-container flex"> <div class="user-container flex">
<pie-chart @pieAction="pieAction" :size="chart.size" ref="pieChart" :id="chart.id" :list="buyCarData" :keys="chart.keys" :radius="chart.radius" height="6.1vh"></pie-chart> <pie-chart @pieAction="pieAction" :size="chart.size" ref="pieChart" :id="chart.id" :list="buyCarData" :keys="chart.keys" :radius="chart.radius" height="6.1vh"></pie-chart>
...@@ -35,12 +34,11 @@ export default { ...@@ -35,12 +34,11 @@ export default {
radius: ['56%', '85%'], radius: ['56%', '85%'],
size: '8px' size: '8px'
}, },
buyCarData: [], buyCarData: []
} }
}, },
created() { created() {
this.$bus.$on('userData',data=>{ this.$bus.$on('userData', data => {
this.buyCarData = data.buyCarData this.buyCarData = data.buyCarData
}) })
}, },
...@@ -54,16 +52,23 @@ export default { ...@@ -54,16 +52,23 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.user-box { .user-box {
.title { .title-icon {
font-weight: 500;
font-size: 10px; font-size: 10px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw;
}
} }
.legend-item { .legend-item {
width: 4.65vw; width: 4.65vw;
height: 1.83vh; height: 1.83vh;
background: #0d133b; background: #0a214d;
font-weight: 400; font-weight: 400;
font-size: 9px; font-size: 9px;
color: #fff; color: #fff;
margin-right: 2vw;
span { span {
width: 5px; width: 5px;
height: 5px; height: 5px;
......
<template> <template>
<div class="category-box box"> <div class="category-box box">
<div class="title title-icon"> <div class="title-icon">
<span class="icon"></span> <span class="title-bg">品类业务</span>
<span>品类业务</span>
</div> </div>
<div class="category-container flex"> <div class="category-container flex">
<pie-chart ref="pieChartCategory" :id="chart.id" :list="categoryData"></pie-chart> <pie-chart ref="pieChartCategory" :id="chart.id" :list="categoryData"></pie-chart>
<OperationaLegend class="category-legend" :list="categoryData"></OperationaLegend> <OperationaLegend class="category-legend" :list="categoryData" :width="'4.17vw'" :height="'2.44vh'"></OperationaLegend>
</div> </div>
</div> </div>
</template> </template>
...@@ -39,14 +37,21 @@ export default { ...@@ -39,14 +37,21 @@ export default {
.category-box { .category-box {
overflow: hidden; overflow: hidden;
height: 13.9vh; height: 13.9vh;
.title { .title-icon {
font-size: 10px; font-weight: 500;
font-size: 14px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #06142200 100%);
padding-left: 0.83vw;
}
} }
.category-container { .category-container {
height: 11.34vh; height: 11.34vh;
// margin: 1.59vh 1.67vw 1.46vh 1.11vw; // margin: 1.59vh 1.67vw 1.46vh 1.11vw;
.category-legend{ .category-legend {
width:4.2vw; width: 4.2vw;
margin-right: 1.81vw;
} }
} }
} }
......
<template>
<div class="line-box">
<div :id="domId" class="line-chart" :style="{ height: boxHeight }"></div>
</div>
</template>
<script>
import datas from '@/utils/data'
import * as echarts from 'echarts'
import { lineAndBarOptions } from './options'
export default {
name: 'LineBar',
props: {
domId: {
type: String,
default: 'line-chart'
},
revese: {
type: Boolean,
default: false
},
boxHeight: {
type: String,
default: '13.83vh'
},
storeOrBrandTxt: {
type: String,
default: '品牌'
},
dataList: {
type: Array,
default: () => []
},
// 0-月表;1-日表
queryType: {
type: Number,
default: 0
},
tooltipFormatterObj: {
type: Array,
default: () => {
return [
{
label: '数量',
attrName: 'num'
},
{
label: '环比',
attrName: 'hrate',
addSymbol: '%'
},
{
label: '同比',
attrName: 'trate',
addSymbol: '%'
}
]
}
}
},
data() {
return {
directionTimer: datas.DefaultData.directionTimer,
delayTimer: datas.DefaultData.delayTimer,
rankFlag: 'top',
lineOptions: [],
rankList: [],
echartsLine: '',
moveAttr: {
// speed: 900,
seriesIndex: 0,
dataIndex: 0
},
timer: null
}
},
watch: {
dataList: {
handler() {
console.log(33333333333);
this.lineOptions = lineAndBarOptions(this.dataList)
this.chartBindEvent()
},
deep: true
}
},
mounted() {
console.log(888888);
this.lineDom = document.getElementById(this.domId)
this[this.domId] = echarts.init(this.lineDom)
},
methods: {
chartBindEvent() {
// window.addEventListener('resize', () => {
// this[this.domId].resize()
// })
this[this.domId].setOption(this.lineOptions)
}
}
}
</script>
<style lang="scss" scoped>
.line-box {
height: 100%;
color: #ffffff;
.txt-orange {
color: #eb6001;
}
.line-chart {
width: 100%;
}
}
</style>
<template> <template>
<div class="user-box"> <div class="user-box">
<div class="title title-icon"> <div class="title-icon">
<span class="icon"></span> <span class="title-bg">里程分布</span>
<span>里程分布</span>
</div> </div>
<div class="user-container flex"> <div class="user-container flex">
<pie-chart @pieAction="pieAction" :size="chart.size" ref="pieChart" :id="chart.id" :list="mileageData" :keys="chart.keys" :radius="chart.radius" height="6.1vh"></pie-chart> <pie-chart @pieAction="pieAction" :size="chart.size" ref="pieChart" :id="chart.id" :list="mileageData" :keys="chart.keys" :radius="chart.radius" height="6.1vh"></pie-chart>
...@@ -46,16 +45,23 @@ export default { ...@@ -46,16 +45,23 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.user-box { .user-box {
.title { .title-icon {
font-weight: 500;
font-size: 10px; font-size: 10px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw;
}
} }
.legend-item { .legend-item {
width: 4.65vw; width: 4.65vw;
height: 1.83vh; height: 1.83vh;
background: #0d133b; background: #0A214D;
font-weight: 400; font-weight: 400;
font-size: 9px; font-size: 9px;
color: #fff; color: #fff;
margin-right: 2vw;
span { span {
width: 5px; width: 5px;
height: 5px; height: 5px;
......
<template> <template>
<div class="legend"> <div class="legend">
<div class="legend-item flex" v-for="(item, index) in dataList" :key="index"> <div class="legend-item flex" :style="{width: width,height: height}" v-for="(item, index) in dataList" :key="index">
<div class="icon" :style="{ background: colors[index] }"></div> <div class="icon" :style="{ background: colors[index] }"></div>
<div class="item-content">{{ item.name }}</div> <div class="item-content">{{ item.name }}</div>
</div> </div>
...@@ -22,6 +22,14 @@ export default { ...@@ -22,6 +22,14 @@ export default {
colors: { colors: {
type: Array, type: Array,
default: () => ['#FF6E76', '#7CFFB2', ' #FDF006', '#4FA0FF', '#EB6001', '#BF98FF', '#BF98FF', '#58D9F9'] default: () => ['#FF6E76', '#7CFFB2', ' #FDF006', '#4FA0FF', '#EB6001', '#BF98FF', '#BF98FF', '#58D9F9']
},
width: {
type: String,
default: '3.68vw'
},
height: {
type: String,
default: '2.44vh'
} }
}, },
watch: { watch: {
...@@ -42,12 +50,10 @@ export default { ...@@ -42,12 +50,10 @@ export default {
height: 8.54vh; height: 8.54vh;
margin-left: 0.42vw; margin-left: 0.42vw;
.legend-item { .legend-item {
width: 3.68vw; background: #0A214D;
height: 2.44vh;
background: #0d133b;
align-items: center; align-items: center;
font-size: 7px; font-size: 10px;
color: #fff; color: #FFFFFF;
box-sizing: border-box; box-sizing: border-box;
margin: 2px 2px 2px 0; margin: 2px 2px 2px 0;
white-space: nowrap; white-space: nowrap;
......
<template> <template>
<div class="user-box"> <div class="user-box">
<div class="title title-icon"> <div class="title-icon">
<span class="icon"></span> <span class="title-bg">车价占比</span>
<span>车价占比</span>
</div> </div>
<div class="user-container flex"> <div class="user-container flex">
<pie-chart @pieAction="pieAction" ref="pieChart" :size="chart.size" :id="chart.id" :list="priceData" :keys="chart.keys" :radius="chart.radius" height="6.1vh"></pie-chart> <pie-chart @pieAction="pieAction" ref="pieChart" :size="chart.size" :id="chart.id" :list="priceData" :keys="chart.keys" :radius="chart.radius" height="6.1vh"></pie-chart>
...@@ -46,16 +45,23 @@ export default { ...@@ -46,16 +45,23 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.user-box { .user-box {
.title { .title-icon {
font-weight: 500;
font-size: 10px; font-size: 10px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw;
}
} }
.legend-item { .legend-item {
width: 4.65vw; width: 4.65vw;
height: 1.83vh; height: 1.83vh;
background: #0d133b; background: #0A214D;
font-weight: 400; font-weight: 400;
font-size: 9px; font-size: 9px;
color: #fff; color: #fff;
margin-right: 2vw;
span { span {
width: 5px; width: 5px;
height: 5px; height: 5px;
......
...@@ -56,16 +56,16 @@ export default { ...@@ -56,16 +56,16 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.view-chart { .view-chart {
height: 19.51vh; height: 19.39vh;
margin: 0.98vh 0; margin: 0.98vh 0;
.line-chart { .line-chart {
width: 26.25vw; width: 25.14vw;
height: 100%; height: 100%;
background: #0b0e31; background: #071735;
margin-right: 0.56vw; margin-right: 0.56vw;
} }
.pie-chart { .pie-chart {
width: 23.28vw; width: 26.52vw;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
......
...@@ -39,6 +39,6 @@ export default { ...@@ -39,6 +39,6 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.line-group { .line-group {
display: flex; display: flex;
gap: 0 4px; justify-content: space-between;
} }
</style> </style>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
--> -->
<template> <template>
<div class="surface"> <div class="surface">
<line-bar domId="surfaceChart" boxHeight="21.46vh" :dataList="dataList"></line-bar> <LineBar domId="surfaceChart" boxHeight="21.46vh" :dataList="dataList"></LineBar>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
...@@ -20,9 +20,7 @@ export default { ...@@ -20,9 +20,7 @@ export default {
}, },
data() { data() {
return { return {
dataList: [ dataList: []
]
} }
}, },
mounted() { mounted() {
...@@ -32,6 +30,7 @@ export default { ...@@ -32,6 +30,7 @@ export default {
getEnterpriseOverviewTrend() { getEnterpriseOverviewTrend() {
this.api.operational.getEnterpriseOverviewTrend().then(res => { this.api.operational.getEnterpriseOverviewTrend().then(res => {
if (res.code == 0) { if (res.code == 0) {
console.log(res, '000000000');
this.dataList = res.data.dataList this.dataList = res.data.dataList
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!