feat:对接景区接口

This commit is contained in:
zjc
2025-01-17 19:15:14 +08:00
parent fd8ede8a32
commit 8eb966fa14
29 changed files with 510 additions and 315 deletions

View File

@@ -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)'
},