|
@@ -672,7 +672,8 @@ export default defineComponent({
|
|
const ulres = await api.GetUtilizationList();
|
|
const ulres = await api.GetUtilizationList();
|
|
if (ulres.code === 2000) {
|
|
if (ulres.code === 2000) {
|
|
//clos
|
|
//clos
|
|
- updateMonthlyUtilizationChart(ulres.data.monthly_utilization)
|
|
|
|
|
|
+ console.log("ulres:::", ulres)
|
|
|
|
+ updateMonthlyUtilizationChart(ulres.data.trends)
|
|
}
|
|
}
|
|
const btres = await api.GetBorrowTrends();
|
|
const btres = await api.GetBorrowTrends();
|
|
if (btres.code === 2000) {
|
|
if (btres.code === 2000) {
|
|
@@ -865,7 +866,7 @@ export default defineComponent({
|
|
const option = {
|
|
const option = {
|
|
xAxis: {
|
|
xAxis: {
|
|
type: 'category',
|
|
type: 'category',
|
|
- data: monthlyData.map(item => item.month),
|
|
|
|
|
|
+ data: monthlyData.map(item => item.date),
|
|
axisLabel: { color: '#fff' }
|
|
axisLabel: { color: '#fff' }
|
|
},
|
|
},
|
|
yAxis: {
|
|
yAxis: {
|
|
@@ -876,7 +877,8 @@ export default defineComponent({
|
|
{
|
|
{
|
|
name: '月度利用率',
|
|
name: '月度利用率',
|
|
type: 'line', // 或 'bar',看你想要什么样的图
|
|
type: 'line', // 或 'bar',看你想要什么样的图
|
|
- data: monthlyData.map(item => item.rate),
|
|
|
|
|
|
+ data: monthlyData.map(item => item.utilization_rate),
|
|
|
|
+ smooth: true,
|
|
itemStyle: { color: '#91cc75' }
|
|
itemStyle: { color: '#91cc75' }
|
|
}
|
|
}
|
|
],
|
|
],
|