Commit 0d71ce92 by 胡悦

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-pd into v1.0.0

2 parents 93efdf5c 45555074
......@@ -53,7 +53,8 @@ export default {
formatterName: {
type: String,
default: ''
}
},
formtUnit: String
},
data() {
......@@ -161,7 +162,7 @@ export default {
_html = `{a|¥${_purchaseamount}}\n{b|均价¥ ${_avarage}}`
break
case 'total':
_html = `${_this.formatterName}\n${_totalValue}`
_html = `${_this.formatterName}\n{c|${_totalValue}${_this.formtUnit || ''}}`
break
case 'none':
_html = ''
......@@ -179,6 +180,9 @@ export default {
color: '#ffffff66',
fontSize: '12px',
lineHeight: '28'
},
c: {
lineHeight: '20'
}
}
}
......
......@@ -104,7 +104,7 @@ export default {
.top {
justify-content: flex-end;
.now {
width: 10.97vw;
width: 11.2vw;
}
}
.icon {
......
......@@ -37,7 +37,8 @@ export default {
height: '15.34vh',
colors: ['#34AFFF', '#16E193', '#FFC200'],
formatter: 'total',
formatterName: '支付订单'
formatterName: '支付订单',
formtUnit: '单'
},
goodsPayLegend: [
{
......
......@@ -44,7 +44,8 @@ export default {
height: '15.34vh',
colors: ['#16E193', '#34AFFF'],
formatter: 'total',
formatterName: '总商品数'
formatterName: '总商品数',
formtUnit: '件'
},
propertionLegend: [
{
......
......@@ -3,7 +3,7 @@
-->
<template>
<div class="main-box">
<pie-chart class="pie-chart" :id="chart.id" :list="listData" :keys="chart.keys" :formatter="chart.formatter" :formatterName="chart.formatterName" :height="chart.height" :colors="chart.colors"></pie-chart>
<pie-chart class="pie-chart" :id="chart.id" :list="listData" :keys="chart.keys" :formatter="chart.formatter" :formatterName="chart.formatterName" :height="chart.height" :colors="chart.colors" :formtUnit="chart.formtUnit"></pie-chart>
<Legend class="legend" :list="listData" :legentList="legentList" :colors="legendColors"></Legend>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!