422
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
return props.list.map((item) => {
|
return props.list.map((item) => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
value: parseInt((item.occupiedSpaces/item.total)*100),
|
value: item.occupiedPercentage,
|
||||||
total: item.total,
|
total: item.total,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: {
|
color: {
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
return props.list.map((item) => {
|
return props.list.map((item) => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
value: parseInt((item.occupiedSpaces/item.total)*100),
|
value: item.occupiedPercentage,
|
||||||
total: item.total,
|
total: item.total,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
|||||||
Reference in New Issue
Block a user