From e1feb05e43487819f14321b1bf6077fa953ad3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=81=E5=8B=9D=20=E5=BC=B5?= Date: Mon, 25 Mar 2024 10:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=80=85=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BC=B8=E5=87=BAEXCEL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Manager/Manager_Violation.cshtml | 48 +++++++++- .../Manager/Single_violation_detail.cshtml | 94 +++++++++++++++++++ 2 files changed, 139 insertions(+), 3 deletions(-) diff --git a/Parking_spaces/Views/Manager/Manager_Violation.cshtml b/Parking_spaces/Views/Manager/Manager_Violation.cshtml index 2cff8cd..28786d4 100644 --- a/Parking_spaces/Views/Manager/Manager_Violation.cshtml +++ b/Parking_spaces/Views/Manager/Manager_Violation.cshtml @@ -20,7 +20,10 @@ - + @@ -176,10 +179,10 @@ var myBarChart = new Chart(ctx, { type: 'bar', data: { - labels: date.reverse(), + labels: date, datasets: [{ label: '違規數量', - data: values.reverse(), + data: values, backgroundColor: 'rgba(255, 0, 0, 0.5)', // 設定半透明的紅色背景 borderColor: 'rgba(255, 0, 0, 1)', // 設定不透明的紅色邊框 borderWidth: 1 @@ -360,6 +363,45 @@ + + diff --git a/Parking_spaces/Views/Manager/Single_violation_detail.cshtml b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml index 2c8b6e1..d8bde09 100644 --- a/Parking_spaces/Views/Manager/Single_violation_detail.cshtml +++ b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml @@ -12,7 +12,16 @@ 起始時間 : 結束時間 : + + + @@ -304,6 +313,91 @@ } + + + + + + +