yangg 1 روز پیش
والد
کامیت
0f8c561ef4
1فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 5 3
      src/views/system/home/index.vue

+ 5 - 3
src/views/system/home/index.vue

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