|
@ -13,11 +13,14 @@ |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- <div class="module"> |
|
|
<div class="module"> |
|
|
<demo :rate="chartData.collectionSuccessOrderNum / chartData.collectionTotalOrder" :circleColor="'#46F2BC'"> |
|
|
<demo :rate="chartData.collectionSuccessOrderNum / chartData.collectionTotalOrder" :circleColor="'#46F2BC'"> |
|
|
<span class="slot-font1">{{Math.floor((chartData.collectionSuccessOrderNum / chartData.collectionTotalOrder) * 100)}}%</span> |
|
|
<span class="slot-font1" |
|
|
|
|
|
v-if="isNaN(Math.floor((chartData.collectionSuccessOrderNum / chartData.collectionTotalOrder) * 100)) != true">{{ Math.floor((chartData.collectionSuccessOrderNum |
|
|
|
|
|
/ chartData.collectionTotalOrder) * 100) }}%</span> |
|
|
|
|
|
<span class="slot-font1" v-else>0%</span> |
|
|
</demo> |
|
|
</demo> |
|
|
</div> --> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="pieCon1 center" id="myChart1" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="pieCon1 center" id="myChart1" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
|
|
|
|
|
@ -39,29 +42,33 @@ |
|
|
<span class="t2"> |
|
|
<span class="t2"> |
|
|
总金额: |
|
|
总金额: |
|
|
|
|
|
|
|
|
<span v-if="chartData.collectionAllPrice>=10000">{{ NumberDiv(chartData.collectionAllPrice,10000) }}</span> |
|
|
<span v-if="chartData.collectionAllPrice >= 10000">{{ NumberDiv(chartData.collectionAllPrice, 10000) }}</span> |
|
|
<span v-else>{{ chartData.collectionAllPrice }}</span> |
|
|
<span v-else>{{ chartData.collectionAllPrice }}</span> |
|
|
|
|
|
|
|
|
<span v-if="chartData.collectionAllPrice>=10000">万元</span> |
|
|
<span v-if="chartData.collectionAllPrice >= 10000">万元</span> |
|
|
<span v-else>元</span> |
|
|
<span v-else>元</span> |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="module"> |
|
|
<div class="module"> |
|
|
<demo :rate="chartData.collectionSuccessPrice / chartData.collectionAllPrice" :circleColor="'#FFD670'"> |
|
|
<demo :rate="chartData.collectionSuccessPrice / chartData.collectionAllPrice" :circleColor="'#FFD670'"> |
|
|
<span class="slot-font1">{{Math.floor((chartData.collectionSuccessPrice / chartData.collectionAllPrice) * 100)}}%</span> |
|
|
<span class="slot-font1" |
|
|
|
|
|
v-if="isNaN(Math.floor((chartData.collectionSuccessPrice / chartData.collectionAllPrice) * 100)) != true">{{ Math.floor((chartData.collectionSuccessPrice |
|
|
|
|
|
/ chartData.collectionAllPrice) * 100) }}%</span> |
|
|
|
|
|
<span class="slot-font1" v-else>0%</span> |
|
|
</demo> |
|
|
</demo> |
|
|
</div> --> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="pieCon1 center" id="myChart2" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="pieCon1 center" id="myChart2" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="center"> |
|
|
<div class="center"> |
|
|
<count-to :start-val="0" :end-val="chartData.collectionSuccessPrice/10000" :duration="3600" |
|
|
<count-to :start-val="0" :end-val="chartData.collectionSuccessPrice / 10000" :duration="3600" |
|
|
class="card-panel-num" v-if="chartData.collectionSuccessPrice>=10000" :decimals="2" /> |
|
|
class="card-panel-num" v-if="chartData.collectionSuccessPrice >= 10000" :decimals="2" /> |
|
|
<count-to :start-val="0" :end-val="chartData.collectionSuccessPrice" :duration="3600" |
|
|
<count-to :start-val="0" :end-val="chartData.collectionSuccessPrice" :duration="3600" class="card-panel-num" |
|
|
class="card-panel-num" v-else :decimals="2" /> |
|
|
v-else :decimals="2" /> |
|
|
|
|
|
|
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-if="chartData.collectionSuccessPrice>=10000">万元</span> |
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" |
|
|
|
|
|
v-if="chartData.collectionSuccessPrice >= 10000">万元</span> |
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-else>元</span> |
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-else>元</span> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
@ -78,6 +85,18 @@ |
|
|
总订单:{{ chartData.paymentTotalOrder }}笔 |
|
|
总订单:{{ chartData.paymentTotalOrder }}笔 |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="module"> |
|
|
|
|
|
<demo :rate="chartData.paymentSuccessOrderNum / chartData.paymentTotalOrder" :circleColor="'#FF939D'"> |
|
|
|
|
|
<span class="slot-font1" |
|
|
|
|
|
v-if="isNaN(Math.floor((chartData.paymentSuccessOrderNum / chartData.paymentTotalOrder) * 100)) != true">{{ |
|
|
|
|
|
Math.floor((chartData.paymentSuccessOrderNum / chartData.paymentTotalOrder) * 100) }}%</span> |
|
|
|
|
|
<span class="slot-font1" v-else>0%</span> |
|
|
|
|
|
|
|
|
|
|
|
</demo> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="pieCon1 center" id="myChart3" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="pieCon1 center" id="myChart3" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="center"> |
|
|
<div class="center"> |
|
|
<count-to :start-val="0" :end-val="chartData.paymentSuccessOrderNum" :duration="3600" class="card-panel-num" /> |
|
|
<count-to :start-val="0" :end-val="chartData.paymentSuccessOrderNum" :duration="3600" class="card-panel-num" /> |
|
@ -95,22 +114,32 @@ |
|
|
</span> |
|
|
</span> |
|
|
<span class="t2"> |
|
|
<span class="t2"> |
|
|
总金额: |
|
|
总金额: |
|
|
<span v-if="chartData.paymentAllPrice>=10000">{{ NumberDiv(chartData.paymentAllPrice,10000) }}</span> |
|
|
<span v-if="chartData.paymentAllPrice >= 10000">{{ NumberDiv(chartData.paymentAllPrice, 10000) }}</span> |
|
|
<span v-else>{{ chartData.paymentAllPrice }}</span> |
|
|
<span v-else>{{ chartData.paymentAllPrice }}</span> |
|
|
|
|
|
|
|
|
<span v-if="chartData.paymentAllPrice>=10000">万元</span> |
|
|
<span v-if="chartData.paymentAllPrice >= 10000">万元</span> |
|
|
<span v-else>元</span> |
|
|
<span v-else>元</span> |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="module"> |
|
|
|
|
|
<demo :rate="chartData.paymentSuccessPrice / chartData.paymentAllPrice" :circleColor="'#FFD670'"> |
|
|
|
|
|
<span class="slot-font1" |
|
|
|
|
|
v-if="isNaN(Math.floor((chartData.paymentSuccessPrice / chartData.paymentAllPrice) * 100)) != true">{{ |
|
|
|
|
|
Math.floor((chartData.paymentSuccessPrice / chartData.paymentAllPrice) * 100) }}%</span> |
|
|
|
|
|
<span class="slot-font1" v-else>0%</span> |
|
|
|
|
|
</demo> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="pieCon1 center" id="myChart4" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="pieCon1 center" id="myChart4" style="width:150px;height:150px;margin-bottom: 15px;"></div> |
|
|
<div class="center"> |
|
|
<div class="center"> |
|
|
|
|
|
|
|
|
<count-to :start-val="0" :end-val="chartData.paymentSuccessPrice/10000" :duration="3600" |
|
|
<count-to :start-val="0" :end-val="chartData.paymentSuccessPrice / 10000" :duration="3600" class="card-panel-num" |
|
|
class="card-panel-num" v-if="chartData.paymentSuccessPrice>=10000" :decimals="2" /> |
|
|
v-if="chartData.paymentSuccessPrice >= 10000" :decimals="2" /> |
|
|
<count-to :start-val="0" :end-val="chartData.paymentSuccessPrice" :duration="3600" |
|
|
<count-to :start-val="0" :end-val="chartData.paymentSuccessPrice" :duration="3600" class="card-panel-num" v-else |
|
|
class="card-panel-num" v-else :decimals="2" /> |
|
|
:decimals="2" /> |
|
|
|
|
|
|
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-if="chartData.paymentSuccessPrice>=10000">万元</span> |
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-if="chartData.paymentSuccessPrice >= 10000">万元</span> |
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-else>元</span> |
|
|
<span style="font-size:14px;color:rgba(125, 140, 161, 1)" v-else>元</span> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
@ -205,11 +234,9 @@ export default { |
|
|
let title; |
|
|
let title; |
|
|
if (this.chartData.collectionSuccessOrderNum) { |
|
|
if (this.chartData.collectionSuccessOrderNum) { |
|
|
title = Math.floor((this.chartData.collectionSuccessOrderNum / this.chartData.collectionTotalOrder) * 100) + '%' |
|
|
title = Math.floor((this.chartData.collectionSuccessOrderNum / this.chartData.collectionTotalOrder) * 100) + '%' |
|
|
console.log(Math.floor((this.chartData.collectionSuccessOrderNum / this.chartData.collectionTotalOrder) * 100)) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
title = 0 + '%' |
|
|
title = 0 + '%' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.myChart = echarts.init(document.getElementById('myChart1')) |
|
|
this.myChart = echarts.init(document.getElementById('myChart1')) |
|
|
this.myChart.setOption({ |
|
|
this.myChart.setOption({ |
|
|
title: { |
|
|
title: { |
|
@ -300,34 +327,6 @@ export default { |
|
|
barGap: '-100%', // 两环重叠 |
|
|
barGap: '-100%', // 两环重叠 |
|
|
z: 2, |
|
|
z: 2, |
|
|
}, |
|
|
}, |
|
|
// { |
|
|
|
|
|
// type: 'bar', |
|
|
|
|
|
// silent: 'true', |
|
|
|
|
|
// data: [ |
|
|
|
|
|
// { |
|
|
|
|
|
// name: '', |
|
|
|
|
|
// value: Math.floor((this.chartData.collectionSuccessOrderNum / this.chartData.collectionTotalOrder) * 100), |
|
|
|
|
|
// itemStyle: { |
|
|
|
|
|
// normal: { |
|
|
|
|
|
// color: { |
|
|
|
|
|
// // 完成的圆环的颜色 |
|
|
|
|
|
// colorStops: [ |
|
|
|
|
|
// { |
|
|
|
|
|
// offset: 1, |
|
|
|
|
|
// color: "red" // 0% 处的颜色 |
|
|
|
|
|
// }, |
|
|
|
|
|
// ] |
|
|
|
|
|
// }, |
|
|
|
|
|
// }, |
|
|
|
|
|
// }, |
|
|
|
|
|
// }, |
|
|
|
|
|
// ], |
|
|
|
|
|
// coordinateSystem: 'polar', |
|
|
|
|
|
// roundCap: true, |
|
|
|
|
|
// barWidth: 1, |
|
|
|
|
|
// barGap: '-100%', // 两环重叠 |
|
|
|
|
|
// z: 3, |
|
|
|
|
|
// }, |
|
|
|
|
|
{ // 灰色环 |
|
|
{ // 灰色环 |
|
|
type: 'bar', |
|
|
type: 'bar', |
|
|
silent: 'true', |
|
|
silent: 'true', |
|
@ -702,27 +701,29 @@ export default { |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
|
|
|
.page-box { |
|
|
.page-box { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
overflow: auto; |
|
|
overflow: auto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.main-box { |
|
|
.main-box { |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.module { |
|
|
.module { |
|
|
width: 100%; |
|
|
/* width: 100%; |
|
|
height: 100%; |
|
|
height: 100%; */ |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
padding: 20px; |
|
|
padding: 20px; |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
left: 135px; |
|
|
left: 118px; |
|
|
z-index: 9999; |
|
|
z-index: 99; |
|
|
top: 67px; |
|
|
top: 69px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slot-bg { |
|
|
.slot-bg { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
@ -732,11 +733,13 @@ export default { |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
background: #fbedea; |
|
|
background: #fbedea; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slot-font1 { |
|
|
.slot-font1 { |
|
|
color: #333; |
|
|
color: #333; |
|
|
font-size: 20px; |
|
|
font-size: 20px; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.slot-font2 { |
|
|
.slot-font2 { |
|
|
color: #e45638; |
|
|
color: #e45638; |
|
|
font-size: 20px; |
|
|
font-size: 20px; |
|
@ -770,5 +773,4 @@ export default { |
|
|
font-family: PingFang TC; |
|
|
font-family: PingFang TC; |
|
|
font-size: 13px; |
|
|
font-size: 13px; |
|
|
font-weight: 400; |
|
|
font-weight: 400; |
|
|
} |
|
|
}</style> |
|
|
</style> |
|
|
|