身分驗證

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) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_cam", url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -105,7 +105,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -127,7 +127,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -238,7 +238,7 @@
var stringify_obj = JSON.stringify(obj); var stringify_obj = JSON.stringify(obj);
$.ajax({ $.ajax({
type: "Post", 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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -292,7 +292,7 @@
var stringify_obj = JSON.stringify(obj); var stringify_obj = JSON.stringify(obj);
$.ajax({ $.ajax({
type: "Post", 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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -350,7 +350,7 @@
var stringify_obj = JSON.stringify(obj); var stringify_obj = JSON.stringify(obj);
$.ajax({ $.ajax({
type: "Post", 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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -383,7 +383,7 @@
var stringify_obj = JSON.stringify(obj); var stringify_obj = JSON.stringify(obj);
$.ajax({ $.ajax({
type: "Post", 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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -431,7 +431,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -455,7 +455,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -471,7 +471,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -97,7 +97,7 @@
console.log(parking_spaces_name) console.log(parking_spaces_name)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -123,7 +123,7 @@
if (mode == "pass") { if (mode == "pass") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -144,7 +144,7 @@
if (mode == "car_num_check") { if (mode == "car_num_check") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -166,7 +166,7 @@
if (mode == "violation") { if (mode == "violation") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -193,7 +193,7 @@
if (mode == "pass") { if (mode == "pass") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -208,7 +208,7 @@
if (mode == "car_num_check") { if (mode == "car_num_check") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -223,7 +223,7 @@
if (mode == "violation") { if (mode == "violation") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -371,7 +371,7 @@
serial_num_choose = serial_num serial_num_choose = serial_num
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -568,7 +568,7 @@
if (mode == "pass") { if (mode == "pass") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -590,7 +590,7 @@
if (mode == "car_num_check") { if (mode == "car_num_check") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -614,7 +614,7 @@
console.log('violation') console.log('violation')
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -646,7 +646,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -671,7 +671,7 @@
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -816,7 +816,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "POST", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -835,7 +835,7 @@
if (mode == "violation") { if (mode == "violation") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -868,7 +868,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "POST", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -950,7 +950,7 @@
function put_violation_roi_1() { function put_violation_roi_1() {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -978,7 +978,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1051,7 +1051,7 @@
if (mode == "violation") { if (mode == "violation") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1084,7 +1084,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "POST", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1166,7 +1166,7 @@
if (mode == "pass") { if (mode == "pass") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1196,7 +1196,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1271,7 +1271,7 @@
if (mode == "violation") { if (mode == "violation") {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1304,7 +1304,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "POST", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -1332,7 +1332,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -1354,7 +1354,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -1370,7 +1370,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -145,9 +145,10 @@
<div class="col-xl-8 col-lg-8"> <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"> <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> <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> </h6>
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="chart-bar"> <div class="chart-bar">
@ -163,7 +164,7 @@
<div class="card-header py-3"> <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_LED_data()"></button> 字幕機狀態<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_LED_data()"></button>
</h6> </h6>
</div> </div>
<!-- Card Body --> <!-- Card Body -->
<div> <div>
@ -194,7 +195,7 @@
<div class="row"> <div class="row">
<!--每日車流量--> <!--每日車流量-->
<div class="col-xl-8 col-lg-8"> <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"> <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_in_yuntech_data_1()"></button> 每日車流量<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>
@ -237,7 +238,7 @@
// 取得 canvas 元素 // 取得 canvas 元素
var ctx1 = document.getElementById('in_car_Bar') var ctx1 = document.getElementById('in_car_Bar')
// 使用 Chart.js 繪製長條圖 // 使用 Chart.js 繪製長條圖
var myLineChart = new Chart(ctx1, { var myLineChart = new Chart(ctx1, {
type: 'line', type: 'line',
@ -271,8 +272,8 @@
} }
}); });
} }
function set_in_yuntech_table_1(labels, dailyTrafficData) { function set_in_yuntech_table_1(labels, dailyTrafficData) {
@ -373,7 +374,7 @@
//console.log(token_check) //console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { 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)
</script> </script>
<!--設置違規資料--> <!--設置違規資料-->
<script> <script>
function set_violation_data_1(Model) { function set_violation_data_1(Model) {
var date_list = [] var date_list = []
var violation_car_list = [] var violation_car_list = []
@ -433,7 +423,7 @@
in_car_list = [] in_car_list = []
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -463,7 +453,7 @@
} }
} }
set_in_yuntech_table(date_list, in_car_list) set_in_yuntech_table(date_list, in_car_list)
} }
</script> </script>
@ -473,7 +463,7 @@
function get_algorithm_data() { function get_algorithm_data() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_space_algorithm", url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -488,7 +478,7 @@
function get_algorithm_data_1() { function get_algorithm_data_1() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_space_algorithm", url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -517,7 +507,7 @@
var stringify_obj = JSON.stringify(data_1); var stringify_obj = JSON.stringify(data_1);
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -571,7 +561,7 @@
function get_LED_data() { function get_LED_data() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_lcd_instand", url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -775,7 +765,7 @@
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -793,7 +783,7 @@
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -812,7 +802,7 @@
location_name = location_name location_name = location_name
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_cam", url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -899,7 +889,7 @@
//console.log(token) //console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -921,7 +911,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -937,7 +927,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -51,7 +51,7 @@
function get_data(){ function get_data(){
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_space_algorithm", url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -66,7 +66,7 @@
function get_data_1() { function get_data_1() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_space_algorithm", url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -96,7 +96,7 @@
var stringify_obj = JSON.stringify(data_1); var stringify_obj = JSON.stringify(data_1);
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -157,7 +157,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -179,7 +179,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -195,7 +195,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -54,7 +54,7 @@
function get_data(){ function get_data(){
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_lcd_instand", url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -117,7 +117,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -139,7 +139,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -155,7 +155,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -68,7 +68,7 @@
function get_data() { function get_data() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_lcd_instand", url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -116,7 +116,7 @@
function Update_detail(parking_spaces_name){ function Update_detail(parking_spaces_name){
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -135,7 +135,7 @@
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -151,7 +151,7 @@
function Update_detail_2() { function Update_detail_2() {
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -177,7 +177,7 @@
var stringify_obj = JSON.stringify(Model); var stringify_obj = JSON.stringify(Model);
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
headers: { headers: {
'Authorization': token 'Authorization': token
@ -208,7 +208,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -230,7 +230,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -246,7 +246,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -69,7 +69,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_cam", url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -195,7 +195,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -219,7 +219,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -235,7 +235,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -215,7 +215,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -271,7 +271,7 @@
function get_recidivst_1(){ function get_recidivst_1(){
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Violation_car_table/recidivists", url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -323,7 +323,7 @@
//console.log(token_check) //console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -376,7 +376,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -398,7 +398,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -414,7 +414,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -194,7 +194,7 @@
var license_plate_number = document.getElementById("serch_text_id").value var license_plate_number = document.getElementById("serch_text_id").value
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -225,7 +225,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -297,7 +297,7 @@
function get_single_parking_space_car(name){ function get_single_parking_space_car(name){
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -328,8 +328,8 @@
var stringify_obj = JSON.stringify(obj); var stringify_obj = JSON.stringify(obj);
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
//url: "http://localhost:5174/api/Postural_Analysis_1", //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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -353,7 +353,7 @@
function delet_data(name){ function delet_data(name){
$.ajax({ $.ajax({
type: "DELETE", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -391,7 +391,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -413,7 +413,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -429,7 +429,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -216,7 +216,7 @@
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -234,7 +234,7 @@
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -253,7 +253,7 @@
location_name = location_name location_name = location_name
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_cam", url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -338,7 +338,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -362,7 +362,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -378,7 +378,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -93,7 +93,7 @@
//console.log(name) //console.log(name)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -151,7 +151,7 @@
console.log(time) console.log(time)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -172,7 +172,7 @@
var stringify_obj = JSON.stringify(Model); var stringify_obj = JSON.stringify(Model);
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -228,7 +228,7 @@
serial_number = car_serial_number serial_number = car_serial_number
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -260,7 +260,7 @@
} }
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -286,7 +286,7 @@
console.log(start_date) console.log(start_date)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -312,7 +312,7 @@
console.log(time) console.log(time)
$.ajax({ $.ajax({
type: "DELETE", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -336,7 +336,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -358,7 +358,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -374,7 +374,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -89,7 +89,7 @@
//console.log(name) //console.log(name)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Yuntech_in_car_table", url: "http://140.125.20.183:7700/api/Yuntech_in_car_table",
data: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -178,7 +178,7 @@
serial_number = car_serial_number serial_number = car_serial_number
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -209,7 +209,7 @@
} }
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -238,7 +238,7 @@
console.log(start_date) console.log(start_date)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
headers: { headers: {
'Authorization': token 'Authorization': token
@ -268,7 +268,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -290,7 +290,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -306,7 +306,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -203,7 +203,7 @@
/*0523*/ /*0523*/
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "http://localhost:5174/Users/authenticate", url: "http://140.125.20.183:7700/Users/authenticate",
data: stringify_obj, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
success: function (msg) { success: function (msg) {

View File

@ -205,7 +205,7 @@
//console.log(token_check) //console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -253,7 +253,7 @@
in_car_list = [] in_car_list = []
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -298,7 +298,7 @@
//console.log(token) //console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -320,7 +320,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -336,7 +336,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -212,7 +212,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -268,7 +268,7 @@
function get_recidivst_1() { function get_recidivst_1() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Violation_car_table/recidivists", url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -319,7 +319,7 @@
//console.log(token_check) //console.log(token_check)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -340,7 +340,7 @@
////console.log(name) ////console.log(name)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -501,7 +501,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -523,7 +523,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -539,7 +539,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -93,7 +93,7 @@
//console.log(name) //console.log(name)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -151,7 +151,7 @@
console.log(time) console.log(time)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -172,7 +172,7 @@
var stringify_obj = JSON.stringify(Model); var stringify_obj = JSON.stringify(Model);
$.ajax({ $.ajax({
type: "PUT", 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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -228,7 +228,7 @@
serial_number = car_serial_number serial_number = car_serial_number
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -260,7 +260,7 @@
} }
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -286,7 +286,7 @@
console.log(start_date) console.log(start_date)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -312,7 +312,7 @@
console.log(time) console.log(time)
$.ajax({ $.ajax({
type: "DELETE", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -336,7 +336,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -358,7 +358,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -374,7 +374,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -89,7 +89,7 @@
//console.log(name) //console.log(name)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Yuntech_in_car_table" , url: "http://140.125.20.183:7700/api/Yuntech_in_car_table" ,
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -175,7 +175,7 @@
serial_number = car_serial_number serial_number = car_serial_number
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -206,7 +206,7 @@
} }
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -232,7 +232,7 @@
console.log(start_date) console.log(start_date)
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -259,7 +259,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -281,7 +281,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -297,7 +297,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -49,7 +49,7 @@
var date = document.getElementById("serch_text_id").value var date = document.getElementById("serch_text_id").value
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -70,8 +70,8 @@
function get_data() { function get_data() {
$.ajax({ $.ajax({
type: "GET", 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,
url: "http://localhost:5174/api/Parking_spaces_history", url: "http://140.125.20.183:7700/api/Parking_spaces_history",
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -117,7 +117,7 @@
function select_data(){ function select_data(){
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -142,7 +142,7 @@
var name = document.getElementById("select_id").value var name = document.getElementById("select_id").value
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {

View File

@ -194,7 +194,7 @@
var license_plate_number = document.getElementById("serch_text_id").value var license_plate_number = document.getElementById("serch_text_id").value
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -225,7 +225,7 @@
console.log(token_check) console.log(token_check)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
data: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -297,7 +297,7 @@
function get_single_parking_space_car(name){ function get_single_parking_space_car(name){
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -328,8 +328,8 @@
var stringify_obj = JSON.stringify(obj); var stringify_obj = JSON.stringify(obj);
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "http://localhost:5174/api/Parking_spaces_total_table", url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
//url: "http://localhost:5174/api/Postural_Analysis_1", //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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -353,7 +353,7 @@
function delet_data(name){ function delet_data(name){
$.ajax({ $.ajax({
type: "DELETE", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -394,7 +394,7 @@
console.log(token) console.log(token)
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token_check', url: 'http://140.125.20.183:7700/Users/token_check',
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -416,7 +416,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/token-' + token, url: 'http://140.125.20.183:7700/Users/token-' + token,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },
@ -432,7 +432,7 @@
var token = localStorage.getItem('token_park_space'); var token = localStorage.getItem('token_park_space');
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: 'http://localhost:5174/Users/user_id-' + id, url: 'http://140.125.20.183:7700/Users/user_id-' + id,
headers: { headers: {
'Authorization': token 'Authorization': token
}, },

View File

@ -115,7 +115,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "Post", 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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -151,7 +151,7 @@
console.log(stringify_obj) console.log(stringify_obj)
$.ajax({ $.ajax({
type: "Post", 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: {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, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
@ -194,7 +194,7 @@
var name = document.getElementById("parking_spaces_name_id").value var name = document.getElementById("parking_spaces_name_id").value
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -274,7 +274,7 @@
serial_number = car_serial_number serial_number = car_serial_number
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {
@ -327,7 +327,7 @@
$.ajax({ $.ajax({
type: "Post", type: "Post",
url: "http://localhost:5174/api/Parking_spaces_history", url: "http://140.125.20.183:7700/api/Parking_spaces_history",
data: stringify_obj, data: stringify_obj,
contentType: "application/json", contentType: "application/json",
success: function (msg) { success: function (msg) {
@ -340,7 +340,7 @@
function delet_data_2(location_name, name, time) { function delet_data_2(location_name, name, time) {
$.ajax({ $.ajax({
type: "DELETE", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {

View File

@ -61,7 +61,7 @@
var name = document.getElementById("parking_spaces_name_id").value var name = document.getElementById("parking_spaces_name_id").value
$.ajax({ $.ajax({
type: "GET", 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: {}, data: {},
contentType: "application/json", contentType: "application/json",
headers: { headers: {