From f6867fa81d071322ea16c73136ab835e2f5150fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=81=E5=8B=9D=20=E5=BC=B5?= Date: Wed, 14 Feb 2024 22:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E5=88=86=E9=A9=97=E8=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Engineering/Engineering_CAM.cshtml | 20 +++---- .../Engineering/Engineering_CAM_detail.cshtml | 54 ++++++++--------- .../Engineering/Engineering_Index.cshtml | 58 ++++++++----------- .../Engineering/Engineering_Index_.cshtml | 12 ++-- .../Views/Engineering/Engineering_LED.cshtml | 8 +-- .../Engineering/Engineering_LED_detail.cshtml | 16 ++--- .../Views/Engineering/Engineering_RTSP.cshtml | 8 +-- .../Engineering/Engineering_Violation.cshtml | 12 ++-- .../Engineering_total_table.cshtml | 18 +++--- .../Views/Engineering/Map_RTSP.cshtml | 12 ++-- .../Single_violation_detail.cshtml | 20 +++---- .../Views/Engineering/Yuntech_in_car.cshtml | 14 ++--- Parking_spaces/Views/Home/Login.cshtml | 2 +- .../Views/Manager/Manager_Index.cshtml | 10 ++-- .../Views/Manager/Manager_Violation.cshtml | 14 ++--- .../Manager/Single_violation_detail.cshtml | 20 +++---- .../Views/Manager/Yuntech_in_car.cshtml | 14 ++--- .../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 +- 21 files changed, 172 insertions(+), 182 deletions(-) diff --git a/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml b/Parking_spaces/Views/Engineering/Engineering_CAM.cshtml index 42351f7..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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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 4f66ab2..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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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:5174/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 e402273..bdcad70 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml @@ -145,9 +145,10 @@
-
每日違規數量 +
+ 每日違規數量 -
+
@@ -163,7 +164,7 @@
字幕機狀態 -
+
@@ -194,7 +195,7 @@
-
+
每日車流量 @@ -237,7 +238,7 @@ // 取得 canvas 元素 var ctx1 = document.getElementById('in_car_Bar') - + // 使用 Chart.js 繪製長條圖 var myLineChart = new Chart(ctx1, { type: 'line', @@ -271,8 +272,8 @@ } }); - - + + } function set_in_yuntech_table_1(labels, dailyTrafficData) { @@ -373,7 +374,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -388,26 +389,15 @@ }); } - function get_violation_data_2(Model) { - if (Model.length > 0) { - for (var i = 0; i < Model.length; i++) { - var name = Model[i].parking_spaces_violation_name - ////console.log(name) - $.ajax({ - type: "GET", - url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name, - data: {}, - contentType: "application/json", - success: function (Model) { - set_violation_data_1(Model) - + + @@ -473,7 +463,7 @@ function get_algorithm_data() { $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_space_algorithm", + url: "http://140.125.20.183:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -488,7 +478,7 @@ function get_algorithm_data_1() { $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_space_algorithm", + url: "http://140.125.20.183:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -517,7 +507,7 @@ var stringify_obj = JSON.stringify(data_1); $.ajax({ type: "PUT", - url: "http://localhost:5174/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, + url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, data: stringify_obj, headers: { 'Authorization': token @@ -571,7 +561,7 @@ function get_LED_data() { $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_lcd_instand", + url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -775,7 +765,7 @@ $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", data: {}, headers: { 'Authorization': token @@ -793,7 +783,7 @@ $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", data: {}, headers: { 'Authorization': token @@ -812,7 +802,7 @@ location_name = location_name $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_cam", + url: "http://140.125.20.183:7700/api/Parking_spaces_cam", data: {}, headers: { 'Authorization': token @@ -899,7 +889,7 @@ //console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -921,7 +911,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -937,7 +927,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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 54091b9..18303d5 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://localhost:5174/api/Parking_space_algorithm", + url: "http://140.125.20.183:7700/api/Parking_space_algorithm", data: {}, headers: { 'Authorization': token @@ -66,7 +66,7 @@ function get_data_1() { $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_space_algorithm", + url: "http://140.125.20.183: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://localhost:5174/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num, + url: "http://140.125.20.183: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://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -179,7 +179,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -195,7 +195,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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_LED.cshtml b/Parking_spaces/Views/Engineering/Engineering_LED.cshtml index ccb5a3f..f026139 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://localhost:5174/api/Parking_spaces_lcd_instand", + url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand", data: {}, headers: { 'Authorization': token @@ -117,7 +117,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -139,7 +139,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -155,7 +155,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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_LED_detail.cshtml b/Parking_spaces/Views/Engineering/Engineering_LED_detail.cshtml index 48053ed..a79dfa3 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://localhost:5174/api/Parking_spaces_lcd_instand", + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table/" + parking_spaces_name, + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name, data: {}, headers: { 'Authorization': token @@ -135,7 +135,7 @@ $.ajax({ type: "PUT", - url: "http://localhost:5174/api/Parking_spaces_total_table/" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_lcd_instand/parking_space_area-" + parking_spaces_name, + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_lcd_instand/" + Model.lcd_ip, + url: "http://140.125.20.183: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://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -230,7 +230,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -246,7 +246,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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_RTSP.cshtml b/Parking_spaces/Views/Engineering/Engineering_RTSP.cshtml index 8c46d3f..10bce9a 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://localhost:5174/api/Parking_spaces_cam", + url: "http://140.125.20.183:7700/api/Parking_spaces_cam", data: {}, headers: { 'Authorization': token @@ -195,7 +195,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -219,7 +219,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -235,7 +235,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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_Violation.cshtml b/Parking_spaces/Views/Engineering/Engineering_Violation.cshtml index 06fbfb1..c48506d 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Violation.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Violation.cshtml @@ -215,7 +215,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:5174/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:5174/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:5174/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -376,7 +376,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -398,7 +398,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -414,7 +414,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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_total_table.cshtml b/Parking_spaces/Views/Engineering/Engineering_total_table.cshtml index 0f40529..4c83f4c 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://localhost:5174/api/Parking_spaces_instant/license_plate_number-" + license_plate_number, + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table", + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_instant/parking_space_area-" + name, + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table", - //url: "http://localhost:5174/api/Postural_Analysis_1", + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", + //url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table/"+name, + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name, data: {}, contentType: "application/json", headers: { @@ -391,7 +391,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -413,7 +413,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -429,7 +429,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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/Map_RTSP.cshtml b/Parking_spaces/Views/Engineering/Map_RTSP.cshtml index 117495f..b9d7803 100644 --- a/Parking_spaces/Views/Engineering/Map_RTSP.cshtml +++ b/Parking_spaces/Views/Engineering/Map_RTSP.cshtml @@ -216,7 +216,7 @@ $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", data: {}, headers: { 'Authorization': token @@ -234,7 +234,7 @@ $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", data: {}, headers: { 'Authorization': token @@ -253,7 +253,7 @@ location_name = location_name $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_cam", + url: "http://140.125.20.183:7700/api/Parking_spaces_cam", data: {}, headers: { 'Authorization': token @@ -338,7 +338,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -362,7 +362,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -378,7 +378,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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 82ff53c..ae30e33 100644 --- a/Parking_spaces/Views/Engineering/Single_violation_detail.cshtml +++ b/Parking_spaces/Views/Engineering/Single_violation_detail.cshtml @@ -93,7 +93,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -151,7 +151,7 @@ console.log(time) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -172,7 +172,7 @@ var stringify_obj = JSON.stringify(Model); $.ajax({ type: "PUT", - url: "http://localhost:5174/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: { @@ -228,7 +228,7 @@ serial_number = car_serial_number $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -260,7 +260,7 @@ } $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -286,7 +286,7 @@ console.log(start_date) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -312,7 +312,7 @@ console.log(time) $.ajax({ type: "DELETE", - url: "http://localhost:5174/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: { @@ -336,7 +336,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -358,7 +358,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -374,7 +374,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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 a3d9fa1..6f32ae5 100644 --- a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml @@ -89,7 +89,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://localhost:5174/api/Yuntech_in_car_table", + url: "http://140.125.20.183:7700/api/Yuntech_in_car_table", data: {}, headers: { 'Authorization': token @@ -178,7 +178,7 @@ serial_number = car_serial_number $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -209,7 +209,7 @@ } $.ajax({ type: "GET", - url: "http://localhost:5174/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 @@ -238,7 +238,7 @@ console.log(start_date) $.ajax({ type: "GET", - url: "http://localhost:5174/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 @@ -268,7 +268,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -290,7 +290,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -306,7 +306,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/user_id-' + id, + url: 'http://140.125.20.183:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Home/Login.cshtml b/Parking_spaces/Views/Home/Login.cshtml index fd75c20..60c149e 100644 --- a/Parking_spaces/Views/Home/Login.cshtml +++ b/Parking_spaces/Views/Home/Login.cshtml @@ -203,7 +203,7 @@ /*0523*/ $.ajax({ type: "POST", - url: "http://localhost:5174/Users/authenticate", + url: "http://140.125.20.183:7700/Users/authenticate", data: stringify_obj, contentType: "application/json", success: function (msg) { diff --git a/Parking_spaces/Views/Manager/Manager_Index.cshtml b/Parking_spaces/Views/Manager/Manager_Index.cshtml index 2f3aef1..b14e735 100644 --- a/Parking_spaces/Views/Manager/Manager_Index.cshtml +++ b/Parking_spaces/Views/Manager/Manager_Index.cshtml @@ -205,7 +205,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day, data: {}, contentType: "application/json", headers: { @@ -253,7 +253,7 @@ in_car_list = [] $.ajax({ type: "GET", - url: "http://localhost:5174/api/Yuntech_in_car_table", + url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day, data: {}, contentType: "application/json", headers: { @@ -298,7 +298,7 @@ //console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -320,7 +320,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -336,7 +336,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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/Manager_Violation.cshtml b/Parking_spaces/Views/Manager/Manager_Violation.cshtml index adddca0..f459a72 100644 --- a/Parking_spaces/Views/Manager/Manager_Violation.cshtml +++ b/Parking_spaces/Views/Manager/Manager_Violation.cshtml @@ -212,7 +212,7 @@ console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", data: {}, contentType: "application/json", headers: { @@ -268,7 +268,7 @@ function get_recidivst_1() { $.ajax({ type: "GET", - url: "http://localhost:5174/api/Violation_car_table/recidivists", + url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists", data: {}, contentType: "application/json", headers: { @@ -319,7 +319,7 @@ //console.log(token_check) $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_violation_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table", data: {}, contentType: "application/json", headers: { @@ -340,7 +340,7 @@ ////console.log(name) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -501,7 +501,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -523,7 +523,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -539,7 +539,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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/Single_violation_detail.cshtml b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml index ab67820..2c8b6e1 100644 --- a/Parking_spaces/Views/Manager/Single_violation_detail.cshtml +++ b/Parking_spaces/Views/Manager/Single_violation_detail.cshtml @@ -93,7 +93,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -151,7 +151,7 @@ console.log(time) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -172,7 +172,7 @@ var stringify_obj = JSON.stringify(Model); $.ajax({ type: "PUT", - url: "http://localhost:5174/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: { @@ -228,7 +228,7 @@ serial_number = car_serial_number $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -260,7 +260,7 @@ } $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -286,7 +286,7 @@ console.log(start_date) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -312,7 +312,7 @@ console.log(time) $.ajax({ type: "DELETE", - url: "http://localhost:5174/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: { @@ -336,7 +336,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -358,7 +358,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -374,7 +374,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/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 a062122..2207ca6 100644 --- a/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml @@ -89,7 +89,7 @@ //console.log(name) $.ajax({ type: "GET", - url: "http://localhost:5174/api/Yuntech_in_car_table" , + url: "http://140.125.20.183:7700/api/Yuntech_in_car_table" , data: {}, contentType: "application/json", headers: { @@ -175,7 +175,7 @@ serial_number = car_serial_number $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -206,7 +206,7 @@ } $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -232,7 +232,7 @@ console.log(start_date) $.ajax({ type: "GET", - url: "http://localhost:5174/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: { @@ -259,7 +259,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -281,7 +281,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -297,7 +297,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/user_id-' + id, + url: 'http://140.125.20.183:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Park_spaces/Parking_spaces_history.cshtml b/Parking_spaces/Views/Park_spaces/Parking_spaces_history.cshtml index 8fd4d44..4873822 100644 --- a/Parking_spaces/Views/Park_spaces/Parking_spaces_history.cshtml +++ b/Parking_spaces/Views/Park_spaces/Parking_spaces_history.cshtml @@ -49,7 +49,7 @@ var date = document.getElementById("serch_text_id").value $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_history/date-" + date, + url: "http://140.125.20.183:7700/api/Parking_spaces_history/date-" + date, data: {}, contentType: "application/json", headers: { @@ -70,8 +70,8 @@ function get_data() { $.ajax({ type: "GET", - //url: "http://localhost:5174/api/Parking_spaces_history/parking_space_area-" + name, - url: "http://localhost:5174/api/Parking_spaces_history", + //url: "http://140.125.20.183:7700/api/Parking_spaces_history/parking_space_area-" + name, + url: "http://140.125.20.183:7700/api/Parking_spaces_history", data: {}, contentType: "application/json", headers: { @@ -117,7 +117,7 @@ function select_data(){ $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_total_table", + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", data: {}, contentType: "application/json", headers: { @@ -142,7 +142,7 @@ var name = document.getElementById("select_id").value $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_history/parking_space_area-" + name, + url: "http://140.125.20.183:7700/api/Parking_spaces_history/parking_space_area-" + name, data: {}, contentType: "application/json", headers: { diff --git a/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml b/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml index 6595935..1fd8209 100644 --- a/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml +++ b/Parking_spaces/Views/Park_spaces/Parking_spaces_total_table.cshtml @@ -194,7 +194,7 @@ var license_plate_number = document.getElementById("serch_text_id").value $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_instant/license_plate_number-" + license_plate_number, + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table", + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_instant/parking_space_area-" + name, + url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table", - //url: "http://localhost:5174/api/Postural_Analysis_1", + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table", + //url: "http://140.125.20.183: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://localhost:5174/api/Parking_spaces_total_table/"+name, + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name, data: {}, contentType: "application/json", headers: { @@ -394,7 +394,7 @@ console.log(token) $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token_check', + url: 'http://140.125.20.183:7700/Users/token_check', headers: { 'Authorization': token }, @@ -416,7 +416,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/token-' + token, + url: 'http://140.125.20.183:7700/Users/token-' + token, headers: { 'Authorization': token }, @@ -432,7 +432,7 @@ var token = localStorage.getItem('token_park_space'); $.ajax({ type: "GET", - url: 'http://localhost:5174/Users/user_id-' + id, + url: 'http://140.125.20.183:7700/Users/user_id-' + id, headers: { 'Authorization': token }, diff --git a/Parking_spaces/Views/Park_spaces/Single_parking_spaces_detail.cshtml b/Parking_spaces/Views/Park_spaces/Single_parking_spaces_detail.cshtml index 702f561..df8d0af 100644 --- a/Parking_spaces/Views/Park_spaces/Single_parking_spaces_detail.cshtml +++ b/Parking_spaces/Views/Park_spaces/Single_parking_spaces_detail.cshtml @@ -115,7 +115,7 @@ console.log(stringify_obj) $.ajax({ type: "Post", - url: "http://localhost:5174/api/Parking_spaces_instant", + url: "http://140.125.20.183:7700/api/Parking_spaces_instant", //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", @@ -151,7 +151,7 @@ console.log(stringify_obj) $.ajax({ type: "Post", - url: "http://localhost:5174/api/Parking_spaces_history", + url: "http://140.125.20.183:7700/api/Parking_spaces_history", //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", @@ -194,7 +194,7 @@ var name = document.getElementById("parking_spaces_name_id").value $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_area-" + name, + url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name, data: {}, contentType: "application/json", headers: { @@ -274,7 +274,7 @@ serial_number = car_serial_number $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_area_name-" + location_name + "-time-" + time, + url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area_name-" + location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { @@ -327,7 +327,7 @@ $.ajax({ type: "Post", - url: "http://localhost:5174/api/Parking_spaces_history", + url: "http://140.125.20.183:7700/api/Parking_spaces_history", data: stringify_obj, contentType: "application/json", success: function (msg) { @@ -340,7 +340,7 @@ function delet_data_2(location_name, name, time) { $.ajax({ type: "DELETE", - url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_name-" + location_name + "-time-" + time, + url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_name-" + location_name + "-time-" + time, data: {}, contentType: "application/json", headers: { diff --git a/Parking_spaces/Views/Park_spaces/Single_parking_spaces_map.cshtml b/Parking_spaces/Views/Park_spaces/Single_parking_spaces_map.cshtml index cb799dd..658afaa 100644 --- a/Parking_spaces/Views/Park_spaces/Single_parking_spaces_map.cshtml +++ b/Parking_spaces/Views/Park_spaces/Single_parking_spaces_map.cshtml @@ -61,7 +61,7 @@ var name = document.getElementById("parking_spaces_name_id").value $.ajax({ type: "GET", - url: "http://localhost:5174/api/Parking_spaces_total_table/" + name, + url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + name, data: {}, contentType: "application/json", headers: {