Commit c5707b79 by 匡雅琴

2.1页面添加

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