Commit 9912c480 by 匡雅琴

接口联调

1 parent 2e8c8fb3
<template>
<div class="storage-box">
<box-title title="入库使用情况"></box-title>
<pie-chart :id="chart.id" :list="listData" :height="chart.height" :colors="chart.colors"></pie-chart>
<pie-chart :id="chart.id" :keys="chart.keys" :list="listData" :height="chart.height" :colors="chart.colors"></pie-chart>
<Legend class="legend" :list="listData" :legentList="legentList" :colors="chart.colors"></Legend>
</div>
</template>
......@@ -15,19 +15,21 @@ export default {
return {
chart: {
id: 'shadowPie',
keys: ['isused', 'num'],
height: '17.7vh',
colors: ['#34AFFF', '#16E193']
},
listData: [],
legentList: [
{
name: 'name'
name: 'isused'
},
{
name: 'per'
name: 'rate',
type: 'decimal'
},
{
name: 'value'
name: 'num'
}
]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!