Commit 39910d7b by 匡雅琴

样式调整

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