Commit e1ea3ba4 by 王志慧

commit-wzh

1 parent 14a1ec47
......@@ -36,7 +36,7 @@ export default {
},
colors: {
type: Array,
default: () => ['#4FA0FF', '#7CFFB2', '#FDF006', '#EB6001', '#F5AA01', '#BF98FF', '#58D9F9']
default: () => ['#4FA0FF', '#FF6E76', '#7CFFB2','#FDF006','#EB6001','#F5AA01','#BF98FF','#4FA0FF']
}
},
......
......@@ -43,20 +43,23 @@ export default {
background: #262525;
.ranking-title {
background: rgba(53, 53, 53, 0.6);
font-size: 10px;
font-size: 0.694vw;
color: #eb6001;
font-weight: 400;
padding: 0.4vh 0 0.4vh 20%;
box-sizing: border-box;
}
.ranking {
font-size: 10px;
font-size: 0.694vw;
color: #ffffff;
letter-spacing: 0;
font-weight: 400;
padding:0.1vh 0 0.4vh 8px;
padding: 0.2vh 0 0.3vh 8px;
.brand {
line-height: 1.9vh;
// line-height: 1.9vh;
height: 1.9vh;
display:flex;
align-items: center;
.brand-num {
color: #606266;
margin-right: 0.6vw;
......@@ -64,6 +67,7 @@ export default {
.marquee {
width: 80%;
height: 1.9vh;
font-weight: 400;
}
}
}
......
......@@ -11,7 +11,7 @@ export default {
},
mixins: [changeMixin],
created() {
this.getClientData()
// this.getClientData()
},
methods: {
getClientData() {
......@@ -22,7 +22,7 @@ export default {
queryItem: this.type,
// queryTime: this.getCurrentDate,
queryTime: '2022-06-23',
queryType: this.watchReportParams.reportType
// queryType: this.watchReportParams.reportType
}
}
if (this.isBrand) params.req.brandName = this.brandName
......
......@@ -11,7 +11,7 @@ export default {
},
mixins: [changeMixin],
created() {
this.getSalesData()
// this.getSalesData()
},
methods: {
getSalesData() {
......
......@@ -9,12 +9,12 @@
<div>
<div class="title">售后客户价值分析</div>
<template v-if="barData.length > 0">
<div class="analyze-content" :style="{ height: height - 4.9 + 'vh' }">
<div class="analyze-content" :style="{ height: height - 5 + 'vh'}">
<div class="content-left bg">
<div id="analyzeBar" style="height: 100%"></div>
</div>
<div class="contetn-right bg">
<pie-chart :id="chart.id" :list="analyzeData" :height="height - 4.9 + 'vh'" :radius="chart.radius"></pie-chart>
<pie-chart :id="chart.id" :list="analyzeData" :height="height - 5 + 'vh'" :radius="chart.radius"></pie-chart>
</div>
</div>
</template>
......@@ -186,6 +186,9 @@ export default {
</script>
<style lang="scss" scoped>
.title{
padding:1vh 0.556vw;
}
.analyze-content {
display: flex;
padding: 0 8px 1.8vh;
......
......@@ -9,15 +9,15 @@
<div>
<div class="title">售后车辆里程</div>
<template v-if="mileageData.length > 0">
<div class="flex">
<pie-chart :id="chart.id" :list="mileageData" :height="height - 4.9 + 'vh'" :radius="chart.radius" @pieAction="pieAction"></pie-chart>
<div class="flex container">
<pie-chart :id="chart.id" :list="mileageData" :height="height - 5 + 'vh'" :radius="chart.radius" @pieAction="pieAction"></pie-chart>
<div class="ranking-container">
<div class="ranking-title">
<div class="ranking-title-brand">品牌</div>
<div>客户数</div>
</div>
<div class="ranking">
<div class="brand flex" v-for="(item, index) in rankingData" :key="index">
<div class="brand flex" v-for="(item, index) in rankingData.slice(0,5)" :key="index">
<span class="brand-num">{{ index + 1 }}</span>
<marquee class="marquee" :direction="directionTimer" :delay="delayTimer" :text="item.brand" />
<span>{{ item.value }}</span>
......@@ -108,6 +108,9 @@ export default {
}
</script>
<style lang="scss" scoped>
.title{
padding:1vh 0.556vw;
}
.ranking-container {
flex: 1;
margin-left: 0.6vw;
......@@ -117,20 +120,23 @@ export default {
background: #262525;
.ranking-title {
padding: 0.5vh 1.5vw 0.4vh 1.5vw;
font-size: 12px;
font-size: 0.833vw;
color: #eb6001;
letter-spacing: 0;
font-weight: 400;
background: rgba(53, 53, 53, 0.6);
display: flex;
align-items: center;
div{
white-space: nowrap;
}
.ranking-title-brand {
width: 4.9vw;
margin-right: 0.6vw;
}
}
.ranking {
font-size: 10px;
font-size: 0.694vw;
color: #ffffff;
letter-spacing: 0;
font-weight: 400;
......
......@@ -13,7 +13,7 @@
</div>
<div class="flex container">
<template v-if="salesData.length > 0">
<pie-chart :id="chart.id" :list="salesData" @pieAction="pieAction"></pie-chart>
<pie-chart :id="chart.id" :list="salesData" :colors="chart.colors" @pieAction="pieAction"></pie-chart>
<ran-king :list="brandList"></ran-king>
</template>
<div class="empty" style="height: 12.7vh" v-else>
......@@ -32,7 +32,8 @@ export default {
return {
type: 'entertype',
chart: {
id: 'enterCategory-pie'
id: 'enterCategory-pie',
colors: ['#F5AA01', '#FF6E76', '#4FA0FF']
}
}
},
......
......@@ -32,7 +32,7 @@ export default {
return {
type: 'infosource',
chart: {
id: 'infoFrom-pie'
id: 'infoFrom-pie',
}
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!