feat:对接景区接口
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
return props.list.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
value: item.occupiedPercentage,
|
||||
itemStyle: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
@@ -60,6 +61,7 @@
|
||||
return props.list.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
value: item.occupiedPercentage,
|
||||
itemStyle: {
|
||||
color: '#fff',
|
||||
opacity: 1
|
||||
@@ -68,7 +70,7 @@
|
||||
})
|
||||
}
|
||||
const getYAxisData = () => {
|
||||
return props.list.map((item) => item.value)
|
||||
return props.list.map((item) => item.occupied)
|
||||
}
|
||||
const init = () => {
|
||||
if (!params) {
|
||||
@@ -148,7 +150,7 @@
|
||||
type: 'bar',
|
||||
barWidth: fitChartSize(8),
|
||||
showBackground: true,
|
||||
barBorderRadius: [0, 0, 0, 0],
|
||||
borderRadius: [0, 0, 0, 0],
|
||||
backgroundStyle: {
|
||||
color: 'rgba(0, 150, 255, 0.15)'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user