From fae5651f1418cae593f0a8f4a50140bbc054d54a Mon Sep 17 00:00:00 2001 From: qi_0527 Date: Mon, 18 Nov 2024 16:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=87=BA=E5=8E=BB=E5=8A=A0?= =?UTF-8?q?=E6=94=B9Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Park_spacesController.cs | 2 +- Parking_spaces/Properties/launchSettings.json | 2 +- .../Views/Engineering/Engineering_CAM.cshtml | 20 +- .../Engineering/Engineering_CAM_detail.cshtml | 54 +-- .../Engineering/Engineering_EL125_car.cshtml | 12 +- .../Engineering/Engineering_Index.cshtml | 205 +++++----- .../Engineering/Engineering_Index_.cshtml | 12 +- .../Engineering/Engineering_Interview.cshtml | 34 +- .../Views/Engineering/Engineering_LED.cshtml | 8 +- .../Engineering/Engineering_LED_detail.cshtml | 16 +- .../Views/Engineering/Engineering_RTSP.cshtml | 12 +- .../Engineering/Engineering_Violation.cshtml | 14 +- ...Engineering_parking_user_list_index.cshtml | 16 +- .../Engineering_total_table.cshtml | 18 +- .../Views/Engineering/Map_RTSP.cshtml | 20 +- .../Views/Engineering/ParkingLog.cshtml | 12 +- .../Single_violation_detail.cshtml | 24 +- .../Views/Engineering/Yuntech_in_car.cshtml | 374 ++++++++++++------ Parking_spaces/Views/Home/Login.cshtml | 2 +- .../Views/Manager/Manager_Index.cshtml | 180 ++++----- .../Views/Manager/Manager_Violation.cshtml | 14 +- .../Manager_parking_user_list_index.cshtml | 16 +- Parking_spaces/Views/Manager/Map_RTSP.cshtml | 20 +- .../Views/Manager/ParkingLog.cshtml | 70 ++-- .../Manager/Single_violation_detail.cshtml | 24 +- .../Views/Manager/Yuntech_in_car.cshtml | 364 +++++++++++------ .../Park_spaces/Parking_spaces_history.cshtml | 10 +- .../Parking_spaces_total_table.cshtml | 18 +- .../Single_parking_spaces_detail.cshtml | 12 +- .../Single_parking_spaces_map.cshtml | 2 +- .../Views/Shared/_Layout_Engineering.cshtml | 4 +- .../Views/Shared/_Layout_Manager.cshtml | 4 +- 32 files changed, 909 insertions(+), 686 deletions(-) diff --git a/Parking_spaces/Controllers/Park_spacesController.cs b/Parking_spaces/Controllers/Park_spacesController.cs index 03c4547..783f9e9 100644 --- a/Parking_spaces/Controllers/Park_spacesController.cs +++ b/Parking_spaces/Controllers/Park_spacesController.cs @@ -29,7 +29,7 @@ namespace Parking_spaces.Controllers _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token); // 构建 API 请求的 URL - string apiUrl = "http://140.125.20.183:7700/Users/token"; + string apiUrl = "http://localhost:7700/Users/token"; // 调用需要身份验证的 API HttpResponseMessage response = await _httpClient.GetAsync(apiUrl); diff --git a/Parking_spaces/Properties/launchSettings.json b/Parking_spaces/Properties/launchSettings.json index d8f93b8..f039097 100644 --- a/Parking_spaces/Properties/launchSettings.json +++ b/Parking_spaces/Properties/launchSettings.json @@ -3,7 +3,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://140.125.20.183:2361", + "applicationUrl": "http://localhost:2361", "sslPort": 44352 } }, diff --git a/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml b/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml index aa45f10..1c31898 100644 --- a/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml @@ -83,7 +83,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam", + url: "http://localhost:7700/api/Parking_spaces_cam", data: {}, headers: { 'Authorization': token @@ -105,7 +105,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", + url: "http://localhost:7700/api/Parking_spaces_total_table", data: {}, headers: { 'Authorization': token @@ -127,7 +127,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", + url: "http://localhost:7700/api/Parking_spaces_violation_total_table", data: {}, headers: { 'Authorization': token @@ -238,7 +238,7 @@ var stringify_obj = JSON.stringify(obj); $.ajax({ type: "Post", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam", + url: "http://localhost:7700/api/Parking_spaces_cam", //data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" }, data: stringify_obj, contentType: "application/json", @@ -292,7 +292,7 @@ var stringify_obj = JSON.stringify(obj); $.ajax({ type: "Post", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass", + url: "http://localhost:7700/api/Parking_spaces_roi_pass", //data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" }, data: stringify_obj, contentType: "application/json", @@ -350,7 +350,7 @@ var stringify_obj = JSON.stringify(obj); $.ajax({ type: "Post", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_pass", + url: "http://localhost:7700/api/Parking_spaces_cam_ptz_pass", //data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" }, data: stringify_obj, contentType: "application/json", @@ -383,7 +383,7 @@ var stringify_obj = JSON.stringify(obj); $.ajax({ type: "Post", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_violation", + url: "http://localhost:7700/api/Parking_spaces_cam_ptz_violation", //data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" }, data: stringify_obj, contentType: "application/json", @@ -431,7 +431,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token_check', + url: 'http://localhost:7700/Users/token_check', headers: { 'Authorization': token }, @@ -455,7 +455,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token-' + token, + url: 'http://localhost:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -471,7 +471,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/user_id-' + id, + url: 'http://localhost:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Engineering/Engineering_CAM_detail.cshtml b/Parking_spaces/Views/Engineering/Engineering_CAM_detail.cshtml index 0eed205..7072f53 100644 --- a/Parking_spaces/Views/Engineering/Engineering_CAM_detail.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_CAM_detail.cshtml @@ -97,7 +97,7 @@ console.log(parking_spaces_name) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_cam/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -123,7 +123,7 @@ if (mode == "pass") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_pass/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_cam_ptz_pass/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -144,7 +144,7 @@ if (mode == "car_num_check") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -166,7 +166,7 @@ if (mode == "violation") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_cam_ptz_violation/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -193,7 +193,7 @@ if (mode == "pass") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -208,7 +208,7 @@ if (mode == "car_num_check") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -223,7 +223,7 @@ if (mode == "violation") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -371,7 +371,7 @@ serial_num_choose = serial_num $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -568,7 +568,7 @@ if (mode == "pass") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -590,7 +590,7 @@ if (mode == "car_num_check") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -614,7 +614,7 @@ console.log('violation') $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -646,7 +646,7 @@ console.log(stringify_obj) $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, data: stringify_obj, contentType: "application/json", @@ -671,7 +671,7 @@ $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name + "-serial_num-" + serial_num_choose.toString(), + url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name + "-serial_num-" + serial_num_choose.toString(), data: stringify_obj, contentType: "application/json", @@ -816,7 +816,7 @@ console.log(stringify_obj) $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/", + url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/", data: stringify_obj, headers: { 'Authorization': token @@ -835,7 +835,7 @@ if (mode == "violation") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -868,7 +868,7 @@ console.log(stringify_obj) $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/", + url: "http://localhost:7700/api/Parking_spaces_roi_violation/", data: stringify_obj, headers: { 'Authorization': token @@ -950,7 +950,7 @@ function put_violation_roi_1() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi/" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -978,7 +978,7 @@ console.log(stringify_obj) $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi/" + parking_spaces_name, data: stringify_obj, headers: { 'Authorization': token @@ -1051,7 +1051,7 @@ if (mode == "violation") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -1084,7 +1084,7 @@ console.log(stringify_obj) $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/", + url: "http://localhost:7700/api/Parking_spaces_roi_violation/", data: stringify_obj, headers: { 'Authorization': token @@ -1166,7 +1166,7 @@ if (mode == "pass") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -1196,7 +1196,7 @@ console.log(stringify_obj) $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, data: stringify_obj, headers: { 'Authorization': token @@ -1271,7 +1271,7 @@ if (mode == "violation") { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -1304,7 +1304,7 @@ console.log(stringify_obj) $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/", + url: "http://localhost:7700/api/Parking_spaces_roi_violation/", data: stringify_obj, headers: { 'Authorization': token @@ -1332,7 +1332,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token_check', + url: 'http://localhost:7700/Users/token_check', headers: { 'Authorization': token }, @@ -1354,7 +1354,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token-' + token, + url: 'http://localhost:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -1370,7 +1370,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/user_id-' + id, + url: 'http://localhost:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Engineering/Engineering_EL125_car.cshtml b/Parking_spaces/Views/Engineering/Engineering_EL125_car.cshtml index e4989f2..bcfd7be 100644 --- a/Parking_spaces/Views/Engineering/Engineering_EL125_car.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_EL125_car.cshtml @@ -83,7 +83,7 @@ var stringify_obj = JSON.stringify(obj); $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/api/El125_car_table", + url: "http://localhost:7700/api/El125_car_table", data: stringify_obj, contentType: "application/json", headers: { @@ -145,7 +145,7 @@ function get_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/El125_car_table", + url: "http://localhost:7700/api/El125_car_table", data: {}, headers: { 'Authorization': token @@ -168,7 +168,7 @@ function delet_data(license_plate_number) { $.ajax({ type: "DELETE", - url: "http://140.125.20.183:7700/api/El125_car_table/" + license_plate_number, + url: "http://localhost:7700/api/El125_car_table/" + license_plate_number, data: {}, contentType: "application/json", headers: { @@ -193,7 +193,7 @@ //console.log(token) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token_check', + url: 'http://localhost:7700/Users/token_check', headers: { 'Authorization': token }, @@ -215,7 +215,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token-' + token, + url: 'http://localhost:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -231,7 +231,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/user_id-' + id, + url: 'http://localhost:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml index 92c2534..6161eec 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml @@ -84,10 +84,10 @@

工程模式

- +
+
-
每日違規數量 @@ -100,7 +100,8 @@
- + +
即時影像
@@ -109,10 +110,75 @@
+ + +
+
+
+ 每日車流量 + +
+
+
+
+ +
+
+
+ + +
+
+
+ 下載 總車位與月租Excel 文件 及 校園車位信息 +
+ +
+
+
+ +
+
校園總車位數量
+ + + + + + + + + + + +
總車位剩餘車位
+
+ + +
+
校園當前車流量
+ + + + + + + + + + + +
類別數量
+
+
+
+ + +
- +
+
演算法狀態
@@ -130,7 +196,7 @@
- +
@@ -144,7 +210,7 @@ 停車場位置 字幕機IP - 顯示參數 + 參數 @@ -153,85 +219,6 @@
-
- -
-
-
-
- 每日車流量 -
-
-
-
- -
-
-
-
- - -
-
-
-
- 下載 總車位與月租Excel 文件 及 校園車位信息 - -
-
-
- -
- -
- - -
-
校園總車位數量
- - - - - - - - - ` - - -
總車位剩餘車位
-
- - -
-
校園當前車流量
- - - - - - - - - - -
類別數量
-
-
-
-
@@ -249,7 +236,7 @@ @@ -212,7 +212,7 @@ //console.log(token) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token_check', + url: 'http://localhost:7700/Users/token_check', headers: { 'Authorization': token }, @@ -234,7 +234,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token-' + token, + url: 'http://localhost:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -250,7 +250,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/user_id-' + id, + url: 'http://localhost:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Engineering/Single_violation_detail.cshtml b/Parking_spaces/Views/Engineering/Single_violation_detail.cshtml index 39c2537..afc93e8 100644 --- a/Parking_spaces/Views/Engineering/Single_violation_detail.cshtml +++ b/Parking_spaces/Views/Engineering/Single_violation_detail.cshtml @@ -102,7 +102,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name, + url: "http://localhost:7700/api/Violation_car_table/violation_location_name-" + name, data: {}, contentType: "application/json", headers: { @@ -160,7 +160,7 @@ console.log(time) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, + url: "http://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { @@ -181,7 +181,7 @@ var stringify_obj = JSON.stringify(Model); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, + url: "http://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, data: stringify_obj, contentType: "application/json", headers: { @@ -237,7 +237,7 @@ serial_number = car_serial_number $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time, + url: "http://localhost:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { @@ -269,7 +269,7 @@ } $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/license_plate_number-" + license_plate_number, + url: "http://localhost:7700/api/Violation_car_table/license_plate_number-" + license_plate_number, data: {}, contentType: "application/json", headers: { @@ -295,7 +295,7 @@ console.log(start_date) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://localhost:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, data: {}, contentType: "application/json", headers: { @@ -320,7 +320,7 @@ var start_date = document.getElementById("start_date_id").value var end_date = document.getElementById("end_date_id").value // 發送HTTP GET請求到Web API動作方法 - fetch('http://140.125.20.183:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, { + fetch('http://localhost:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, { method: 'GET', headers: { 'Authorization': token @@ -361,7 +361,7 @@ function plate_export_excel() { var license_plate_number = document.getElementById("serch_text_id").value // 發送HTTP GET請求到Web API動作方法 - fetch('http://140.125.20.183:7700/api/Violation_car_table/export-excel_license_plate_number-'+license_plate_number, { + fetch('http://localhost:7700/api/Violation_car_table/export-excel_license_plate_number-'+license_plate_number, { method: 'GET', headers: { 'Authorization': token @@ -407,7 +407,7 @@ console.log(time) $.ajax({ type: "DELETE", - url: "http://140.125.20.183:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time, + url: "http://localhost:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { @@ -431,7 +431,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token_check', + url: 'http://localhost:7700/Users/token_check', headers: { 'Authorization': token }, @@ -453,7 +453,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/token-' + token, + url: 'http://localhost:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -469,7 +469,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://140.125.20.183:7700/Users/user_id-' + id, + url: 'http://localhost:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml index 2082073..6641ed2 100644 --- a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml @@ -3,47 +3,49 @@ ViewData["Title"] = "Yuntech_in_car"; Layout = "~/Views/Shared/_Layout_Engineering.cshtml"; } - -

進入車輛

- - +

查詢進出車輛

- 起始時間 : - 結束時間 : + 起始日期時間 : +    結束日期時間 : - - 時間段內進入車輛 : - - - +
+ + 下載時間段內進入車輛 : + + + + +      下載總進入車輛 : + + + +
- - 總進入車輛 : - - - - - - - - - -
+
+ 選擇進入區域 : +
+ + +
+ + + @@ -69,11 +77,10 @@
- +
-
@@ -91,7 +98,7 @@
- 區域 + 進入區域 車牌號碼 @@ -57,6 +59,12 @@ 時間 + 出去區域 + + 出去時間 +
- +

@@ -104,6 +111,7 @@ + @@ -130,10 +138,10 @@ var car_table_num = 0 function get_data() { var name = "大門口" - //console.log(name) + $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, data: {}, headers: { 'Authorization': token @@ -143,8 +151,8 @@ 'Authorization': token }, success: function (Model) { - //console.log(Model) - All_Model = Model + + All_Model = Model set_data(Model) } }); @@ -158,10 +166,38 @@ } }); */ + // 載入 out_location_name 下拉選單資料 + var outLocationSelect = document.getElementById("out_location_select_id"); + + $.ajax({ + type: "GET", + url: "http://localhost:7700/api/Yuntech_in_car_table/out_location_name", + data: {}, + headers: { + 'Authorization': token + }, + contentType: "application/json", + success: function (Model) { + console.log(Model); + + outLocationSelect.innerHTML = ""; + + + Model.forEach(function (item) { + var option = document.createElement('option'); + option.text = item.out_location_name; + outLocationSelect.add(option); + }); + }, + error: function (xhr, status, error) { + console.error("獲取 out_location_name 資料失敗:", error); + } + }); + var select = document.getElementById("location_select_id") $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name" , + url: "http://localhost:7700/api/Yuntech_in_car_table/location_name", data: {}, headers: { 'Authorization': token @@ -172,9 +208,9 @@ }, success: function (Model) { console.log(Model) - // 清除现有的选项 + select.innerHTML = ""; - // 添加新的选项 + Model.forEach(function (item) { var option = document.createElement('option'); option.text = item.location_name; @@ -188,17 +224,17 @@ // 定義抓取資料的函式 function fetchData_Up() { - car_table_num = car_table_num - 100 + car_table_num = car_table_num - 100 if (car_table_num < 0) { window.alert('無上一筆資料') car_table_num = 0 return } var name = "大門口" - //console.log(name) + $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, data: {}, headers: { 'Authorization': token @@ -208,7 +244,7 @@ 'Authorization': token }, success: function (Model) { - //console.log(Model) + All_Model = Model set_data(Model) } @@ -218,10 +254,10 @@ function fetchData_Down() { car_table_num = car_table_num + 100 var name = "大門口" - //console.log(name) + $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, data: {}, headers: { 'Authorization': token @@ -231,7 +267,7 @@ 'Authorization': token }, success: function (Model) { - //console.log(Model) + All_Model = Model set_data(Model) } @@ -244,60 +280,103 @@ @@ -333,21 +412,21 @@ @@ -407,7 +508,7 @@ } $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, + url: "http://localhost:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, data: {}, headers: { 'Authorization': token @@ -419,7 +520,7 @@ success: function (Model) { console.log(Model) All_Model = Model - + set_data_license_plate_and_date(Model) } @@ -443,7 +544,7 @@ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://localhost:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, data: {}, headers: { 'Authorization': token @@ -461,7 +562,7 @@ } }); - + } @@ -474,7 +575,7 @@ console.log(select_location) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location-" + select_location, + url: "http://localhost:7700/api/Yuntech_in_car_table/location-" + select_location, data: {}, headers: { 'Authorization': token @@ -492,22 +593,28 @@ } - - + - - - - @@ -207,24 +207,24 @@ + @@ -326,21 +414,21 @@ @@ -394,8 +510,11 @@ } $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, + url: "http://localhost:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, data: {}, + headers: { + 'Authorization': token + }, contentType: "application/json", headers: { 'Authorization': token @@ -404,7 +523,7 @@ console.log(Model) All_Model = Model - set_data(Model) + set_data_license_plate_and_date(Model) } }); @@ -427,8 +546,11 @@ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://localhost:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, data: {}, + headers: { + 'Authorization': token + }, contentType: "application/json", headers: { 'Authorization': token @@ -436,7 +558,9 @@ success: function (Model) { console.log(Model) All_Model = Model - set_data(Model) + set_data_license_plate_and_date(Model) + + } }); @@ -445,6 +569,7 @@ } + - + -
進入圖片 時間