修改管理員介面前端
This commit is contained in:
parent
b5a337c7a1
commit
a4c1b36779
|
@ -32,5 +32,10 @@ namespace Parking_spaces.Controllers
|
||||||
{
|
{
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IActionResult ParkingLog()
|
||||||
|
{
|
||||||
|
return View();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace Parking_spaces.Controllers
|
||||||
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token);
|
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token);
|
||||||
|
|
||||||
// 构建 API 请求的 URL
|
// 构建 API 请求的 URL
|
||||||
string apiUrl = "http://localhost:7700/Users/token";
|
string apiUrl = "http://140.125.20.183:7700/Users/token";
|
||||||
|
|
||||||
// 调用需要身份验证的 API
|
// 调用需要身份验证的 API
|
||||||
HttpResponseMessage response = await _httpClient.GetAsync(apiUrl);
|
HttpResponseMessage response = await _httpClient.GetAsync(apiUrl);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"windowsAuthentication": false,
|
"windowsAuthentication": false,
|
||||||
"anonymousAuthentication": true,
|
"anonymousAuthentication": true,
|
||||||
"iisExpress": {
|
"iisExpress": {
|
||||||
"applicationUrl": "http://localhost:2361",
|
"applicationUrl": "http://140.125.20.183:2361",
|
||||||
"sslPort": 44352
|
"sslPort": 44352
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -238,7 +238,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -292,7 +292,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_pass",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -350,7 +350,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam_ptz_pass",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_pass",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -383,7 +383,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam_ptz_violation",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_violation",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -431,7 +431,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -455,7 +455,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -471,7 +471,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/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://localhost:7700/api/Parking_spaces_cam/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
if (mode == "pass") {
|
if (mode == "pass") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam_ptz_pass/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_pass/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
if (mode == "car_num_check") {
|
if (mode == "car_num_check") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam_ptz_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
if (mode == "pass") {
|
if (mode == "pass") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -208,7 +208,7 @@
|
||||||
if (mode == "car_num_check") {
|
if (mode == "car_num_check") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -371,7 +371,7 @@
|
||||||
serial_num_choose = serial_num
|
serial_num_choose = serial_num
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam_ptz_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -568,7 +568,7 @@
|
||||||
if (mode == "pass") {
|
if (mode == "pass") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -590,7 +590,7 @@
|
||||||
if (mode == "car_num_check") {
|
if (mode == "car_num_check") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -614,7 +614,7 @@
|
||||||
console.log('violation')
|
console.log('violation')
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -646,7 +646,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
|
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -671,7 +671,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name + "-serial_num-" + serial_num_choose.toString(),
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/parking_spaces_name-" + parking_spaces_name + "-serial_num-" + serial_num_choose.toString(),
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
|
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -816,7 +816,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_car_num_check/",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_car_num_check/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -835,7 +835,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -868,7 +868,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -950,7 +950,7 @@
|
||||||
function put_violation_roi_1() {
|
function put_violation_roi_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -978,7 +978,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1051,7 +1051,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1084,7 +1084,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1166,7 +1166,7 @@
|
||||||
if (mode == "pass") {
|
if (mode == "pass") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1196,7 +1196,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_pass/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1271,7 +1271,7 @@
|
||||||
if (mode == "violation") {
|
if (mode == "violation") {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/parking_spaces_name-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1304,7 +1304,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_roi_violation/",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_roi_violation/",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1332,7 +1332,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1354,7 +1354,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1370,7 +1370,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/El125_car_table",
|
url: "http://140.125.20.183:7700/api/El125_car_table",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -145,7 +145,7 @@
|
||||||
function get_data() {
|
function get_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/El125_car_table",
|
url: "http://140.125.20.183:7700/api/El125_car_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
function delet_data(license_plate_number) {
|
function delet_data(license_plate_number) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/El125_car_table/" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/El125_car_table/" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -249,7 +249,7 @@
|
||||||
<!--Excel下載-->
|
<!--Excel下載-->
|
||||||
<script>
|
<script>
|
||||||
function downloadExcel() {
|
function downloadExcel() {
|
||||||
fetch('http://localhost:7700/api/ParkingLogs/DownloadCurrentStatusExcel', {
|
fetch('http://140.125.20.183:7700/api/ParkingLogs/DownloadCurrentStatusExcel', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
'Accept': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
|
@ -436,7 +436,7 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -485,7 +485,7 @@
|
||||||
in_car_list = []
|
in_car_list = []
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/get_day_in_car-" + day,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -525,7 +525,7 @@
|
||||||
function get_algorithm_data() {
|
function get_algorithm_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -540,7 +540,7 @@
|
||||||
function get_algorithm_data_1() {
|
function get_algorithm_data_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -569,7 +569,7 @@
|
||||||
var stringify_obj = JSON.stringify(data_1);
|
var stringify_obj = JSON.stringify(data_1);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -623,7 +623,7 @@
|
||||||
function get_LED_data() {
|
function get_LED_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -668,7 +668,7 @@
|
||||||
function get_monthly_rent_data() {
|
function get_monthly_rent_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_monthly_rent_number",
|
url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number",
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -719,7 +719,7 @@
|
||||||
var stringify_obj = JSON.stringify(data);
|
var stringify_obj = JSON.stringify(data);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Yuntech_monthly_rent_number/" + category,
|
url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number/" + category,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -739,7 +739,7 @@
|
||||||
function get_yuntech_parking_data() {
|
function get_yuntech_parking_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking",
|
url: "http://140.125.20.183:7700/api/Yuntech_parking",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -777,7 +777,7 @@
|
||||||
function Update_now_num(all_num) {
|
function Update_now_num(all_num) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking/" + all_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_parking/" + all_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -796,7 +796,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking/" + Model.all_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_parking/" + Model.all_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -828,7 +828,7 @@
|
||||||
IP_1 = IP
|
IP_1 = IP
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP,
|
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -850,7 +850,7 @@
|
||||||
//console.log(IP_1)
|
//console.log(IP_1)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP_1,
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1049,7 +1049,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1067,7 +1067,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1085,7 +1085,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1104,7 +1104,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1123,7 +1123,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1256,7 +1256,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1278,7 +1278,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1294,7 +1294,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/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://localhost:7700/api/Parking_space_algorithm",
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
function get_data_1() {
|
function get_data_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
var stringify_obj = JSON.stringify(data_1);
|
var stringify_obj = JSON.stringify(data_1);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -372,7 +372,7 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -421,7 +421,7 @@
|
||||||
in_car_list = []
|
in_car_list = []
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/get_day_in_car-" + day,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -461,7 +461,7 @@
|
||||||
function get_algorithm_data() {
|
function get_algorithm_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -476,7 +476,7 @@
|
||||||
function get_algorithm_data_1() {
|
function get_algorithm_data_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -505,7 +505,7 @@
|
||||||
var stringify_obj = JSON.stringify(data_1);
|
var stringify_obj = JSON.stringify(data_1);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -559,7 +559,7 @@
|
||||||
function get_LED_data() {
|
function get_LED_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -618,7 +618,7 @@
|
||||||
IP_1 = IP
|
IP_1 = IP
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP,
|
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -640,7 +640,7 @@
|
||||||
//console.log(IP_1)
|
//console.log(IP_1)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP_1,
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -839,7 +839,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -857,7 +857,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -875,7 +875,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -894,7 +894,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -913,7 +913,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -1035,7 +1035,7 @@
|
||||||
/*0523*/
|
/*0523*/
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/Users/authenticate",
|
url: "http://140.125.20.183:7700/Users/authenticate",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
|
@ -1076,7 +1076,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1098,7 +1098,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -1114,7 +1114,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/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://localhost:7700/api/Parking_spaces_lcd_instand",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/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://localhost:7700/api/Parking_spaces_lcd_instand",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
function Update_detail(parking_spaces_name){
|
function Update_detail(parking_spaces_name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table/" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + parking_spaces_name,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
function Update_detail_2() {
|
function Update_detail_2() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand/parking_space_area-" + parking_spaces_name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand/parking_space_area-" + parking_spaces_name,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
var stringify_obj = JSON.stringify(Model);
|
var stringify_obj = JSON.stringify(Model);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand/" + Model.lcd_ip,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand/" + Model.lcd_ip,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -208,7 +208,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -246,7 +246,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/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://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -129,7 +129,7 @@
|
||||||
IP_1 = IP
|
IP_1 = IP
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP_1,
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
console.log(IP_1)
|
console.log(IP_1)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP_1,
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization':token
|
'Authorization':token
|
||||||
},
|
},
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -219,7 +219,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -235,7 +235,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -219,7 +219,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -275,7 +275,7 @@
|
||||||
function get_recidivst_1(){
|
function get_recidivst_1(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/recidivists",
|
url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -327,7 +327,7 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -370,7 +370,7 @@
|
||||||
<script>
|
<script>
|
||||||
function export_excel() {
|
function export_excel() {
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Violation_car_table/export-all_excel',{
|
fetch('http://140.125.20.183:7700/api/Violation_car_table/export-all_excel',{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -418,7 +418,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -440,7 +440,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -456,7 +456,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list/license_plate_number-" + license_plate_number, // 使用車牌號碼查詢
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list/license_plate_number-" + license_plate_number, // 使用車牌號碼查詢
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list",
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
|
|
||||||
<!--上傳excel-->
|
<!--上傳excel-->
|
||||||
<script>
|
<script>
|
||||||
const api_url = 'http://localhost:7700'; // 定义 api_url
|
const api_url = 'http://140.125.20.183:7700'; // 定义 api_url
|
||||||
|
|
||||||
document.getElementById('uploadForm').onsubmit = function (event) {
|
document.getElementById('uploadForm').onsubmit = function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -233,7 +233,7 @@
|
||||||
function delet_data(license_plate_number) {
|
function delet_data(license_plate_number) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list/" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list/" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -252,7 +252,7 @@
|
||||||
function get_data() {
|
function get_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list",
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -303,7 +303,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -325,7 +325,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -341,7 +341,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
var license_plate_number = document.getElementById("serch_text_id").value
|
var license_plate_number = document.getElementById("serch_text_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -225,7 +225,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -297,7 +297,7 @@
|
||||||
function get_single_parking_space_car(name){
|
function get_single_parking_space_car(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -328,8 +328,8 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
//url: "http://localhost:7700/api/Postural_Analysis_1",
|
//url: "http://140.125.20.183:7700/api/Postural_Analysis_1",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -353,7 +353,7 @@
|
||||||
function delet_data(name){
|
function delet_data(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table/"+name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -391,7 +391,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -413,7 +413,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -429,7 +429,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
IP_1 = IP
|
IP_1 = IP
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP,
|
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
console.log(IP_1)
|
console.log(IP_1)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP_1,
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -294,7 +294,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -312,7 +312,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -330,7 +330,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -350,7 +350,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -369,7 +369,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -488,7 +488,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -512,7 +512,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -528,7 +528,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
params.append('interval', timeInterval); // 傳遞時間間隔
|
params.append('interval', timeInterval); // 傳遞時間間隔
|
||||||
params.append('page', page); // 傳遞當前頁碼
|
params.append('page', page); // 傳遞當前頁碼
|
||||||
|
|
||||||
const url = `http://localhost:7700/api/ParkingLogs/GetHourlyParkingLogs?${params.toString()}`; // 調用 GetHourlyParkingLogs API
|
const url = `http://140.125.20.183:7700/api/ParkingLogs/GetHourlyParkingLogs?${params.toString()}`; // 調用 GetHourlyParkingLogs API
|
||||||
|
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
@ -195,7 +195,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 傳遞時間間隔以便後端生成相應的 Excel
|
// 傳遞時間間隔以便後端生成相應的 Excel
|
||||||
window.open(`http://localhost:7700/api/ParkingLogs/DownloadExcel?startDate=${startDate}&endDate=${endDate}&interval=${timeInterval}`, '_blank');
|
window.open(`http://140.125.20.183:7700/api/ParkingLogs/DownloadExcel?startDate=${startDate}&endDate=${endDate}&interval=${timeInterval}`, '_blank');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -250,7 +250,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
var stringify_obj = JSON.stringify(Model);
|
var stringify_obj = JSON.stringify(Model);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -269,7 +269,7 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
console.log(start_date)
|
console.log(start_date)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -320,7 +320,7 @@
|
||||||
var start_date = document.getElementById("start_date_id").value
|
var start_date = document.getElementById("start_date_id").value
|
||||||
var end_date = document.getElementById("end_date_id").value
|
var end_date = document.getElementById("end_date_id").value
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, {
|
fetch('http://140.125.20.183:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -361,7 +361,7 @@
|
||||||
function plate_export_excel() {
|
function plate_export_excel() {
|
||||||
var license_plate_number = document.getElementById("serch_text_id").value
|
var license_plate_number = document.getElementById("serch_text_id").value
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Violation_car_table/export-excel_license_plate_number-'+license_plate_number, {
|
fetch('http://140.125.20.183:7700/api/Violation_car_table/export-excel_license_plate_number-'+license_plate_number, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -407,7 +407,7 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -431,7 +431,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -453,7 +453,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -469,7 +469,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
var select = document.getElementById("location_select_id")
|
var select = document.getElementById("location_select_id")
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location_name" ,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name" ,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -198,7 +198,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -221,7 +221,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -340,7 +340,7 @@
|
||||||
// 發送AJAX GET請求
|
// 發送AJAX GET請求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -407,7 +407,7 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -443,7 +443,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -474,7 +474,7 @@
|
||||||
console.log(select_location)
|
console.log(select_location)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location-" + select_location,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location-" + select_location,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -505,7 +505,7 @@
|
||||||
var end_time = new Date(end_date).toISOString();
|
var end_time = new Date(end_date).toISOString();
|
||||||
|
|
||||||
// 構建請求URL
|
// 構建請求URL
|
||||||
var url = "http://localhost:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel";
|
var url = "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel";
|
||||||
|
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
|
@ -551,7 +551,7 @@
|
||||||
<script>
|
<script>
|
||||||
function export_excel() {
|
function export_excel() {
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Yuntech_in_car_table/export-all_excel', {
|
fetch('http://140.125.20.183:7700/api/Yuntech_in_car_table/export-all_excel', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -599,7 +599,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -621,7 +621,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -637,7 +637,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/Users/authenticate",
|
url: "http://140.125.20.183:7700/Users/authenticate",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
|
|
|
@ -1,17 +1,106 @@
|
||||||
|
@{
|
||||||
@{
|
|
||||||
ViewData["Title"] = "Manager_Index";
|
ViewData["Title"] = "Manager_Index";
|
||||||
Layout = "~/Views/Shared/_Layout_Manager.cshtml";
|
Layout = "~/Views/Shared/_Layout_Manager.cshtml";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<!--演算法狀態-CSS-->
|
||||||
|
<style>
|
||||||
|
.switch {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 50px; /* 寬度 */
|
||||||
|
height: 20px; /* 高度調整 */
|
||||||
|
padding: 2px; /* 內邊距,讓開關有一些間距 */
|
||||||
|
margin: 0; /* 外邊距 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch input {
|
||||||
|
opacity: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider {
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
top: 0; /* 確保滑塊與開關的上邊緣對齊 */
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0; /* 底部對齊,保持和外部高度一致 */
|
||||||
|
background-color: #ccc;
|
||||||
|
-webkit-transition: .4s;
|
||||||
|
transition: .4s;
|
||||||
|
border-radius: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider:before {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
height: 16px; /* 調整圓點的高度 */
|
||||||
|
width: 16px; /* 調整圓點的寬度 */
|
||||||
|
left: 2px; /* 圓點的左邊距 */
|
||||||
|
top: 2px; /* 圓點的上邊距 */
|
||||||
|
background-color: white;
|
||||||
|
-webkit-transition: .4s;
|
||||||
|
transition: .4s;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + .slider {
|
||||||
|
background-color: #6f42c1; /* 選中時的背景顏色 */
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + .slider:before {
|
||||||
|
-webkit-transform: translateX(26px); /* 選中時,圓點移動的距離 */
|
||||||
|
-ms-transform: translateX(26px);
|
||||||
|
transform: translateX(26px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 自定義CSS:移除「每日違規數量」和「每日車流量」之間的空白 */
|
||||||
|
.card.shadow {
|
||||||
|
margin-bottom: 0px !important; /* 移除卡片下方的邊距 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.row > .col-xl-8, .row > .col-lg-8 {
|
||||||
|
padding-bottom: 0; /* 調整列之間的內距 */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 其他現有樣式 */
|
||||||
|
html, body {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#myMap {
|
||||||
|
height: 30vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_id {
|
||||||
|
display: block; /* 使圖像為塊級元素,以便使用 margin:auto; */
|
||||||
|
margin: auto; /* 將圖像置中 */
|
||||||
|
width: 80%
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th, .table td {
|
||||||
|
text-align: center; /* 居中對齊 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th:nth-child(1), .table td:nth-child(1) {
|
||||||
|
width: 200px; /* 根據需要調整寬度 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th:nth-child(2), .table td:nth-child(2) {
|
||||||
|
width: 200px; /* 根據需要調整寬度 */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<h1>管理員模式</h1>
|
<h1>管理員模式</h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!--每日違規數量-->
|
<!--每日違規數量-->
|
||||||
<div class="col-xl-8 col-lg-8">
|
<div class="col-xl-8 col-lg-8">
|
||||||
<div class="card shadow mb-8">
|
<div class="card shadow mb-0">
|
||||||
|
<!-- 將 mb-2 改為 mb-0 -->
|
||||||
<div class="card-header py-3">
|
<div class="card-header py-3">
|
||||||
<h6 class="m-0 font-weight-bold text-primary">
|
<h6 class="m-0 font-weight-bold text-primary">
|
||||||
每日違規數量
|
每日違規數量
|
||||||
|
@ -24,44 +113,55 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!--字幕機狀態-->
|
|
||||||
|
<!--演算法狀態-->
|
||||||
<div class="col-xl-4 col-lg-4">
|
<div class="col-xl-4 col-lg-4">
|
||||||
<div class="card shadow mb-4">
|
<div class="card shadow mb-4">
|
||||||
<!-- Card Header - Dropdown -->
|
|
||||||
<div class="card-header py-3">
|
<div class="card-header py-3">
|
||||||
<h6 class="m-0 font-weight-bold text-primary">
|
<h6 class="m-0 font-weight-bold text-primary">演算法狀態</h6>
|
||||||
各停車場車位數量<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_LED_data()"></button>
|
|
||||||
</h6>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Card Body -->
|
|
||||||
<div>
|
<div>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>演算法名稱</th>
|
||||||
停車場位置
|
<th>狀態</th>
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
剩餘車位
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody id="demo"></tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<tbody id="LED_table">
|
<!--字幕機狀態-->
|
||||||
</tbody>
|
<div class="card shadow mb-4">
|
||||||
|
<div class="card-header py-3">
|
||||||
|
<h6 class="m-0 font-weight-bold text-primary">
|
||||||
|
字幕機狀態
|
||||||
|
<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_LED_data()"></button>
|
||||||
|
</h6>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>停車場位置</th>
|
||||||
|
<th>字幕機IP</th>
|
||||||
|
<th>顯示參數</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="LED_table"></tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!--每日車流量-->
|
<!--每日車流量-->
|
||||||
<div class="col-xl-8 col-lg-8">
|
<div class="col-xl-8 col-lg-8">
|
||||||
<div class="card shadow mb-8">
|
<div class="card shadow mb-0">
|
||||||
<div class="card-header py-3">
|
<div class="card-header py-3">
|
||||||
<h6 class="m-0 font-weight-bold text-primary">
|
<h6 class="m-0 font-weight-bold text-primary">
|
||||||
每日車流量<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_in_yuntech_data_1()"></button>
|
每日車流量<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_in_yuntech_data_1()"></button>
|
||||||
|
@ -74,69 +174,126 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--校園總車位數量-->
|
<!-- 總車位與月租Excel 文件 及 校園車位信息 -->
|
||||||
<div class="col-xl-4 col-lg-4">
|
<style>
|
||||||
|
.table th, .table td {
|
||||||
|
text-align: center; /* 居中對齊 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th:nth-child(1), .table td:nth-child(1) {
|
||||||
|
width: 200px; /* 根據需要調整寬度 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.table th:nth-child(2), .table td:nth-child(2) {
|
||||||
|
width: 200px; /* 根據需要調整寬度 */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="col-xl-8 col-lg-8">
|
||||||
<div class="card shadow mb-4">
|
<div class="card shadow mb-4">
|
||||||
<!-- Card Header - Dropdown -->
|
|
||||||
<div class="card-header py-3">
|
<div class="card-header py-3">
|
||||||
<h6 class="m-0 font-weight-bold text-primary">
|
<h6 class="m-0 font-weight-bold text-primary">
|
||||||
校園總車位數量<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_yuntech_parking_data()"></button>
|
下載 總車位與月租Excel 文件 及 校園車位信息
|
||||||
|
<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_yuntech_parking_data()"></button>
|
||||||
</h6>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<!-- Card Body -->
|
<div class="card-body">
|
||||||
|
<!-- 下載 Excel 文件按鈕 -->
|
||||||
|
<div class="mb-3">
|
||||||
|
<button class="btn btn-primary" onclick="downloadExcel()">即時車位下載 Excel</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 校園總車位數量表格 -->
|
||||||
<div>
|
<div>
|
||||||
<table class="table">
|
<h6 class="font-weight-bold text-primary">校園總車位數量</h6>
|
||||||
|
<table class="table table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>總車位</th>
|
||||||
總車位
|
<th>剩餘車位</th>
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
剩餘車位
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody id="parking_all_table">
|
<tbody id="parking_all_table">
|
||||||
|
`
|
||||||
|
<!-- 動態更新校園總車位與剩餘車位 -->
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 校園當前車流量表格 -->
|
||||||
|
<div>
|
||||||
|
<h6 class="font-weight-bold text-primary">校園當前車流量</h6>
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>類別</th>
|
||||||
|
<th>數量</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="monthly_table">
|
||||||
|
<!-- 動態更新月租與臨停車輛數據 -->
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--彈跳視窗-->
|
||||||
|
<div>
|
||||||
|
<dialog id="RTSP_view" style="width:80%;">
|
||||||
|
<div>
|
||||||
|
<p id="choose_cam_id"></p>
|
||||||
|
<button class="btn btn-danger" style="float:right" onclick="RTSP_Close();"> 關閉</button>
|
||||||
|
<img id="img_id" />
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
</div>
|
||||||
|
<!--Excel下載-->
|
||||||
|
<script>
|
||||||
|
function downloadExcel() {
|
||||||
|
fetch('http://140.125.20.183:7700/api/ParkingLogs/DownloadCurrentStatusExcel', {
|
||||||
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'Accept': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(response => {
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error('Network response was not ok.');
|
||||||
|
}
|
||||||
|
return response.blob();
|
||||||
|
})
|
||||||
|
.then(blob => {
|
||||||
|
const url = window.URL.createObjectURL(blob);
|
||||||
|
const a = document.createElement('a');
|
||||||
|
a.href = url;
|
||||||
|
// 獲取當前日期、星期幾和時間
|
||||||
|
const now = new Date();
|
||||||
|
const options = { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', hour12: false };
|
||||||
|
const formattedDate = now.toLocaleDateString('zh-TW', options).replace(/\//g, '-'); // 格式化日期
|
||||||
|
const weekDay = now.toLocaleString('zh-TW', { weekday: 'long' }); // 獲取星期幾
|
||||||
|
|
||||||
|
|
||||||
|
// 設定下載檔案名稱
|
||||||
|
a.download = `即時車位_${weekDay}_${formattedDate}.xlsx`;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
document.body.appendChild(a);
|
||||||
|
a.click();
|
||||||
|
a.remove();
|
||||||
|
window.URL.revokeObjectURL(url); // Optional: Clean up the URL object
|
||||||
|
})
|
||||||
|
.catch(error => console.error('There was a problem with the fetch operation:', error));
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script src="/bootstrap_1/vendor/chart.js/Chart.min.js"></script>
|
<script src="/bootstrap_1/vendor/chart.js/Chart.min.js"></script>
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<!-- 校園月租臨停數 -->
|
|
||||||
<div class="col-xl-8 col-lg-8">
|
|
||||||
<div class="card shadow mb-8">
|
|
||||||
<!-- Card Header - Dropdown -->
|
|
||||||
<div class="card-header py-3">
|
|
||||||
<h6 class="m-0 font-weight-bold text-primary">
|
|
||||||
校園當前車流量
|
|
||||||
<button class="btn btn-info btn-circle btn-sm" style="float:right; background-image: url('/image/icon/F5.png'); background-size: cover;" onclick="get_monthly_rent_data()"></button>
|
|
||||||
</h6>
|
|
||||||
</div>
|
|
||||||
<!-- Card Body -->
|
|
||||||
<div>
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>類別</th>
|
|
||||||
<th>數量</th>
|
|
||||||
<th></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody id="monthly_table"></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--設定數據圖數據-每日車流量-->
|
<!--設定數據圖數據-每日車流量-->
|
||||||
<script>
|
<script>
|
||||||
function set_in_yuntech_table(labels, dailyTrafficData) {
|
function set_in_yuntech_table(labels, dailyTrafficData) {
|
||||||
|
@ -272,20 +429,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--獲取資料-->
|
|
||||||
<script>
|
|
||||||
function get_data(){
|
|
||||||
console.log("GET")
|
|
||||||
get_violation_data_1()
|
|
||||||
get_in_yuntech_data_1()
|
|
||||||
get_yuntech_parking_data()
|
|
||||||
get_LED_data()
|
|
||||||
get_monthly_rent_data()
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!--獲取違規資料-->
|
<!--獲取違規資料-->
|
||||||
<script>
|
<script>
|
||||||
var token_ckeck //= document.getElementById("token_ckeck_id").value
|
var token_ckeck //= document.getElementById("token_ckeck_id").value
|
||||||
|
@ -298,7 +441,7 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -316,6 +459,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!--設置違規資料-->
|
<!--設置違規資料-->
|
||||||
|
@ -346,7 +490,7 @@
|
||||||
in_car_list = []
|
in_car_list = []
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/get_day_in_car-" + day,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/get_day_in_car-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -380,12 +524,111 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!--獲取演算法資料-->
|
||||||
|
<script>
|
||||||
|
var token = localStorage.getItem('token_park_space');
|
||||||
|
function get_algorithm_data() {
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
//console.log(Model)
|
||||||
|
put_algorithm_data(Model)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function get_algorithm_data_1() {
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
//console.log(Model)
|
||||||
|
set_algorithm_data(Model)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--編輯演算法資料-->
|
||||||
|
<script>
|
||||||
|
function put_algorithm_data(Model) {
|
||||||
|
if (Model.length > 0) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
if (Model[i].algorithm_name != null) {
|
||||||
|
data_1 = {
|
||||||
|
"algorithm_name": Model[i].algorithm_name,
|
||||||
|
"state": "False",
|
||||||
|
"run_time": Model[i].run_time,
|
||||||
|
"algorithm_serial_num": Model[i].algorithm_serial_num
|
||||||
|
}
|
||||||
|
var stringify_obj = JSON.stringify(data_1);
|
||||||
|
$.ajax({
|
||||||
|
type: "PUT",
|
||||||
|
url: "http://140.125.20.183:7700/api/Parking_space_algorithm/" + Model[i].algorithm_serial_num,
|
||||||
|
data: stringify_obj,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
setTimeout('get_algorithm_data_1()', 1000);
|
||||||
|
////console.log(Model)
|
||||||
|
//window.location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--放置演算法資料-->
|
||||||
|
<script>
|
||||||
|
var c = 0
|
||||||
|
function set_algorithm_data(Model) {
|
||||||
|
|
||||||
|
table = "<tr>";
|
||||||
|
if (Model.length > 0) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
if (Model[i].algorithm_name != null) {
|
||||||
|
table += "<td>" + Model[i].algorithm_name + "</td>"
|
||||||
|
var state = '<label class="switch"><input type="checkbox" ><span class="slider"></span></label>'
|
||||||
|
if (Model[i].state == "True") {
|
||||||
|
var state = '<label class="switch"><input type="checkbox" checked=""><span class="slider"></span></label>'
|
||||||
|
}
|
||||||
|
table += "<td>" + state + "</td>"
|
||||||
|
}
|
||||||
|
table += "</tr>"
|
||||||
|
table += "<tr>"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.getElementById("demo").innerHTML = table
|
||||||
|
if (c < 10) {
|
||||||
|
setTimeout('get_algorithm_data_1()', 1000);
|
||||||
|
c = c + 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--獲取字幕機資料-->
|
<!--獲取字幕機資料-->
|
||||||
<script>
|
<script>
|
||||||
function get_LED_data() {
|
function get_LED_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -408,6 +651,9 @@
|
||||||
for (var i = 0; i < Model.length; i++) {
|
for (var i = 0; i < Model.length; i++) {
|
||||||
if (Model[i].parking_spaces_name != null) {
|
if (Model[i].parking_spaces_name != null) {
|
||||||
table += "<td>" + Model[i].parking_spaces_name + "</td>"
|
table += "<td>" + Model[i].parking_spaces_name + "</td>"
|
||||||
|
|
||||||
|
var NewArray = Model[i].lcd_ip.split(":");
|
||||||
|
table += "<td>" + Model[i].lcd_ip + "</td>"
|
||||||
table += "<td>" + Model[i].parking_space_amount + "</td>"
|
table += "<td>" + Model[i].parking_space_amount + "</td>"
|
||||||
|
|
||||||
|
|
||||||
|
@ -421,12 +667,13 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<!--獲取月租臨停資料-->
|
<!--獲取月租臨停資料-->
|
||||||
<script>
|
<script>
|
||||||
function get_monthly_rent_data() {
|
function get_monthly_rent_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_monthly_rent_number",
|
url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number",
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -477,7 +724,7 @@
|
||||||
var stringify_obj = JSON.stringify(data);
|
var stringify_obj = JSON.stringify(data);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Yuntech_monthly_rent_number/" + category,
|
url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number/" + category,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -497,7 +744,7 @@
|
||||||
function get_yuntech_parking_data() {
|
function get_yuntech_parking_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking",
|
url: "http://140.125.20.183:7700/api/Yuntech_parking",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -535,7 +782,7 @@
|
||||||
function Update_now_num(all_num) {
|
function Update_now_num(all_num) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking/" + all_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_parking/" + all_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -554,7 +801,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking/" + Model.all_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_parking/" + Model.all_num,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -568,6 +815,355 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!--跳轉頁面-->
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function Yuntech_RTSP() {
|
||||||
|
window.open("http://140.125.50.178:7006/", "_blank");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--串流影像-->
|
||||||
|
<script>
|
||||||
|
var IP_1
|
||||||
|
var stop = false
|
||||||
|
|
||||||
|
function CAM_RTSP(IP) {
|
||||||
|
//console.log(IP)
|
||||||
|
IP_1 = IP
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (response) {
|
||||||
|
stop = false
|
||||||
|
RTSP_START(response)
|
||||||
|
token_check = "true"
|
||||||
|
//from_token_import_id()
|
||||||
|
},
|
||||||
|
error: function (xhr) {
|
||||||
|
//console.log("111")
|
||||||
|
window.alert("相機未連線");
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function CAM_RTSP_1() {
|
||||||
|
//console.log(IP_1)
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (response) {
|
||||||
|
//webcam_view.showModal()
|
||||||
|
RTSP_START(response)
|
||||||
|
|
||||||
|
token_check = "true"
|
||||||
|
//from_token_import_id()
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function CAM_RTSP_2(IP) {
|
||||||
|
console.log(IP)
|
||||||
|
IP_1 = IP
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.50.178:5000/IP/' + IP,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (response) {
|
||||||
|
stop = false
|
||||||
|
RTSP_START_2(response)
|
||||||
|
token_check = "true"
|
||||||
|
//from_token_import_id()
|
||||||
|
},
|
||||||
|
error: function (xhr) {
|
||||||
|
console.log("111")
|
||||||
|
window.alert("相機未連線");
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function CAM_RTSP_3() {
|
||||||
|
console.log(IP_1)
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.50.178:5000/IP/' + IP_1,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (response) {
|
||||||
|
//webcam_view.showModal()
|
||||||
|
RTSP_START_2(response)
|
||||||
|
|
||||||
|
token_check = "true"
|
||||||
|
//from_token_import_id()
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!--開啟視窗並串流-->
|
||||||
|
<script>
|
||||||
|
function RTSP_START(img_base_64) {
|
||||||
|
////console.log(img)
|
||||||
|
img = document.getElementById("img_id")
|
||||||
|
img.src = img_base_64
|
||||||
|
if (stop == false) {
|
||||||
|
setTimeout('CAM_RTSP_1()', 20);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
function RTSP_START_2(img_base_64) {
|
||||||
|
//console.log(img)
|
||||||
|
img = document.getElementById("img_id")
|
||||||
|
img.src = img_base_64
|
||||||
|
if (stop == false) {
|
||||||
|
setTimeout('CAM_RTSP_3()', 20);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--關閉串流-->
|
||||||
|
<script>
|
||||||
|
function RTSP_Close() {
|
||||||
|
RTSP_view.close()
|
||||||
|
img = document.getElementById("img_id")
|
||||||
|
img.src = ''
|
||||||
|
stop = true
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--獲取資料-->
|
||||||
|
<script>
|
||||||
|
var token = localStorage.getItem('token_park_space');
|
||||||
|
var token_ckeck //= document.getElementById("token_ckeck_id").value
|
||||||
|
var position //職位
|
||||||
|
var location_name_list = []
|
||||||
|
var location_lat_list = []
|
||||||
|
var location_lng_list = []
|
||||||
|
|
||||||
|
var Y_location_name_list = []
|
||||||
|
var Y_location_lat_list = []
|
||||||
|
var Y_location_lng_list = []
|
||||||
|
|
||||||
|
function get_RTSP_data() {
|
||||||
|
//token_check = document.getElementById("token_check_id").value
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
set_RTSP_data_1(Model)
|
||||||
|
get_RTSP_data_2()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_RTSP_data_2() {
|
||||||
|
//token_check = document.getElementById("token_check_id").value
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
set_RTSP_data_2(Model)
|
||||||
|
get_RTSP_data_4()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_RTSP_data_4() {
|
||||||
|
//token_check = document.getElementById("token_check_id").value
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
console.log(Model)
|
||||||
|
set_RTSP_data_4(Model)
|
||||||
|
map_show()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
var location_name
|
||||||
|
function get_RTSP_data_3(location_name) {
|
||||||
|
location_name = location_name
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
//console.log(location_name)
|
||||||
|
set_RTSP_data_3(Model, location_name)
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_RTSP_data_5(location_name) {
|
||||||
|
location_name = location_name
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||||
|
data: {},
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
contentType: "application/json",
|
||||||
|
success: function (Model) {
|
||||||
|
console.log(location_name)
|
||||||
|
set_RTSP_data_5(Model, location_name)
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--放置資料-->
|
||||||
|
<script>
|
||||||
|
function set_RTSP_data_1(Model) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
|
||||||
|
var hasValue = location_name_list.includes(Model[i].parking_spaces_name);
|
||||||
|
if (hasValue == false) {
|
||||||
|
location_name_list.push(Model[i].parking_spaces_name)
|
||||||
|
location_lat_list.push(Model[i].latitude)
|
||||||
|
location_lng_list.push(Model[i].longitude)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
////console.log(location_name_list); // 輸出: true
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_RTSP_data_2(Model) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
|
||||||
|
var hasValue = location_name_list.includes(Model[i].parking_spaces_violation_name);
|
||||||
|
if (hasValue == false) {
|
||||||
|
location_name_list.push(Model[i].parking_spaces_violation_name)
|
||||||
|
location_lat_list.push(Model[i].latitude)
|
||||||
|
location_lng_list.push(Model[i].longitude)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_RTSP_data_4(Model) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
|
||||||
|
var hasValue = Y_location_name_list.includes(Model[i].location_name);
|
||||||
|
if (hasValue == false) {
|
||||||
|
Y_location_name_list.push(Model[i].location_name)
|
||||||
|
Y_location_lat_list.push(Model[i].latitude)
|
||||||
|
Y_location_lng_list.push(Model[i].longitude)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_RTSP_data_3(Model, location_name) {
|
||||||
|
Button = '<button class="btn btn-outline-success " onclick="CAM_RTSP(';
|
||||||
|
var i1 = 0
|
||||||
|
if (Model.length > 0) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
if (Model[i].parking_spaces_name == location_name) {
|
||||||
|
i1 = i1 + 1
|
||||||
|
if (parseInt(Model[i].port) > 400) {
|
||||||
|
Button += "'" + Model[i].ip + ":" + Model[i].port + "'" + ')">' + Model[i].ip + ":" + Model[i].port + '</button>'
|
||||||
|
}
|
||||||
|
Button += '<button class="btn btn-outline-success " onclick="CAM_RTSP(';
|
||||||
|
if (i1 == 1) {
|
||||||
|
CAM_RTSP(Model[i].ip + ":" + Model[i].port)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.getElementById("choose_cam_id").innerHTML = Button
|
||||||
|
RTSP_view.showModal()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_RTSP_data_5(Model, location_name) {
|
||||||
|
Button = '<button class="btn btn-outline-success " onclick="CAM_RTSP_2(';
|
||||||
|
var i1 = 0
|
||||||
|
if (Model.length > 0) {
|
||||||
|
for (var i = 0; i < Model.length; i++) {
|
||||||
|
if (Model[i].location_name == location_name) {
|
||||||
|
i1 = i1 + 1
|
||||||
|
console.log(Model[i].ip)
|
||||||
|
Button += "'" + Model[i].ip + "'" + ')">' + Model[i].ip + '</button>'
|
||||||
|
Button += '<button class="btn btn-outline-success " onclick="CAM_RTSP_2(';
|
||||||
|
if (i1 == 1) {
|
||||||
|
CAM_RTSP_2(Model[i].ip)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.getElementById("choose_cam_id").innerHTML = Button
|
||||||
|
RTSP_view.showModal()
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!--Get_data-->
|
||||||
|
<script>
|
||||||
|
function get_data() {
|
||||||
|
get_violation_data_1()
|
||||||
|
get_algorithm_data()
|
||||||
|
get_LED_data()
|
||||||
|
get_monthly_rent_data()
|
||||||
|
get_RTSP_data()
|
||||||
|
get_in_yuntech_data_1()
|
||||||
|
get_yuntech_parking_data()
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<!--檢查token-->
|
<!--檢查token-->
|
||||||
<script>
|
<script>
|
||||||
var token
|
var token
|
||||||
|
@ -577,7 +1173,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -599,7 +1195,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -615,14 +1211,14 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
success: function (model) {
|
success: function (model) {
|
||||||
model = model.result
|
model = model.result
|
||||||
position = model.lastname
|
position = model.lastname
|
||||||
console.log(position)
|
//console.log(position)
|
||||||
if (position == "manager") {
|
if (position == "manager") {
|
||||||
get_data()
|
get_data()
|
||||||
}
|
}
|
||||||
|
@ -641,3 +1237,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -271,7 +271,7 @@
|
||||||
function get_recidivst_1() {
|
function get_recidivst_1() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/recidivists",
|
url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -323,7 +323,7 @@
|
||||||
//console.log(token_check)
|
//console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/get_day_violation-" + day,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/get_day_violation-" + day,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -367,7 +367,7 @@
|
||||||
<script>
|
<script>
|
||||||
function export_excel() {
|
function export_excel() {
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Violation_car_table/export-all_excel', {
|
fetch('http://140.125.20.183:7700/api/Violation_car_table/export-all_excel', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -414,7 +414,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -436,7 +436,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -452,7 +452,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list/license_plate_number-" + license_plate_number, // 使用車牌號碼查詢
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list/license_plate_number-" + license_plate_number, // 使用車牌號碼查詢
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list",
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
|
|
||||||
<!--上傳excel-->
|
<!--上傳excel-->
|
||||||
<script>
|
<script>
|
||||||
const api_url = 'http://localhost:7700'; // 定义 api_url
|
const api_url = 'http://140.125.20.183:7700'; // 定义 api_url
|
||||||
|
|
||||||
document.getElementById('uploadForm').onsubmit = function (event) {
|
document.getElementById('uploadForm').onsubmit = function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -232,7 +232,7 @@
|
||||||
function delet_data(license_plate_number) {
|
function delet_data(license_plate_number) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list/" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list/" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -251,7 +251,7 @@
|
||||||
function get_data() {
|
function get_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_parking_user_list",
|
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -303,7 +303,7 @@
|
||||||
//console.log(token)
|
//console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -327,7 +327,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -343,7 +343,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
IP_1 = IP
|
IP_1 = IP
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP,
|
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
console.log(IP_1)
|
console.log(IP_1)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7705/IP/' + IP_1,
|
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -313,7 +313,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -331,7 +331,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -351,7 +351,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -370,7 +370,7 @@
|
||||||
location_name = location_name
|
location_name = location_name
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_cam",
|
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -489,7 +489,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -513,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://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -529,7 +529,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
276
Parking_spaces/Views/Manager/ParkingLog.cshtml
Normal file
276
Parking_spaces/Views/Manager/ParkingLog.cshtml
Normal file
|
@ -0,0 +1,276 @@
|
||||||
|
@{
|
||||||
|
ViewData["Title"] = "停車紀錄查詢";
|
||||||
|
Layout = "~/Views/Shared/_Layout_Manager.cshtml";
|
||||||
|
}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-TW">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>@ViewData["Title"]</title>
|
||||||
|
<link rel="stylesheet" href="/bootstrap_1/css/bootstrap.min.css">
|
||||||
|
<style>
|
||||||
|
.table th, .table td {
|
||||||
|
text-align: center; /* 居中對齊 */
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading {
|
||||||
|
display: none;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination {
|
||||||
|
justify-content: center; /* 分頁居中 */
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container mt-1">
|
||||||
|
<h1>查詢所有時間車位數</h1>
|
||||||
|
<div class="col-xl-32 col-lg32">
|
||||||
|
<div class="card shadow mb-4">
|
||||||
|
<div class="card-header py-3 d-flex justify-content-between align-items-center">
|
||||||
|
<h6 class="m-0 font-weight-bold text-primary">停車紀錄查詢與下載</h6>
|
||||||
|
<button class="btn btn-success" onclick="downloadParkingLogsExcel()">下載 Excel</button>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="startDate">開始日期和時間:</label>
|
||||||
|
<input type="datetime-local" id="startDate" class="form-control" />
|
||||||
|
<label for="timeInterval">時間間隔:</label>
|
||||||
|
<select id="timeInterval" class="form-control mb-2">
|
||||||
|
<option value="none">不需要間隔時間</option>
|
||||||
|
<option value="1">間隔1小時</option>
|
||||||
|
<option value="3">間隔3小時</option>
|
||||||
|
<option value="5">間隔5小時</option>
|
||||||
|
</select>
|
||||||
|
<label for="endDate">結束日期和時間:</label>
|
||||||
|
<input type="datetime-local" id="endDate" class="form-control" />
|
||||||
|
<button class="btn btn-primary mt-3" onclick="fetchParkingLogs()">查詢紀錄</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h6 class="font-weight-bold text-primary">停車紀錄</h6>
|
||||||
|
<div id="loading">加載中...</div>
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>時間</th>
|
||||||
|
<th>星期</th>
|
||||||
|
<th>總車位</th>
|
||||||
|
<th>剩餘車位</th>
|
||||||
|
<th>月租車位</th>
|
||||||
|
<th>臨停車位</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="parking_logs_table">
|
||||||
|
<!-- 停車紀錄會動態填充到這裡 -->
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div id="noDataMessage" class="text-danger" style="display:none;">
|
||||||
|
沒有符合條件的停車紀錄。
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav aria-label="Page navigation" id="paginationContainer" style="display: none;">
|
||||||
|
<ul class="pagination">
|
||||||
|
<li class="page-item" id="prevPageItem" style="display: none;">
|
||||||
|
<a class="page-link" href="#" onclick="changePage(currentPage - 1)">上一頁</a>
|
||||||
|
</li>
|
||||||
|
<li class="page-item" id="nextPageItem" style="display: none;">
|
||||||
|
<a class="page-link" href="#" onclick="changePage(currentPage + 1)">下一頁</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<button class="btn btn-primary" id="homeButton" style="display: none;" onclick="goToHomePage()">首頁</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let currentPage = 1; // 當前頁碼
|
||||||
|
const recordsPerPage = 20; // 每頁顯示的紀錄數
|
||||||
|
|
||||||
|
function fetchParkingLogs(page = 1) {
|
||||||
|
const startDate = document.getElementById('startDate').value;
|
||||||
|
const endDate = document.getElementById('endDate').value;
|
||||||
|
const timeInterval = document.getElementById('timeInterval').value;
|
||||||
|
|
||||||
|
if (!startDate || !endDate) {
|
||||||
|
alert('請選擇開始和結束日期!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 確保開始時間早於結束時間
|
||||||
|
if (new Date(startDate) >= new Date(endDate)) {
|
||||||
|
alert('結束日期必須晚於開始日期!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const logsTable = document.getElementById('parking_logs_table');
|
||||||
|
const loadingIndicator = document.getElementById('loading');
|
||||||
|
loadingIndicator.style.display = 'block'; // 顯示加載中
|
||||||
|
|
||||||
|
// 使用 URLSearchParams 來構建查詢字串
|
||||||
|
const params = new URLSearchParams();
|
||||||
|
params.append('startDate', startDate);
|
||||||
|
params.append('endDate', endDate);
|
||||||
|
params.append('interval', timeInterval); // 傳遞時間間隔
|
||||||
|
params.append('page', page); // 傳遞當前頁碼
|
||||||
|
|
||||||
|
const url = `http://140.125.20.183:7700/api/ParkingLogs/GetHourlyParkingLogs?${params.toString()}`; // 調用 GetHourlyParkingLogs API
|
||||||
|
|
||||||
|
fetch(url)
|
||||||
|
.then(response => {
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error('無法獲取資料,請稍後再試。');
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
})
|
||||||
|
.then(data => {
|
||||||
|
logsTable.innerHTML = ''; // 清空現有的表格
|
||||||
|
if (data.logs.length === 0) {
|
||||||
|
document.getElementById('noDataMessage').style.display = 'block'; // 顯示無數據提示
|
||||||
|
document.getElementById('paginationContainer').style.display = 'none';
|
||||||
|
} else {
|
||||||
|
document.getElementById('noDataMessage').style.display = 'none'; // 隱藏無數據提示
|
||||||
|
|
||||||
|
// Sort logs by timestamp
|
||||||
|
data.logs.sort((a, b) => new Date(a.timestamp) - new Date(b.timestamp));
|
||||||
|
|
||||||
|
data.logs.forEach(log => {
|
||||||
|
const row = document.createElement('tr');
|
||||||
|
row.innerHTML = `
|
||||||
|
<td>${new Date(log.timestamp).toLocaleString('zh-TW', { hour12: false })}</td>
|
||||||
|
<td>${log.dayOfWeek}</td>
|
||||||
|
<td>${log.totalParkingSpaces}</td>
|
||||||
|
<td>${log.remainingSpaces}</td>
|
||||||
|
<td>${log.monthlyRentSpaces}</td>
|
||||||
|
<td>${log.temporaryRentSpaces}</td>
|
||||||
|
`;
|
||||||
|
logsTable.appendChild(row);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 更新分頁顯示
|
||||||
|
currentPage = page; // 更新當前頁碼
|
||||||
|
document.getElementById('paginationContainer').style.display = 'block';
|
||||||
|
updatePagination(data.totalRecords); // 更新分頁按鈕顯示
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
console.error('Error fetching parking logs:', error);
|
||||||
|
alert('獲取停車紀錄時出現錯誤,請稍後再試。');
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
loadingIndicator.style.display = 'none'; // 隱藏加載指示器
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function updatePagination(totalRecords) {
|
||||||
|
const totalPages = Math.ceil(totalRecords / recordsPerPage); // 計算總頁數
|
||||||
|
document.getElementById('nextPageItem').style.display = currentPage < totalPages ? 'block' : 'none';
|
||||||
|
document.getElementById('prevPageItem').style.display = currentPage > 1 ? 'block' : 'none';
|
||||||
|
document.getElementById('paginationContainer').dataset.totalRecords = totalRecords; // 存儲總記錄數
|
||||||
|
}
|
||||||
|
|
||||||
|
function changePage(page) {
|
||||||
|
const totalPages = Math.ceil(Number(document.getElementById('paginationContainer').dataset.totalRecords) / recordsPerPage);
|
||||||
|
if (page < 1 || page > totalPages) return; // 確保不會小於 1 或超過總頁數
|
||||||
|
fetchParkingLogs(page); // 重新獲取該頁的數據
|
||||||
|
}
|
||||||
|
|
||||||
|
function goToHomePage() {
|
||||||
|
window.location.href = '/Home/Index';
|
||||||
|
}
|
||||||
|
|
||||||
|
function downloadParkingLogsExcel() {
|
||||||
|
const startDate = document.getElementById('startDate').value;
|
||||||
|
const endDate = document.getElementById('endDate').value;
|
||||||
|
const timeInterval = document.getElementById('timeInterval').value;
|
||||||
|
|
||||||
|
if (!startDate || !endDate) {
|
||||||
|
alert('請選擇開始和結束日期以下載 Excel 檔案!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 傳遞時間間隔以便後端生成相應的 Excel
|
||||||
|
window.open(`http://140.125.20.183:7700/api/ParkingLogs/DownloadExcel?startDate=${startDate}&endDate=${endDate}&interval=${timeInterval}`, '_blank');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="/bootstrap_1/js/bootstrap.bundle.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
<!--檢查token-->
|
||||||
|
<script>
|
||||||
|
var token
|
||||||
|
function token_check() {
|
||||||
|
// 检查本地存储中是否存在JWT令牌
|
||||||
|
token = localStorage.getItem('token_park_space');
|
||||||
|
//console.log(token)
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (response) {
|
||||||
|
//console.log(response)
|
||||||
|
token_check = "true"
|
||||||
|
from_token_import_id()
|
||||||
|
},
|
||||||
|
error: function (xhr) {
|
||||||
|
token_check = "false"
|
||||||
|
window.location.href = '/';
|
||||||
|
// 处理错误响应,例如跳转到未授权页面
|
||||||
|
//window.location.href = 'https://example.com/unauthorized_page';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function from_token_import_id() {
|
||||||
|
var token = localStorage.getItem('token_park_space');
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (response) {
|
||||||
|
//console.log(response)
|
||||||
|
from_id_import_user_data(response)
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function from_id_import_user_data(id) {
|
||||||
|
var token = localStorage.getItem('token_park_space');
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
|
headers: {
|
||||||
|
'Authorization': token
|
||||||
|
},
|
||||||
|
success: function (model) {
|
||||||
|
model = model.result
|
||||||
|
position = model.lastname
|
||||||
|
//console.log(position)
|
||||||
|
if (position == "manager") {
|
||||||
|
get_data()
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
window.location.href = '/';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!--開機自啟-->
|
||||||
|
<script>
|
||||||
|
window.onload = token_check;
|
||||||
|
</script>
|
|
@ -102,7 +102,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/violation_location_name-" + name,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
var stringify_obj = JSON.stringify(Model);
|
var stringify_obj = JSON.stringify(Model);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + violation_location_name + "-time-" + time,
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_nam-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -269,7 +269,7 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
console.log(start_date)
|
console.log(start_date)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -321,7 +321,7 @@
|
||||||
var start_date = document.getElementById("start_date_id").value
|
var start_date = document.getElementById("start_date_id").value
|
||||||
var end_date = document.getElementById("end_date_id").value
|
var end_date = document.getElementById("end_date_id").value
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, {
|
fetch('http://140.125.20.183:7700/api/Violation_car_table/export-excel_location_name_1_-' + name + "-start_time-" + start_date + "-end_time-" + end_date, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -362,7 +362,7 @@
|
||||||
function plate_export_excel() {
|
function plate_export_excel() {
|
||||||
var license_plate_number = document.getElementById("serch_text_id").value
|
var license_plate_number = document.getElementById("serch_text_id").value
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Violation_car_table/export-excel_license_plate_number-' + license_plate_number, {
|
fetch('http://140.125.20.183:7700/api/Violation_car_table/export-excel_license_plate_number-' + license_plate_number, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -406,7 +406,7 @@
|
||||||
console.log(time)
|
console.log(time)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Violation_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -430,7 +430,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -452,7 +452,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -468,7 +468,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
var select = document.getElementById("location_select_id")
|
var select = document.getElementById("location_select_id")
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location_name",
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name",
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -213,7 +213,7 @@
|
||||||
//console.log(name)
|
//console.log(name)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/Amount-" + car_table_num,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -333,7 +333,7 @@
|
||||||
// 發送AJAX GET請求
|
// 發送AJAX GET請求
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -394,7 +394,7 @@
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -427,7 +427,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_1_-" + name + "-start_time-" + start_date + "-end_time-" + end_date,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -452,7 +452,7 @@
|
||||||
console.log(select_location)
|
console.log(select_location)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Yuntech_in_car_table/location-" + select_location,
|
url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location-" + select_location,
|
||||||
data: {},
|
data: {},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -482,7 +482,7 @@
|
||||||
var end_time = new Date(end_date).toISOString();
|
var end_time = new Date(end_date).toISOString();
|
||||||
|
|
||||||
// 構建請求URL
|
// 構建請求URL
|
||||||
var url = "http://localhost:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel";
|
var url = "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name_2_-" + name + "-start_time-" + start_date + "-end_time-" + end_date + "-export_excel";
|
||||||
|
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
|
@ -525,7 +525,7 @@
|
||||||
<script>
|
<script>
|
||||||
function export_excel() {
|
function export_excel() {
|
||||||
// 發送HTTP GET請求到Web API動作方法
|
// 發送HTTP GET請求到Web API動作方法
|
||||||
fetch('http://localhost:7700/api/Yuntech_in_car_table/export-all_excel', {
|
fetch('http://140.125.20.183:7700/api/Yuntech_in_car_table/export-all_excel', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
|
@ -571,7 +571,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -593,7 +593,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -609,7 +609,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
var date = document.getElementById("serch_text_id").value
|
var date = document.getElementById("serch_text_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_history/date-" + date,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_history/date-" + date,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
function get_data() {
|
function get_data() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
//url: "http://localhost:7700/api/Parking_spaces_history/parking_space_area-" + name,
|
//url: "http://140.125.20.183:7700/api/Parking_spaces_history/parking_space_area-" + name,
|
||||||
url: "http://localhost:7700/api/Parking_spaces_history",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
function select_data(){
|
function select_data(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
var name = document.getElementById("select_id").value
|
var name = document.getElementById("select_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_history/parking_space_area-" + name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_history/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
var license_plate_number = document.getElementById("serch_text_id").value
|
var license_plate_number = document.getElementById("serch_text_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/license_plate_number-" + license_plate_number,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -225,7 +225,7 @@
|
||||||
console.log(token_check)
|
console.log(token_check)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -297,7 +297,7 @@
|
||||||
function get_single_parking_space_car(name){
|
function get_single_parking_space_car(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -328,8 +328,8 @@
|
||||||
var stringify_obj = JSON.stringify(obj);
|
var stringify_obj = JSON.stringify(obj);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||||
//url: "http://localhost:7700/api/Postural_Analysis_1",
|
//url: "http://140.125.20.183:7700/api/Postural_Analysis_1",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -353,7 +353,7 @@
|
||||||
function delet_data(name){
|
function delet_data(name){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table/"+name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -394,7 +394,7 @@
|
||||||
console.log(token)
|
console.log(token)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token_check',
|
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -416,7 +416,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/token-' + token,
|
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
@ -432,7 +432,7 @@
|
||||||
var token = localStorage.getItem('token_park_space');
|
var token = localStorage.getItem('token_park_space');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': token
|
'Authorization': token
|
||||||
},
|
},
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
console.log(stringify_obj)
|
console.log(stringify_obj)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_history",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
||||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
var name = document.getElementById("parking_spaces_name_id").value
|
var name = document.getElementById("parking_spaces_name_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area-" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -274,7 +274,7 @@
|
||||||
serial_number = car_serial_number
|
serial_number = car_serial_number
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/parking_space_area_name-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_area_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -327,7 +327,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "Post",
|
type: "Post",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_history",
|
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
||||||
data: stringify_obj,
|
data: stringify_obj,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
success: function (msg) {
|
success: function (msg) {
|
||||||
|
@ -340,7 +340,7 @@
|
||||||
function delet_data_2(location_name, name, time) {
|
function delet_data_2(location_name, name, time) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "DELETE",
|
type: "DELETE",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_instant/parking_space_name-" + location_name + "-time-" + time,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_instant/parking_space_name-" + location_name + "-time-" + time,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
var name = document.getElementById("parking_spaces_name_id").value
|
var name = document.getElementById("parking_spaces_name_id").value
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://localhost:7700/api/Parking_spaces_total_table/" + name,
|
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/" + name,
|
||||||
data: {},
|
data: {},
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
<a class="collapse-item" asp-controller="Engineering" asp-action="Map_RTSP"> 即時影像</a>
|
<a class="collapse-item" asp-controller="Engineering" asp-action="Map_RTSP"> 即時影像</a>
|
||||||
<a class="collapse-item" asp-controller="Engineering" asp-action="Engineering_parking_user_list_index"> 月租名單 </a>
|
<a class="collapse-item" asp-controller="Engineering" asp-action="Engineering_parking_user_list_index"> 月租名單 </a>
|
||||||
<a class="collapse-item" asp-controller="Engineering" asp-action="Engineering_EL125_car"> 私人名單 </a>
|
<a class="collapse-item" asp-controller="Engineering" asp-action="Engineering_EL125_car"> 私人名單 </a>
|
||||||
<a class="collapse-item" asp-controller="Engineering" asp-action="ParkingLog"> 查詢車位 </a>
|
<a class="collapse-item" asp-controller="Engineering" asp-action="ParkingLog"> 查詢車流資訊 </a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
<a class="collapse-item" asp-controller="Manager" asp-action="Yuntech_in_car"> 進入車輛</a>
|
<a class="collapse-item" asp-controller="Manager" asp-action="Yuntech_in_car"> 進入車輛</a>
|
||||||
<a class="collapse-item" asp-controller="Manager" asp-action="Map_RTSP"> 即時影像</a>
|
<a class="collapse-item" asp-controller="Manager" asp-action="Map_RTSP"> 即時影像</a>
|
||||||
<a class="collapse-item" asp-controller="Manager" asp-action="Manager_parking_user_list_index"> 月租名單 </a>
|
<a class="collapse-item" asp-controller="Manager" asp-action="Manager_parking_user_list_index"> 月租名單 </a>
|
||||||
|
<a class="collapse-item" asp-controller="Manager" asp-action="ParkingLog"> 查詢車流資訊 </a>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user