Commit 753334c6550d4363b6c5e0d168dd0ee0fc8213dc
1 parent
4831b33d
进出场
Showing
1 changed file
with
5 additions
and
1 deletions
src/views/berthsection.vue
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | <totalsection :totalNum="totalVal"></totalsection> |
| 5 | 5 | <ul class="flexfm berth-wrap"> |
| 6 | 6 | <li class="pos-rel"> |
| 7 | - <halfPieChart></halfPieChart> | |
| 7 | + <halfPieChart :chart-data="pieChartData"></halfPieChart> | |
| 8 | 8 | <div class="pos-abs halfPieText"> |
| 9 | 9 | <p>78%</p> |
| 10 | 10 | <p>占有</p> |
| ... | ... | @@ -38,6 +38,10 @@ export default { |
| 38 | 38 | }, |
| 39 | 39 | data() { |
| 40 | 40 | return { |
| 41 | + pieChartData: { | |
| 42 | + yData: [100,200], | |
| 43 | + legendData: ['空余','占有'] | |
| 44 | + }, | |
| 41 | 45 | totalVal: '21973', |
| 42 | 46 | free: '454123', |
| 43 | 47 | nofree: '5125' | ... | ... |