身分驗證

This commit is contained in:
威勝 張 2024-02-14 22:02:50 +08:00
parent f8e4ce69c4
commit f6867fa81d
21 changed files with 172 additions and 182 deletions

View File

@ -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
},

View File

@ -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
},

View File

@ -145,7 +145,8 @@
<div class="col-xl-8 col-lg-8">
<div class="card shadow mb-8">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">每日違規數量
<h6 class="m-0 font-weight-bold text-primary">
每日違規數量
<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_violation_data_1()"></button>
</h6>
</div>
@ -194,7 +195,7 @@
<div class="row">
<!--每日車流量-->
<div class="col-xl-8 col-lg-8">
<div class="card shadow mb-8" >
<div class="card shadow mb-8">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">
每日車流量<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_in_yuntech_data_1()"></button>
@ -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,18 +389,7 @@
});
}
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)
@ -433,7 +423,7 @@
in_car_list = []
$.ajax({
type: "GET",
url: "http://140.125.20.183:7700/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: {
@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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) {

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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: {

View File

@ -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
},

View File

@ -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: {

View File

@ -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: {