Commit c5707b79 by 匡雅琴

2.1页面添加

1 parent 0b4e84b4
......@@ -37,10 +37,10 @@ export default {
<style lang="scss" scoped>
.overview-box {
// width: 100%;
height: 59.78vh;
height: 51.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.tab-main-box {
margin-top: 1.78vh;
// margin-top: 1.78vh;
/deep/.tab-item-box {
margin: 0 auto;
}
......
......@@ -11,6 +11,7 @@
<el-progress class="conversion-progress" :percentage="Number(conversionRate.value)" :stroke-width="18"></el-progress>
</template>
</StatisticsBox>
<MerchantStatistic :dataList="merchantDataList" class="bottom-class"></MerchantStatistic>
<ProductionTrend ref="productionTrend" class="bottom-class" :dataList="dataList"></ProductionTrend>
<OrderTrends ref="orderTrends" :dataList="dataList"></OrderTrends>
</div>
......@@ -19,11 +20,13 @@
<script>
import ProductionTrend from './components/ProductionTrend.vue'
import OrderTrends from './components/OrderTrends.vue'
import MerchantStatistic from './components/MerchantStatistic.vue'
export default {
name: 'EquityLeft',
components: {
ProductionTrend,
OrderTrends
OrderTrends,
MerchantStatistic
},
data() {
return {
......@@ -79,7 +82,17 @@ export default {
],
dataList: [],
area: '',
month: ''
month: '',
merchantDataList: [
{
name: '在营门店数',
val: 2002
},
{
name: '停业门店',
val: 2002
}
]
}
},
watch: {
......
<template>
<div class="pie-box">
<div>
<div class="pie-box">
<TotalBill :totalBillData="numProportion" :totalNum="totalNum"></TotalBill>
<TotalMerchant :totalMerchantData="merProportion" :totalMerchant="totalMerchant"></TotalMerchant>
</div>
<div class="pie-box">
<ActiveMerchant :activeMerchantData="activeMerchantData" :totalActiveMerchant="totalActiveMerchant"></ActiveMerchant>
<InactiveMerchant :inactiveMerchantData="inactiveMerchantData" :totalInactiveMerchant="totalInactiveMerchant"></InactiveMerchant>
</div>
</div>
</template>
<script>
import TotalBill from './components/TotalBill.vue'
import TotalMerchant from './components/TotalMerchant.vue'
import ActiveMerchant from './components/ActiveMerchant.vue'
import InactiveMerchant from './components/InactiveMerchant.vue'
export default {
name: 'EquityTop',
components: {
TotalBill,
TotalMerchant
TotalMerchant,
ActiveMerchant,
InactiveMerchant
},
data() {
return {
totalNum: 0,
totalMerchant: 0,
totalActiveMerchant: 0,
totalInactiveMerchant: 0,
merProportion: [],
numProportion: [],
activeMerchantData: [],
inactiveMerchantData: [],
month: ''
}
},
......@@ -55,5 +69,6 @@ export default {
.pie-box {
display: flex;
justify-content: space-between;
margin-bottom: 1.78vh;
}
</style>
......@@ -2,8 +2,6 @@
<div class="content">
<EquityLeft></EquityLeft>
<EquityRight></EquityRight>
<EquityRight></EquityRight>
<EquityRight></EquityRight>
</div>
</template>
......@@ -11,7 +9,7 @@
import EquityLeft from './EquityLeft.vue'
import EquityRight from './EquityRight.vue'
export default {
name: 'Resident',
name: 'ExtendWarranty',
components: {
EquityLeft,
EquityRight
......
<template>
<div>
<EquityTop></EquityTop>
<EquityBottom class="top-class"></EquityBottom>
<EquityBottom></EquityBottom>
</div>
</template>
......@@ -25,7 +25,4 @@ export default {
</script>
<style lang="scss" scoped>
.top-class {
margin-top: 1.78vh;
}
</style>
<template>
<div>
<div class="bill-total-box">
<box-title title="在营门店数"></box-title>
<div v-if="activeMerchantData.length" class="content-box">
<div class="text-box">
<div class="text">在营门店数</div>
<div class="number-text">{{ numAddSymbol(totalNum) }}</div>
</div>
<RightViewContent :chart="activeMerchantChart" :listData="activeMerchantData" :legentList="activeMerchantLegend" :legendColors="activeMerchantChart.colors"></RightViewContent>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
import RightViewContent from '../../solar/RightViewContent.vue'
export default {
name: 'ActiveMerchant',
components: {
RightViewContent
},
props: {
activeMerchantData: {
type: Array,
default: () => []
},
totalActiveMerchant: Number
},
data() {
return {
activeMerchantChart: {
id: 'activeMerchant',
keys: ['name', 'num'],
height: '6vh',
colors: ['#FF7D5E', '#69EE9F'],
formatter: 'none'
},
activeMerchantLegend: [
{
name: 'name',
width: '7vw'
},
{
name: 'num',
type: 'number',
width: '5vw'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 1.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
.text {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.number-text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.empty {
height: 8vh;
display: flex;
align-items: center;
}
}
</style>
<template>
<div>
<div class="bill-total-box">
<box-title title="停业门店数"></box-title>
<div v-if="inactiveMerchantData.length" class="content-box">
<div class="text-box">
<div class="text">停业门店数</div>
<div class="number-text">{{ numAddSymbol(inactiveMerchant) }}</div>
</div>
<RightViewContent :chart="inactiveMerchantChart" :listData="inactiveMerchantData" :legentList="inactiveMerchantLegend" :legendColors="inactiveMerchantChart.colors"></RightViewContent>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
import RightViewContent from '../../solar/RightViewContent.vue'
export default {
name: 'InactiveMerchant',
components: {
RightViewContent
},
props: {
inactiveMerchantData: {
type: Array,
default: () => []
},
totalInactiveMerchant: Number
},
data() {
return {
inactiveMerchantChart: {
id: 'inactiveMerchant',
keys: ['name', 'num'],
height: '6vh',
colors: ['#EBA3FF', '#726BFF'],
formatter: 'none'
},
inactiveMerchantLegend: [
{
name: 'name',
width: '7vw'
},
{
name: 'num',
type: 'number',
width: '5vw'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 1.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
.text {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.number-text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.empty {
height: 8vh;
display: flex;
align-items: center;
}
}
</style>
<template>
<div class="main-box">
<div v-for="(item, index) in dataList" :key="index" class="statistic-box" :style="{ width: 100 / dataList.length + '%' }">
<div class="title">{{ item.name }}</div>
<div class="text">{{ item.val }}</div>
</div>
</div>
</template>
<script>
export default {
name: 'MerchantStatistic',
props: {
dataList: {
type: Array,
default: () => []
}
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.main-box {
display: flex;
}
.statistic-box {
box-shadow: inset 0 0 20px 0 #3d57ff69;
padding: 1.89vh 0.89vw;
margin-right: 1.11vw;
display: flex;
justify-content: space-between;
align-items: center;
&:last-child {
margin-right: 0;
}
.title {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
</style>
<template>
<div class="trend-box">
<box-title title="订单趋势"></box-title>
<BarLineCharts ref="orderTrendsRef" height="29vh" domId="orderTrends" :dataList.sync="dataList" valName="orderNum"></BarLineCharts>
<BarLineCharts ref="orderTrendsRef" height="25vh" domId="orderTrends" :dataList.sync="dataList" valName="orderNum"></BarLineCharts>
</div>
</template>
......@@ -33,7 +33,7 @@ export default {
<style lang="scss" scoped>
.trend-box {
width: 64.17vw;
height: 34.22vh;
height: 29.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
</style>
<template>
<div class="trend-box">
<box-title title="产值趋势"></box-title>
<BarLineCharts ref="productionTrendsRef" height="29vh" domId="productionTrend" :dataList.sync="dataList" valName="outputvalue"></BarLineCharts>
<BarLineCharts ref="productionTrendsRef" height="25vh" domId="productionTrend" :dataList.sync="dataList" valName="outputvalue"></BarLineCharts>
</div>
</template>
......@@ -35,7 +35,7 @@ export default {
<style lang="scss" scoped>
.trend-box {
width: 64.17vw;
height: 34.22vh;
height: 29.56vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
</style>
......@@ -35,7 +35,7 @@ export default {
totalBillChart: {
id: 'totalBill',
keys: ['name', 'num'],
height: '15vh',
height: '6vh',
colors: ['#FF7D5E', '#69EE9F'],
formatter: 'none'
},
......@@ -62,11 +62,11 @@ export default {
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 21.78vh;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 3.03vh 0 0 2.92vw;
padding: 1.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
.text {
......@@ -85,7 +85,7 @@ export default {
}
}
.empty {
height: 18.45vh;
height: 8vh;
display: flex;
align-items: center;
}
......
......@@ -40,7 +40,7 @@ export default {
totalMerchantChart: {
id: 'totalMerchant',
keys: ['name', 'num'],
height: '15.34vh',
height: '6vh',
colors: ['#EBA3FF', '#726BFF'],
formatter: 'none'
},
......@@ -67,11 +67,11 @@ export default {
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 21.78vh;
height: 13vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 3.03vh 0 0 2.92vw;
padding: 1.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
.text {
......@@ -90,7 +90,7 @@ export default {
}
}
.empty {
height: 18.45vh;
height: 8vh;
display: flex;
align-items: center;
}
......
......@@ -27,6 +27,6 @@ export default {
<style lang="scss" scoped>
.detail-box {
display: flex;
height: 41vh;
height: 35vh;
}
</style>
......@@ -98,9 +98,16 @@ export default {
overflow: visible;
white-space: nowrap;
margin-top: 0;
margin-bottom: 2.67vh;
margin-bottom: 2.3vh;
background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079ff1 100%);
padding-left: 0.83vw;
}
.rank-content {
.rank-box {
/deep/.ranking-box-item {
padding-bottom: 0.44vh;
}
}
}
}
</style>
......@@ -15,7 +15,7 @@
<template v-if="tabActive == 0">
<Resident></Resident>
</template>
<template v-if="tabActive == 1">
<template v-else-if="tabActive == 1">
<ExtendWarranty></ExtendWarranty>
</template>
<template v-else>
......@@ -28,18 +28,18 @@
import Resident from '../../equity/Resident.vue'
import Wholesale from '../../equity/Wholesale.vue'
import RightTab from '../../equity/components/RightTab.vue'
import ExtendWarranty from '../../equity/components/ExtendWarranty.vue'
import ExtendWarranty from '../../equity/ExtendWarranty.vue'
export default {
name: 'ViewEquity',
components: {
ExtendWarranty,
Resident,
Wholesale,
RightTab,
ExtendWarranty
RightTab
},
data() {
return {
tabList: ['驻店零售权益', '批发销售权益'],
tabList: ['驻店零售权益', '延保权益', '批发销售权益'],
tabActive: 0
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!