From 1d57b03f20bddf43493a7c76f52b0aec12ca69ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=81=E5=8B=9D=20=E5=BC=B5?= Date: Sun, 4 Feb 2024 20:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=96=80=E5=8F=A3=E9=80=B2?= =?UTF-8?q?=E5=85=A5=E6=B5=81=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Engineering/Engineering_Index.cshtml | 215 +++++++++++++----- 1 file changed, 161 insertions(+), 54 deletions(-) diff --git a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml index c1087ea..48e0a84 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml @@ -84,7 +84,7 @@

工程模式

- + @@ -101,10 +101,10 @@
- +
- + @@ -184,6 +184,24 @@
+
+ +
+
+
+
每日車流量
+
+
+
+ +
+
+
+
+ +
+
+
@@ -201,35 +219,39 @@ @@ -281,9 +303,9 @@ var token_ckeck //= document.getElementById("token_ckeck_id").value var position //職位 function get_violation_data_1() { - console.log("start") + //console.log("start") //token_check = document.getElementById("token_check_id").value - console.log(token_check) + //console.log(token_check) $.ajax({ type: "GET", url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", @@ -301,7 +323,7 @@ if (Model.length > 0) { for (var i = 0; i < Model.length; i++) { var name = Model[i].parking_spaces_violation_name - //console.log(name) + ////console.log(name) $.ajax({ type: "GET", url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name, @@ -363,7 +385,7 @@ var timeDifference = endDate - startDate; var daysDifference = Math.floor(timeDifference / (1000 * 60 * 60 * 24));// 轉換為天數(毫秒 / 1000 / 60 / 60 / 24) - //console.log(daysDifference) + ////console.log(daysDifference) if (daysDifference > 6) { break } @@ -380,7 +402,7 @@ } } - console.log(date_list) + //console.log(date_list) set_violation_data_2(Model) } @@ -424,14 +446,14 @@ var timeDifference = endDate - startDate; var daysDifference = Math.floor(timeDifference / (1000 * 60 * 60 * 24));// 轉換為天數(毫秒 / 1000 / 60 / 60 / 24) - //console.log(daysDifference) + ////console.log(daysDifference) if (daysDifference > 6) { break } var D_1 = new Date(date); var MD = D_1.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit' }); var index = date_list.indexOf(MD); - //console.log(index) + ////console.log(index) violation_car_list[index] = violation_car_list[index] + 1 } @@ -450,6 +472,90 @@ + + + + +