diff --git a/Parking_spaces/Controllers/ManagerController.cs b/Parking_spaces/Controllers/ManagerController.cs index 903d138..7785042 100644 --- a/Parking_spaces/Controllers/ManagerController.cs +++ b/Parking_spaces/Controllers/ManagerController.cs @@ -32,5 +32,10 @@ namespace Parking_spaces.Controllers { return View(); } + + public IActionResult ParkingLog() + { + return View(); + } } } diff --git a/Parking_spaces/Controllers/Park_spacesController.cs b/Parking_spaces/Controllers/Park_spacesController.cs index 783f9e9..03c4547 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://localhost:7700/Users/token"; + string apiUrl = "http://140.125.20.183: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 f039097..d8f93b8 100644 --- a/Parking_spaces/Properties/launchSettings.json +++ b/Parking_spaces/Properties/launchSettings.json @@ -3,7 +3,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:2361", + "applicationUrl": "http://140.125.20.183:2361", "sslPort": 44352 } }, diff --git a/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml b/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml index 1c31898..aa45f10 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://localhost:7700/api/Parking_spaces_cam", + url: "http://140.125.20.183:7700/api/Parking_spaces_cam", data: {}, headers: { 'Authorization': token @@ -105,7 +105,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:7700/api/Parking_spaces_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", data: {}, headers: { 'Authorization': token @@ -127,7 +127,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:7700/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam", + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_pass", + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam_ptz_pass", + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam_ptz_violation", + url: "http://140.125.20.183: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://localhost:7700/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -455,7 +455,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -471,7 +471,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/user_id-' + id, + url: 'http://140.125.20.183: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 7072f53..0eed205 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://localhost:7700/api/Parking_spaces_cam/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam_ptz_pass/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam_ptz_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, data: stringify_obj, contentType: "application/json", @@ -671,7 +671,7 @@ $.ajax({ type: "PUT", - url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name + "-serial_num-" + serial_num_choose.toString(), + 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(), data: stringify_obj, contentType: "application/json", @@ -816,7 +816,7 @@ console.log(stringify_obj) $.ajax({ type: "POST", - url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/", + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/", + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/", + url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/", data: stringify_obj, headers: { 'Authorization': token @@ -1166,7 +1166,7 @@ if (mode == "pass") { $.ajax({ type: "GET", - url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:7700/api/Parking_spaces_roi_violation/", + url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/", data: stringify_obj, headers: { 'Authorization': token @@ -1332,7 +1332,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -1354,7 +1354,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -1370,7 +1370,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/user_id-' + id, + url: 'http://140.125.20.183: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 bcfd7be..e4989f2 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://localhost:7700/api/El125_car_table", + url: "http://140.125.20.183:7700/api/El125_car_table", data: stringify_obj, contentType: "application/json", headers: { @@ -145,7 +145,7 @@ function get_data() { $.ajax({ type: "GET", - url: "http://localhost:7700/api/El125_car_table", + url: "http://140.125.20.183:7700/api/El125_car_table", data: {}, headers: { 'Authorization': token @@ -168,7 +168,7 @@ function delet_data(license_plate_number) { $.ajax({ type: "DELETE", - url: "http://localhost:7700/api/El125_car_table/" + license_plate_number, + url: "http://140.125.20.183: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://localhost:7700/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -215,7 +215,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -231,7 +231,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/user_id-' + id, + url: 'http://140.125.20.183: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 8b110d4..92c2534 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml @@ -249,7 +249,7 @@ @@ -212,7 +212,7 @@ //console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -234,7 +234,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -250,7 +250,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/user_id-' + id, + url: 'http://140.125.20.183: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 afc93e8..39c2537 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://localhost:7700/api/Violation_car_table/violation_location_name-" + name, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/license_plate_number-" + license_plate_number, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, { + 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, { 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://localhost:7700/api/Violation_car_table/export-excel_license_plate_number-'+license_plate_number, { + fetch('http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -453,7 +453,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -469,7 +469,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/user_id-' + id, + url: 'http://140.125.20.183: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 78c672c..2082073 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://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name" , + url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name" , data: {}, headers: { 'Authorization': token @@ -198,7 +198,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location-" + select_location, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel"; + 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"; // 發送HTTP GET請求到Web API動作方法 fetch(url, { @@ -551,7 +551,7 @@ - -
- + .table th:nth-child(2), .table td:nth-child(2) { + width: 200px; /* 根據需要調整寬度 */ + } +
-
- +
- 校園當前車流量 - + 下載 總車位與月租Excel 文件 及 校園車位信息 +
- -
- - - - - - - - - -
類別數量
+
+ +
+ +
+ + +
+
校園總車位數量
+ + + + + + + + + ` + + +
總車位剩餘車位
+
+ + +
+
校園當前車流量
+ + + + + + + + + + +
類別數量
+
-
- - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + - - - - - - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - } - }); - } - - - - diff --git a/Parking_spaces/Views/Manager/Manager_Violation.cshtml b/Parking_spaces/Views/Manager/Manager_Violation.cshtml index 9102225..28786d4 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://localhost:7700/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/recidivists", + url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists", data: {}, contentType: "application/json", headers: { @@ -323,7 +323,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day, + url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -367,7 +367,7 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Parking_spaces/Views/Manager/Single_violation_detail.cshtml b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml index 7788744..d8bde09 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://localhost:7700/api/Violation_car_table/violation_location_name-" + name, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/license_plate_number-" + license_plate_number, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://140.125.20.183: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://localhost:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, { + 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, { 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://localhost:7700/api/Violation_car_table/export-excel_license_plate_number-' + license_plate_number, { + fetch('http://140.125.20.183: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://localhost:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -452,7 +452,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -468,7 +468,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:7700/Users/user_id-' + id, + url: 'http://140.125.20.183: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 f92d716..1e8689d 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://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name", + url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name", data: {}, headers: { 'Authorization': token @@ -190,7 +190,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location-" + select_location, + url: "http://140.125.20.183: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://localhost:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel"; + 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"; // 發送HTTP GET請求到Web API動作方法 fetch(url, { @@ -525,7 +525,7 @@