加入身分驗證
This commit is contained in:
parent
57045c44ed
commit
ecc2ca745d
|
@ -83,12 +83,15 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
url: "http://localhost:5174/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -102,12 +105,15 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data_2(Model)
|
set_data_2(Model)
|
||||||
|
@ -121,12 +127,15 @@
|
||||||
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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data_3(Model)
|
set_data_3(Model)
|
||||||
|
@ -229,7 +238,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
url: "http://localhost:5174/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",
|
||||||
|
@ -283,7 +292,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass",
|
url: "http://localhost:5174/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",
|
||||||
|
@ -341,7 +350,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_pass",
|
url: "http://localhost:5174/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",
|
||||||
|
@ -374,7 +383,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_violation",
|
url: "http://localhost:5174/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",
|
||||||
|
@ -415,13 +424,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -445,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -461,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
console.log(parking_spaces_name)
|
console.log(parking_spaces_name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_cam_ptz_pass/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_cam_ptz_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -646,10 +646,13 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
|
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
@ -668,10 +671,13 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name + "-serial_num-" + serial_num_choose.toString(),
|
url: "http://localhost:5174/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",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
@ -810,12 +816,15 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/",
|
url: "http://localhost:5174/api/Parking_spaces_roi_car_num_check/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
@ -826,7 +835,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -859,7 +868,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/",
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -941,7 +950,7 @@
|
||||||
function put_violation_roi_1() {
|
function put_violation_roi_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi/" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -969,7 +978,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi/" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1042,7 +1051,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1075,7 +1084,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/",
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1157,7 +1166,7 @@
|
||||||
if (mode == "pass") {
|
if (mode == "pass") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1187,7 +1196,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1262,7 +1271,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1295,7 +1304,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/",
|
url: "http://localhost:5174/api/Parking_spaces_roi_violation/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1316,13 +1325,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1344,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1360,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -372,9 +372,12 @@
|
||||||
//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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
get_violation_data_2(Model)
|
get_violation_data_2(Model)
|
||||||
|
|
||||||
|
@ -390,9 +393,12 @@
|
||||||
////console.log(name)
|
////console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
set_violation_data_1(Model)
|
set_violation_data_1(Model)
|
||||||
|
|
||||||
|
@ -544,9 +550,12 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table",
|
url: "http://localhost:5174/api/Yuntech_in_car_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
@ -629,7 +638,7 @@
|
||||||
function get_algorithm_data() {
|
function get_algorithm_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
url: "http://localhost:5174/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -644,7 +653,7 @@
|
||||||
function get_algorithm_data_1() {
|
function get_algorithm_data_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
url: "http://localhost:5174/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -673,7 +682,7 @@
|
||||||
var stringify_obj = JSON.stringify(data_1);
|
var stringify_obj = JSON.stringify(data_1);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
url: "http://localhost:5174/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -727,7 +736,7 @@
|
||||||
function get_LED_data() {
|
function get_LED_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
url: "http://localhost:5174/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -931,7 +940,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -949,7 +958,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -968,7 +977,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
url: "http://localhost:5174/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1048,13 +1057,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1076,7 +1086,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1092,7 +1102,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
function get_data(){
|
function get_data(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_space_algorithm",
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
url: "http://localhost:5174/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -150,13 +150,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -178,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -194,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
function get_data(){
|
function get_data(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
url: "http://localhost:5174/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -110,13 +110,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -138,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -154,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
function get_data() {
|
function get_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_lcd_instand/parking_space_area-" + parking_spaces_name,
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_lcd_instand/" + Model.lcd_ip,
|
url: "http://localhost:5174/api/Parking_spaces_lcd_instand/" + Model.lcd_ip,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -201,13 +201,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -229,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -245,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -69,7 +69,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_cam",
|
url: "http://localhost:5174/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -188,13 +188,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -218,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -234,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -215,9 +215,12 @@
|
||||||
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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -268,9 +271,12 @@
|
||||||
function get_recidivst_1(){
|
function get_recidivst_1(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
|
url: "http://localhost:5174/api/Violation_car_table/recidivists",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
set_recidivst_1(Model)
|
set_recidivst_1(Model)
|
||||||
|
@ -316,9 +322,12 @@
|
||||||
//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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
get_violation_data_2(Model)
|
get_violation_data_2(Model)
|
||||||
|
|
||||||
|
@ -334,9 +343,12 @@
|
||||||
////console.log(name)
|
////console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
set_violation_data_1(Model)
|
set_violation_data_1(Model)
|
||||||
|
|
||||||
|
@ -485,13 +497,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -513,7 +526,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -529,7 +542,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -194,9 +194,12 @@
|
||||||
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://140.125.20.183:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
url: "http://localhost:5174/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
document.getElementById("park_space_name_text_id").value = Model[0].parking_spaces_name
|
document.getElementById("park_space_name_text_id").value = Model[0].parking_spaces_name
|
||||||
|
@ -222,9 +225,12 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -291,9 +297,12 @@
|
||||||
function get_single_parking_space_car(name){
|
function get_single_parking_space_car(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
var total = document.getElementById(name+"_total").innerHTML
|
var total = document.getElementById(name+"_total").innerHTML
|
||||||
console.log(total)
|
console.log(total)
|
||||||
|
@ -319,11 +328,14 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
//url: "http://140.125.20.183:7700/api/Postural_Analysis_1",
|
//url: "http://localhost:5174/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",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
add_park_space_view.close()
|
add_park_space_view.close()
|
||||||
|
@ -341,9 +353,12 @@
|
||||||
function delet_data(name){
|
function delet_data(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name,
|
url: "http://localhost:5174/api/Parking_spaces_total_table/"+name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
get_data()
|
get_data()
|
||||||
|
@ -369,13 +384,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -397,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -413,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -216,7 +216,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
url: "http://localhost:5174/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://140.125.20.183:7700/api/Parking_spaces_cam",
|
url: "http://localhost:5174/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -331,13 +331,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -361,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -377,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -93,9 +93,12 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -148,9 +151,12 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
updata_violation_car_put(Model)
|
updata_violation_car_put(Model)
|
||||||
|
@ -166,9 +172,12 @@
|
||||||
var stringify_obj = JSON.stringify(Model);
|
var stringify_obj = JSON.stringify(Model);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
// console.log(Model)
|
// console.log(Model)
|
||||||
//updata_violation_car_put(Model)
|
//updata_violation_car_put(Model)
|
||||||
|
@ -219,9 +228,12 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
table = "<tr>";
|
table = "<tr>";
|
||||||
|
@ -248,9 +260,12 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
url: "http://localhost:5174/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -271,9 +286,12 @@
|
||||||
console.log(start_date)
|
console.log(start_date)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://localhost:5174/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: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -294,9 +312,12 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
get_data()
|
get_data()
|
||||||
|
@ -308,13 +329,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -336,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -352,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -89,9 +89,12 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table",
|
url: "http://localhost:5174/api/Yuntech_in_car_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -172,9 +175,12 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
table = "<tr>";
|
table = "<tr>";
|
||||||
|
@ -200,9 +206,12 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
url: "http://localhost:5174/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -223,9 +232,12 @@
|
||||||
console.log(start_date)
|
console.log(start_date)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://localhost:5174/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: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -240,13 +252,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -268,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -284,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
/*0523*/
|
/*0523*/
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/Users/authenticate",
|
url: "http://localhost:5174/Users/authenticate",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
|
|
|
@ -204,9 +204,12 @@
|
||||||
//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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
get_violation_data_2(Model)
|
get_violation_data_2(Model)
|
||||||
|
|
||||||
|
@ -222,9 +225,12 @@
|
||||||
////console.log(name)
|
////console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
set_violation_data_1(Model)
|
set_violation_data_1(Model)
|
||||||
|
|
||||||
|
@ -376,9 +382,12 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table",
|
url: "http://localhost:5174/api/Yuntech_in_car_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
@ -459,13 +468,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -487,7 +497,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -503,7 +513,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -212,9 +212,12 @@
|
||||||
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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -265,9 +268,12 @@
|
||||||
function get_recidivst_1() {
|
function get_recidivst_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
|
url: "http://localhost:5174/api/Violation_car_table/recidivists",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
set_recidivst_1(Model)
|
set_recidivst_1(Model)
|
||||||
|
@ -313,9 +319,12 @@
|
||||||
//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://localhost:5174/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
get_violation_data_2(Model)
|
get_violation_data_2(Model)
|
||||||
|
|
||||||
|
@ -331,9 +340,12 @@
|
||||||
////console.log(name)
|
////console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
set_violation_data_1(Model)
|
set_violation_data_1(Model)
|
||||||
|
|
||||||
|
@ -482,13 +494,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -510,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -526,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -93,9 +93,12 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -148,9 +151,12 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
updata_violation_car_put(Model)
|
updata_violation_car_put(Model)
|
||||||
|
@ -166,9 +172,12 @@
|
||||||
var stringify_obj = JSON.stringify(Model);
|
var stringify_obj = JSON.stringify(Model);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
// console.log(Model)
|
// console.log(Model)
|
||||||
//updata_violation_car_put(Model)
|
//updata_violation_car_put(Model)
|
||||||
|
@ -219,9 +228,12 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
table = "<tr>";
|
table = "<tr>";
|
||||||
|
@ -248,9 +260,12 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
url: "http://localhost:5174/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -271,9 +286,12 @@
|
||||||
console.log(start_date)
|
console.log(start_date)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://localhost:5174/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: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -294,9 +312,12 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
get_data()
|
get_data()
|
||||||
|
@ -308,13 +329,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -336,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -352,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -89,9 +89,12 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table" ,
|
url: "http://localhost:5174/api/Yuntech_in_car_table" ,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -172,9 +175,12 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
table = "<tr>";
|
table = "<tr>";
|
||||||
|
@ -200,9 +206,12 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
url: "http://localhost:5174/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -223,9 +232,12 @@
|
||||||
console.log(start_date)
|
console.log(start_date)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://localhost:5174/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: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -240,13 +252,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -268,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -284,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,9 +49,12 @@
|
||||||
var date = document.getElementById("serch_text_id").value
|
var date = document.getElementById("serch_text_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history/date-" + date,
|
url: "http://localhost:5174/api/Parking_spaces_history/date-" + date,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -67,10 +70,13 @@
|
||||||
function get_data() {
|
function get_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
//url: "http://140.125.20.183:7700/api/Parking_spaces_history/parking_space_area-" + name,
|
//url: "http://localhost:5174/api/Parking_spaces_history/parking_space_area-" + name,
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
url: "http://localhost:5174/api/Parking_spaces_history",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -111,9 +117,12 @@
|
||||||
function select_data(){
|
function select_data(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
var obj = document.getElementById("select_id");
|
var obj = document.getElementById("select_id");
|
||||||
|
@ -133,9 +142,12 @@
|
||||||
var name = document.getElementById("select_id").value
|
var name = document.getElementById("select_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history/parking_space_area-" + name,
|
url: "http://localhost:5174/api/Parking_spaces_history/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -148,9 +160,10 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log("TEST_TOKEN")
|
console.log("TEST_TOKEN")
|
||||||
if (token) {
|
if (token) {
|
||||||
// 执行所需的操作
|
// 执行所需的操作
|
||||||
|
|
|
@ -194,9 +194,12 @@
|
||||||
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://140.125.20.183:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
url: "http://localhost:5174/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
document.getElementById("park_space_name_text_id").value = Model[0].parking_spaces_name
|
document.getElementById("park_space_name_text_id").value = Model[0].parking_spaces_name
|
||||||
|
@ -222,9 +225,12 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
set_data(Model)
|
set_data(Model)
|
||||||
|
@ -291,9 +297,12 @@
|
||||||
function get_single_parking_space_car(name){
|
function get_single_parking_space_car(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
var total = document.getElementById(name+"_total").innerHTML
|
var total = document.getElementById(name+"_total").innerHTML
|
||||||
console.log(total)
|
console.log(total)
|
||||||
|
@ -319,11 +328,14 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
url: "http://localhost:5174/api/Parking_spaces_total_table",
|
||||||
//url: "http://140.125.20.183:7700/api/Postural_Analysis_1",
|
//url: "http://localhost:5174/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",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
add_park_space_view.close()
|
add_park_space_view.close()
|
||||||
|
@ -341,9 +353,12 @@
|
||||||
function delet_data(name){
|
function delet_data(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name,
|
url: "http://localhost:5174/api/Parking_spaces_total_table/"+name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
get_data()
|
get_data()
|
||||||
|
@ -372,13 +387,14 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
url: 'http://localhost:5174/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -400,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://140.125.20.183:7700/Users/token-' + token,
|
url: 'http://localhost:5174/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -416,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://140.125.20.183:7700/Users/user_id-' + id,
|
url: 'http://localhost:5174/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -115,10 +115,13 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_instant",
|
url: "http://localhost:5174/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",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
//add_car_view.close()
|
//add_car_view.close()
|
||||||
|
@ -148,10 +151,13 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
url: "http://localhost:5174/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",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
add_car_view.close()
|
add_car_view.close()
|
||||||
|
@ -188,9 +194,12 @@
|
||||||
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://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
//console.log(Model)
|
//console.log(Model)
|
||||||
All_Model = Model
|
All_Model = Model
|
||||||
|
@ -265,9 +274,12 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area_name-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_area_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
table = "<tr>";
|
table = "<tr>";
|
||||||
|
@ -315,7 +327,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
url: "http://localhost:5174/api/Parking_spaces_history",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
|
@ -328,9 +340,12 @@
|
||||||
function delet_data_2(location_name, name, time) {
|
function delet_data_2(location_name, name, time) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_name-" + location_name + "-time-" + time,
|
url: "http://localhost:5174/api/Parking_spaces_instant/parking_space_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
get_data()
|
get_data()
|
||||||
|
@ -341,9 +356,10 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log("TEST_TOKEN")
|
console.log("TEST_TOKEN")
|
||||||
if (token) {
|
if (token) {
|
||||||
// 执行所需的操作
|
// 执行所需的操作
|
||||||
|
|
|
@ -61,9 +61,12 @@
|
||||||
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://140.125.20.183:7700/api/Parking_spaces_total_table/" + name,
|
url: "http://localhost:5174/api/Parking_spaces_total_table/" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
success: function (Model) {
|
success: function (Model) {
|
||||||
console.log(Model)
|
console.log(Model)
|
||||||
//set_data(Model)
|
//set_data(Model)
|
||||||
|
@ -219,9 +222,10 @@
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
|
var token
|
||||||
function token_check() {
|
function token_check() {
|
||||||
// 检查本地存储中是否存在JWT令牌
|
// 检查本地存储中是否存在JWT令牌
|
||||||
var token = localStorage.getItem('token_park_space');
|
token = localStorage.getItem('token_park_space');
|
||||||
console.log("TEST_TOKEN")
|
console.log("TEST_TOKEN")
|
||||||
if (token) {
|
if (token) {
|
||||||
// 执行所需的操作
|
// 执行所需的操作
|
||||||
|
|
|
@ -477,3 +477,4 @@
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user