From d70a0f05e74e12fb1e30a57b7638a14ea37c2410 Mon Sep 17 00:00:00 2001 From: qi_0527 Date: Fri, 13 Sep 2024 23:32:32 +0800 Subject: [PATCH] Initial commit --- .../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 | 186 +++++---- .../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 | 143 +++++-- .../Engineering_total_table.cshtml | 18 +- .../Views/Engineering/Map_RTSP.cshtml | 20 +- .../Single_violation_detail.cshtml | 24 +- .../Views/Engineering/Yuntech_in_car.cshtml | 26 +- Parking_spaces/Views/Home/Login.cshtml | 374 +++++++----------- .../Views/Manager/Manager_Index.cshtml | 22 +- .../Views/Manager/Manager_Violation.cshtml | 14 +- .../Manager_parking_user_list_index.cshtml | 141 +++++-- Parking_spaces/Views/Manager/Map_RTSP.cshtml | 20 +- .../Manager/Single_violation_detail.cshtml | 24 +- .../Views/Manager/Yuntech_in_car.cshtml | 26 +- .../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 +- Parking_spaces/wwwroot/bootstrap_1/img/1.jpg | Bin 0 -> 241637 bytes 29 files changed, 648 insertions(+), 618 deletions(-) create mode 100644 Parking_spaces/wwwroot/bootstrap_1/img/1.jpg 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 4d0cf6e..a28bd14 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml @@ -188,84 +188,70 @@
+ +
-
+
- 每日車流量 + 下載 總車位與月租Excel 文件 及 校園車位信息 +
-
- + +
+ +
+ + +
+
校園總車位數量
+ + + + + + + + ` + + +
總車位剩餘車位
+
+ + +
+
校園當前車流量
+ + + + + + + + + + +
類別數量
- -
-
- -
-
- 校園總車位數量 -
-
- -
- - - - - - - - - -
- 總車位 - - 剩餘車位 -
-
-
-
- - -
-
-
- -
-
- -
-
- 校園當前車流量 - -
-
- -
- - - - - - - - - -
類別數量
-
-
-
-
@@ -278,6 +264,34 @@
+ + @@ -429,7 +443,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, + url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -478,7 +492,7 @@ in_car_list = [] $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, + url: "http://localhost:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, data: {}, contentType: "application/json", headers: { @@ -518,7 +532,7 @@ function get_algorithm_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm", + url: "http://localhost:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -533,7 +547,7 @@ function get_algorithm_data_1() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm", + url: "http://localhost:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -562,7 +576,7 @@ var stringify_obj = JSON.stringify(data_1); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, + url: "http://localhost:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, data: stringify_obj, headers: { 'Authorization': token @@ -616,7 +630,7 @@ function get_LED_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", + url: "http://localhost:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -661,7 +675,7 @@ function get_monthly_rent_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number", + url: "http://localhost:7700/api/Yuntech_monthly_rent_number", headers: { 'Authorization': token }, @@ -712,7 +726,7 @@ var stringify_obj = JSON.stringify(data); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number/" + category, + url: "http://localhost:7700/api/Yuntech_monthly_rent_number/" + category, data: stringify_obj, headers: { 'Authorization': token @@ -732,7 +746,7 @@ function get_yuntech_parking_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_parking", + url: "http://localhost:7700/api/Yuntech_parking", data: {}, headers: { 'Authorization': token @@ -770,7 +784,7 @@ function Update_now_num(all_num) { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_parking/" + all_num, + url: "http://localhost:7700/api/Yuntech_parking/" + all_num, data: {}, headers: { 'Authorization': token @@ -789,7 +803,7 @@ $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Yuntech_parking/" + Model.all_num, + url: "http://localhost:7700/api/Yuntech_parking/" + Model.all_num, data: stringify_obj, headers: { 'Authorization': token @@ -821,7 +835,7 @@ IP_1 = IP $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP, + url: 'http://localhost:7705/IP/' + IP, headers: { 'Authorization': token }, @@ -843,7 +857,7 @@ //console.log(IP_1) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP_1, + url: 'http://localhost:7705/IP/' + IP_1, headers: { 'Authorization': token }, @@ -1042,7 +1056,7 @@ $.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 @@ -1060,7 +1074,7 @@ $.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 @@ -1078,7 +1092,7 @@ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table", + url: "http://localhost:7700/api/Yuntech_cam_total_table", data: {}, headers: { 'Authorization': token @@ -1097,7 +1111,7 @@ location_name = location_name $.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 @@ -1116,7 +1130,7 @@ location_name = location_name $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam", + url: "http://localhost:7700/api/Yuntech_cam", data: {}, headers: { 'Authorization': token @@ -1249,7 +1263,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 }, @@ -1271,7 +1285,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 }, @@ -1287,7 +1301,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 18303d5..850595b 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index_.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index_.cshtml @@ -51,7 +51,7 @@ function get_data(){ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm", + url: "http://localhost:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -66,7 +66,7 @@ function get_data_1() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm", + url: "http://localhost:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -96,7 +96,7 @@ var stringify_obj = JSON.stringify(data_1); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, + url: "http://localhost:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, data: stringify_obj, headers: { 'Authorization': token @@ -157,7 +157,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 }, @@ -179,7 +179,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 }, @@ -195,7 +195,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_Interview.cshtml b/Parking_spaces/Views/Engineering/Engineering_Interview.cshtml index 0417a53..3885c5c 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Interview.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Interview.cshtml @@ -372,7 +372,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, + url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -421,7 +421,7 @@ in_car_list = [] $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, + url: "http://localhost:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, data: {}, contentType: "application/json", headers: { @@ -461,7 +461,7 @@ function get_algorithm_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm", + url: "http://localhost:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -476,7 +476,7 @@ function get_algorithm_data_1() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm", + url: "http://localhost:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -505,7 +505,7 @@ var stringify_obj = JSON.stringify(data_1); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, + url: "http://localhost:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, data: stringify_obj, headers: { 'Authorization': token @@ -559,7 +559,7 @@ function get_LED_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", + url: "http://localhost:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -618,7 +618,7 @@ IP_1 = IP $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP, + url: 'http://localhost:7705/IP/' + IP, headers: { 'Authorization': token }, @@ -640,7 +640,7 @@ //console.log(IP_1) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP_1, + url: 'http://localhost:7705/IP/' + IP_1, headers: { 'Authorization': token }, @@ -839,7 +839,7 @@ $.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 @@ -857,7 +857,7 @@ $.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 @@ -875,7 +875,7 @@ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table", + url: "http://localhost:7700/api/Yuntech_cam_total_table", data: {}, headers: { 'Authorization': token @@ -894,7 +894,7 @@ location_name = location_name $.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 @@ -913,7 +913,7 @@ location_name = location_name $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam", + url: "http://localhost:7700/api/Yuntech_cam", data: {}, headers: { 'Authorization': token @@ -1035,7 +1035,7 @@ /*0523*/ $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/Users/authenticate", + url: "http://localhost:7700/Users/authenticate", data: stringify_obj, contentType: "application/json", success: function (msg) { @@ -1076,7 +1076,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 }, @@ -1098,7 +1098,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 }, @@ -1114,7 +1114,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_LED.cshtml b/Parking_spaces/Views/Engineering/Engineering_LED.cshtml index f026139..9cf9dc7 100644 --- a/Parking_spaces/Views/Engineering/Engineering_LED.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_LED.cshtml @@ -54,7 +54,7 @@ function get_data(){ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", + url: "http://localhost:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -117,7 +117,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 }, @@ -139,7 +139,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 }, @@ -155,7 +155,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_LED_detail.cshtml b/Parking_spaces/Views/Engineering/Engineering_LED_detail.cshtml index a79dfa3..fe0e296 100644 --- a/Parking_spaces/Views/Engineering/Engineering_LED_detail.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_LED_detail.cshtml @@ -68,7 +68,7 @@ function get_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", + url: "http://localhost:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -116,7 +116,7 @@ function Update_detail(parking_spaces_name){ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_total_table/" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -135,7 +135,7 @@ $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_total_table/" + parking_spaces_name, data: stringify_obj, headers: { 'Authorization': token @@ -151,7 +151,7 @@ function Update_detail_2() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand/parking_space_area-" + parking_spaces_name, + url: "http://localhost:7700/api/Parking_spaces_lcd_instand/parking_space_area-" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -177,7 +177,7 @@ var stringify_obj = JSON.stringify(Model); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand/" + Model.lcd_ip, + url: "http://localhost:7700/api/Parking_spaces_lcd_instand/" + Model.lcd_ip, data: stringify_obj, headers: { 'Authorization': token @@ -208,7 +208,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 }, @@ -230,7 +230,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 }, @@ -246,7 +246,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_RTSP.cshtml b/Parking_spaces/Views/Engineering/Engineering_RTSP.cshtml index 10bce9a..b435a99 100644 --- a/Parking_spaces/Views/Engineering/Engineering_RTSP.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_RTSP.cshtml @@ -69,7 +69,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 @@ -129,7 +129,7 @@ IP_1 = IP $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP_1, + url: 'http://localhost:7705/IP/' + IP_1, headers: { 'Authorization': token }, @@ -147,7 +147,7 @@ console.log(IP_1) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP_1, + url: 'http://localhost:7705/IP/' + IP_1, headers: { 'Authorization':token }, @@ -195,7 +195,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 }, @@ -219,7 +219,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 }, @@ -235,7 +235,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_Violation.cshtml b/Parking_spaces/Views/Engineering/Engineering_Violation.cshtml index f3f1eb8..773c0e8 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Violation.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Violation.cshtml @@ -219,7 +219,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: {}, contentType: "application/json", headers: { @@ -275,7 +275,7 @@ function get_recidivst_1(){ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists", + url: "http://localhost:7700/api/Violation_car_table/recidivists", data: {}, contentType: "application/json", headers: { @@ -327,7 +327,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, + url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -370,7 +370,7 @@ + +
@@ -66,6 +97,14 @@
+
+
+
+ + +
+
+
@@ -79,62 +118,65 @@ - - - - + + + + + @@ -242,7 +303,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 }, @@ -264,7 +325,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 }, @@ -280,7 +341,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_total_table.cshtml b/Parking_spaces/Views/Engineering/Engineering_total_table.cshtml index 4c83f4c..559a609 100644 --- a/Parking_spaces/Views/Engineering/Engineering_total_table.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_total_table.cshtml @@ -194,7 +194,7 @@ var license_plate_number = document.getElementById("serch_text_id").value $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number, + url: "http://localhost:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number, data: {}, contentType: "application/json", headers: { @@ -225,7 +225,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: {}, contentType: "application/json", headers: { @@ -297,7 +297,7 @@ function get_single_parking_space_car(name){ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name, + url: "http://localhost:7700/api/Parking_spaces_instant/parking_space_area-" + name, data: {}, contentType: "application/json", headers: { @@ -328,8 +328,8 @@ var stringify_obj = JSON.stringify(obj); $.ajax({ type: "POST", - url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", - //url: "http://140.125.20.183:7700/api/Postural_Analysis_1", + url: "http://localhost:7700/api/Parking_spaces_total_table", + //url: "http://localhost:7700/api/Postural_Analysis_1", //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", @@ -353,7 +353,7 @@ function delet_data(name){ $.ajax({ type: "DELETE", - url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name, + url: "http://localhost:7700/api/Parking_spaces_total_table/"+name, data: {}, contentType: "application/json", headers: { @@ -391,7 +391,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 }, @@ -413,7 +413,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 }, @@ -429,7 +429,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/Map_RTSP.cshtml b/Parking_spaces/Views/Engineering/Map_RTSP.cshtml index 40249df..27138b5 100644 --- a/Parking_spaces/Views/Engineering/Map_RTSP.cshtml +++ b/Parking_spaces/Views/Engineering/Map_RTSP.cshtml @@ -72,7 +72,7 @@ IP_1 = IP $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP, + url: 'http://localhost:7705/IP/' + IP, headers: { 'Authorization': token }, @@ -94,7 +94,7 @@ console.log(IP_1) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP_1, + url: 'http://localhost:7705/IP/' + IP_1, headers: { 'Authorization': token }, @@ -294,7 +294,7 @@ $.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 @@ -312,7 +312,7 @@ $.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 @@ -330,7 +330,7 @@ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table", + url: "http://localhost:7700/api/Yuntech_cam_total_table", data: {}, headers: { 'Authorization': token @@ -350,7 +350,7 @@ location_name = location_name $.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 @@ -369,7 +369,7 @@ location_name = location_name $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam", + url: "http://localhost:7700/api/Yuntech_cam", data: {}, headers: { 'Authorization': token @@ -488,7 +488,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 }, @@ -512,7 +512,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 }, @@ -528,7 +528,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..78c672c 100644 --- a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml @@ -133,7 +133,7 @@ //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 @@ -161,7 +161,7 @@ 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 @@ -198,7 +198,7 @@ //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 @@ -221,7 +221,7 @@ //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 @@ -340,7 +340,7 @@ // 發送AJAX GET請求 $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, + url: "http://localhost:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { @@ -407,7 +407,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 @@ -443,7 +443,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 @@ -474,7 +474,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 @@ -505,7 +505,7 @@ var end_time = new Date(end_date).toISOString(); // 構建請求URL - var url = "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel"; + var url = "http://localhost:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel"; // 發送HTTP GET請求到Web API動作方法 fetch(url, { @@ -551,7 +551,7 @@ + + - - - - - - \ No newline at end of file + function passerby_clicked() { + localStorage.removeItem('token_park_space'); + window.location.href = '/Park_spaces/Parking_spaces_total_table'; + } + + + diff --git a/Parking_spaces/Views/Manager/Manager_Index.cshtml b/Parking_spaces/Views/Manager/Manager_Index.cshtml index f4e2416..892a142 100644 --- a/Parking_spaces/Views/Manager/Manager_Index.cshtml +++ b/Parking_spaces/Views/Manager/Manager_Index.cshtml @@ -298,7 +298,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, + url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -346,7 +346,7 @@ in_car_list = [] $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, + url: "http://localhost:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, data: {}, contentType: "application/json", headers: { @@ -385,7 +385,7 @@ function get_LED_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", + url: "http://localhost:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -426,7 +426,7 @@ function get_monthly_rent_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number", + url: "http://localhost:7700/api/Yuntech_monthly_rent_number", headers: { 'Authorization': token }, @@ -477,7 +477,7 @@ var stringify_obj = JSON.stringify(data); $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number/" + category, + url: "http://localhost:7700/api/Yuntech_monthly_rent_number/" + category, data: stringify_obj, headers: { 'Authorization': token @@ -497,7 +497,7 @@ function get_yuntech_parking_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_parking", + url: "http://localhost:7700/api/Yuntech_parking", data: {}, headers: { 'Authorization': token @@ -535,7 +535,7 @@ function Update_now_num(all_num) { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_parking/" + all_num, + url: "http://localhost:7700/api/Yuntech_parking/" + all_num, data: {}, headers: { 'Authorization': token @@ -554,7 +554,7 @@ $.ajax({ type: "PUT", - url: "http://140.125.20.183:7700/api/Yuntech_parking/" + Model.all_num, + url: "http://localhost:7700/api/Yuntech_parking/" + Model.all_num, data: stringify_obj, headers: { 'Authorization': token @@ -577,7 +577,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 }, @@ -599,7 +599,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 }, @@ -615,7 +615,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/Manager/Manager_Violation.cshtml b/Parking_spaces/Views/Manager/Manager_Violation.cshtml index 28786d4..9102225 100644 --- a/Parking_spaces/Views/Manager/Manager_Violation.cshtml +++ b/Parking_spaces/Views/Manager/Manager_Violation.cshtml @@ -215,7 +215,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: {}, contentType: "application/json", headers: { @@ -271,7 +271,7 @@ function get_recidivst_1() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists", + url: "http://localhost:7700/api/Violation_car_table/recidivists", data: {}, contentType: "application/json", headers: { @@ -323,7 +323,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, + url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -367,7 +367,7 @@
@@ -67,6 +96,14 @@
+
+
+
+ + +
+
+
@@ -80,61 +117,64 @@ - - - - + @@ -196,7 +232,7 @@ function delet_data(license_plate_number) { $.ajax({ type: "DELETE", - url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list/" + license_plate_number, + url: "http://localhost:7700/api/Yuntech_parking_user_list/" + license_plate_number, data: {}, contentType: "application/json", headers: { @@ -215,7 +251,7 @@ function get_data() { $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list", + url: "http://localhost:7700/api/Yuntech_parking_user_list", data: {}, headers: { 'Authorization': token @@ -232,6 +268,29 @@ } + + + + @@ -244,7 +303,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 }, @@ -268,7 +327,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 }, @@ -284,7 +343,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/Manager/Map_RTSP.cshtml b/Parking_spaces/Views/Manager/Map_RTSP.cshtml index 75d4dc3..a1bfc21 100644 --- a/Parking_spaces/Views/Manager/Map_RTSP.cshtml +++ b/Parking_spaces/Views/Manager/Map_RTSP.cshtml @@ -73,7 +73,7 @@ IP_1 = IP $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP, + url: 'http://localhost:7705/IP/' + IP, headers: { 'Authorization': token }, @@ -95,7 +95,7 @@ console.log(IP_1) $.ajax({ type: "GET", - url: 'http://140.125.20.183:7705/IP/' + IP_1, + url: 'http://localhost:7705/IP/' + IP_1, headers: { 'Authorization': token }, @@ -295,7 +295,7 @@ $.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 @@ -313,7 +313,7 @@ $.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 @@ -331,7 +331,7 @@ $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table", + url: "http://localhost:7700/api/Yuntech_cam_total_table", data: {}, headers: { 'Authorization': token @@ -351,7 +351,7 @@ location_name = location_name $.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 @@ -370,7 +370,7 @@ location_name = location_name $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_cam", + url: "http://localhost:7700/api/Yuntech_cam", data: {}, headers: { 'Authorization': token @@ -489,7 +489,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 }, @@ -513,7 +513,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 }, @@ -529,7 +529,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/Manager/Single_violation_detail.cshtml b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml index d8bde09..7788744 100644 --- a/Parking_spaces/Views/Manager/Single_violation_detail.cshtml +++ b/Parking_spaces/Views/Manager/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: { @@ -321,7 +321,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 @@ -362,7 +362,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 @@ -406,7 +406,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: { @@ -430,7 +430,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 }, @@ -452,7 +452,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 }, @@ -468,7 +468,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/Manager/Yuntech_in_car.cshtml b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml index 1e8689d..f92d716 100644 --- a/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml @@ -126,7 +126,7 @@ //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 @@ -154,7 +154,7 @@ 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 @@ -190,7 +190,7 @@ //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 @@ -213,7 +213,7 @@ //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 @@ -333,7 +333,7 @@ // 發送AJAX GET請求 $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, + url: "http://localhost:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { @@ -394,7 +394,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: {}, contentType: "application/json", headers: { @@ -427,7 +427,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: {}, contentType: "application/json", headers: { @@ -452,7 +452,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 @@ -482,7 +482,7 @@ var end_time = new Date(end_date).toISOString(); // 構建請求URL - var url = "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel"; + var url = "http://localhost:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel"; // 發送HTTP GET請求到Web API動作方法 fetch(url, { @@ -525,7 +525,7 @@