修改管理員介面前端
This commit is contained in:
parent
b5a337c7a1
commit
a4c1b36779
|
@ -32,5 +32,10 @@ namespace Parking_spaces.Controllers
|
|||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult ParkingLog()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace Parking_spaces.Controllers
|
|||
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(token);
|
||||
|
||||
// 构建 API 请求的 URL
|
||||
string apiUrl = "http://localhost:7700/Users/token";
|
||||
string apiUrl = "http://140.125.20.183:7700/Users/token";
|
||||
|
||||
// 调用需要身份验证的 API
|
||||
HttpResponseMessage response = await _httpClient.GetAsync(apiUrl);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:2361",
|
||||
"applicationUrl": "http://140.125.20.183:2361",
|
||||
"sslPort": 44352
|
||||
}
|
||||
},
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -105,7 +105,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -127,7 +127,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_violation_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -238,7 +238,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
type: "Post",
|
||||
url: "http://localhost: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: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -292,7 +292,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
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: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -350,7 +350,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
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: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -383,7 +383,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
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: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -431,7 +431,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -455,7 +455,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -471,7 +471,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
console.log(parking_spaces_name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -123,7 +123,7 @@
|
|||
if (mode == "pass") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -144,7 +144,7 @@
|
|||
if (mode == "car_num_check") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -166,7 +166,7 @@
|
|||
if (mode == "violation") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -193,7 +193,7 @@
|
|||
if (mode == "pass") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -208,7 +208,7 @@
|
|||
if (mode == "car_num_check") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -223,7 +223,7 @@
|
|||
if (mode == "violation") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -371,7 +371,7 @@
|
|||
serial_num_choose = serial_num
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -568,7 +568,7 @@
|
|||
if (mode == "pass") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -590,7 +590,7 @@
|
|||
if (mode == "car_num_check") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -614,7 +614,7 @@
|
|||
console.log('violation')
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -646,7 +646,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
|
||||
contentType: "application/json",
|
||||
|
@ -671,7 +671,7 @@
|
|||
|
||||
$.ajax({
|
||||
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,
|
||||
|
||||
contentType: "application/json",
|
||||
|
@ -816,7 +816,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -835,7 +835,7 @@
|
|||
if (mode == "violation") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -868,7 +868,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -950,7 +950,7 @@
|
|||
function put_violation_roi_1() {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -978,7 +978,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1051,7 +1051,7 @@
|
|||
if (mode == "violation") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1084,7 +1084,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1166,7 +1166,7 @@
|
|||
if (mode == "pass") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1196,7 +1196,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1271,7 +1271,7 @@
|
|||
if (mode == "violation") {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1304,7 +1304,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1332,7 +1332,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1354,7 +1354,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1370,7 +1370,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://localhost:7700/api/El125_car_table",
|
||||
url: "http://140.125.20.183:7700/api/El125_car_table",
|
||||
data: stringify_obj,
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -145,7 +145,7 @@
|
|||
function get_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/El125_car_table",
|
||||
url: "http://140.125.20.183:7700/api/El125_car_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -168,7 +168,7 @@
|
|||
function delet_data(license_plate_number) {
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -193,7 +193,7 @@
|
|||
//console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -215,7 +215,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -231,7 +231,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -249,7 +249,7 @@
|
|||
<!--Excel下載-->
|
||||
<script>
|
||||
function downloadExcel() {
|
||||
fetch('http://localhost:7700/api/ParkingLogs/DownloadCurrentStatusExcel', {
|
||||
fetch('http://140.125.20.183:7700/api/ParkingLogs/DownloadCurrentStatusExcel', {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Accept': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||
|
@ -436,7 +436,7 @@
|
|||
//console.log(token_check)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -485,7 +485,7 @@
|
|||
in_car_list = []
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -525,7 +525,7 @@
|
|||
function get_algorithm_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -540,7 +540,7 @@
|
|||
function get_algorithm_data_1() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -569,7 +569,7 @@
|
|||
var stringify_obj = JSON.stringify(data_1);
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -623,7 +623,7 @@
|
|||
function get_LED_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -668,7 +668,7 @@
|
|||
function get_monthly_rent_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_monthly_rent_number",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_monthly_rent_number",
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -719,7 +719,7 @@
|
|||
var stringify_obj = JSON.stringify(data);
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -739,7 +739,7 @@
|
|||
function get_yuntech_parking_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_parking",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_parking",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -777,7 +777,7 @@
|
|||
function Update_now_num(all_num) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_parking/" + all_num,
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_parking/" + all_num,
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -796,7 +796,7 @@
|
|||
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -828,7 +828,7 @@
|
|||
IP_1 = IP
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -850,7 +850,7 @@
|
|||
//console.log(IP_1)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP_1,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1049,7 +1049,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1067,7 +1067,7 @@
|
|||
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1085,7 +1085,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1104,7 +1104,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1123,7 +1123,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1256,7 +1256,7 @@
|
|||
//console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1278,7 +1278,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1294,7 +1294,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
function get_data(){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -66,7 +66,7 @@
|
|||
function get_data_1() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -96,7 +96,7 @@
|
|||
var stringify_obj = JSON.stringify(data_1);
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "http://localhost: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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -157,7 +157,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -179,7 +179,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -195,7 +195,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -372,7 +372,7 @@
|
|||
//console.log(token_check)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -421,7 +421,7 @@
|
|||
in_car_list = []
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -461,7 +461,7 @@
|
|||
function get_algorithm_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -476,7 +476,7 @@
|
|||
function get_algorithm_data_1() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_space_algorithm",
|
||||
url: "http://140.125.20.183:7700/api/Parking_space_algorithm",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -505,7 +505,7 @@
|
|||
var stringify_obj = JSON.stringify(data_1);
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -559,7 +559,7 @@
|
|||
function get_LED_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -618,7 +618,7 @@
|
|||
IP_1 = IP
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -640,7 +640,7 @@
|
|||
//console.log(IP_1)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP_1,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -839,7 +839,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -857,7 +857,7 @@
|
|||
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -875,7 +875,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -894,7 +894,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -913,7 +913,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -1035,7 +1035,7 @@
|
|||
/*0523*/
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://localhost:7700/Users/authenticate",
|
||||
url: "http://140.125.20.183:7700/Users/authenticate",
|
||||
data: stringify_obj,
|
||||
contentType: "application/json",
|
||||
success: function (msg) {
|
||||
|
@ -1076,7 +1076,7 @@
|
|||
//console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1098,7 +1098,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -1114,7 +1114,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
function get_data(){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -117,7 +117,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -139,7 +139,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -155,7 +155,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
function get_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_lcd_instand",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_lcd_instand",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -116,7 +116,7 @@
|
|||
function Update_detail(parking_spaces_name){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost: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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -135,7 +135,7 @@
|
|||
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -151,7 +151,7 @@
|
|||
function Update_detail_2() {
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -177,7 +177,7 @@
|
|||
var stringify_obj = JSON.stringify(Model);
|
||||
$.ajax({
|
||||
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,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -208,7 +208,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -230,7 +230,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -246,7 +246,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -129,7 +129,7 @@
|
|||
IP_1 = IP
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP_1,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -147,7 +147,7 @@
|
|||
console.log(IP_1)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP_1,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization':token
|
||||
},
|
||||
|
@ -195,7 +195,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -219,7 +219,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -235,7 +235,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -219,7 +219,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -275,7 +275,7 @@
|
|||
function get_recidivst_1(){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Violation_car_table/recidivists",
|
||||
url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -327,7 +327,7 @@
|
|||
//console.log(token_check)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -370,7 +370,7 @@
|
|||
<script>
|
||||
function export_excel() {
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -418,7 +418,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -440,7 +440,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -456,7 +456,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
}
|
||||
$.ajax({
|
||||
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: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -144,7 +144,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
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,
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -169,7 +169,7 @@
|
|||
|
||||
<!--上傳excel-->
|
||||
<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) {
|
||||
event.preventDefault();
|
||||
|
@ -233,7 +233,7 @@
|
|||
function delet_data(license_plate_number) {
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -252,7 +252,7 @@
|
|||
function get_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_parking_user_list",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -303,7 +303,7 @@
|
|||
//console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -325,7 +325,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -341,7 +341,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
var license_plate_number = document.getElementById("serch_text_id").value
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -225,7 +225,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -297,7 +297,7 @@
|
|||
function get_single_parking_space_car(name){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost: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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -328,8 +328,8 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
//url: "http://localhost:7700/api/Postural_Analysis_1",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
//url: "http://140.125.20.183:7700/api/Postural_Analysis_1",
|
||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||
data: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -353,7 +353,7 @@
|
|||
function delet_data(name){
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table/"+name,
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name,
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -391,7 +391,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -413,7 +413,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -429,7 +429,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
IP_1 = IP
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -94,7 +94,7 @@
|
|||
console.log(IP_1)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP_1,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -294,7 +294,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -312,7 +312,7 @@
|
|||
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -330,7 +330,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -350,7 +350,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -369,7 +369,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -488,7 +488,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -512,7 +512,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -528,7 +528,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
params.append('interval', timeInterval); // 傳遞時間間隔
|
||||
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)
|
||||
.then(response => {
|
||||
|
@ -195,7 +195,7 @@
|
|||
}
|
||||
|
||||
// 傳遞時間間隔以便後端生成相應的 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>
|
||||
|
||||
|
@ -212,7 +212,7 @@
|
|||
//console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -234,7 +234,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -250,7 +250,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -160,7 +160,7 @@
|
|||
console.log(time)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -181,7 +181,7 @@
|
|||
var stringify_obj = JSON.stringify(Model);
|
||||
$.ajax({
|
||||
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,
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -237,7 +237,7 @@
|
|||
serial_number = car_serial_number
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -269,7 +269,7 @@
|
|||
}
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -295,7 +295,7 @@
|
|||
console.log(start_date)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -320,7 +320,7 @@
|
|||
var start_date = document.getElementById("start_date_id").value
|
||||
var end_date = document.getElementById("end_date_id").value
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -361,7 +361,7 @@
|
|||
function plate_export_excel() {
|
||||
var license_plate_number = document.getElementById("serch_text_id").value
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -407,7 +407,7 @@
|
|||
console.log(time)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -431,7 +431,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -453,7 +453,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -469,7 +469,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -161,7 +161,7 @@
|
|||
var select = document.getElementById("location_select_id")
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -198,7 +198,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -221,7 +221,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -340,7 +340,7 @@
|
|||
// 發送AJAX GET請求
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -407,7 +407,7 @@
|
|||
}
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -443,7 +443,7 @@
|
|||
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -474,7 +474,7 @@
|
|||
console.log(select_location)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -505,7 +505,7 @@
|
|||
var end_time = new Date(end_date).toISOString();
|
||||
|
||||
// 構建請求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動作方法
|
||||
fetch(url, {
|
||||
|
@ -551,7 +551,7 @@
|
|||
<script>
|
||||
function export_excel() {
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -599,7 +599,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -621,7 +621,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -637,7 +637,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://localhost:7700/Users/authenticate",
|
||||
url: "http://140.125.20.183:7700/Users/authenticate",
|
||||
data: stringify_obj,
|
||||
contentType: "application/json",
|
||||
success: function (msg) {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -215,7 +215,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -271,7 +271,7 @@
|
|||
function get_recidivst_1() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Violation_car_table/recidivists",
|
||||
url: "http://140.125.20.183:7700/api/Violation_car_table/recidivists",
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -323,7 +323,7 @@
|
|||
//console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost: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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -367,7 +367,7 @@
|
|||
<script>
|
||||
function export_excel() {
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -414,7 +414,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -436,7 +436,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -452,7 +452,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
}
|
||||
$.ajax({
|
||||
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: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -143,7 +143,7 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
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,
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -167,7 +167,7 @@
|
|||
|
||||
<!--上傳excel-->
|
||||
<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) {
|
||||
event.preventDefault();
|
||||
|
@ -232,7 +232,7 @@
|
|||
function delet_data(license_plate_number) {
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -251,7 +251,7 @@
|
|||
function get_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_parking_user_list",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_parking_user_list",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -303,7 +303,7 @@
|
|||
//console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -327,7 +327,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -343,7 +343,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
IP_1 = IP
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -95,7 +95,7 @@
|
|||
console.log(IP_1)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7705/IP/' + IP_1,
|
||||
url: 'http://140.125.20.183:7705/IP/' + IP_1,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -295,7 +295,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -313,7 +313,7 @@
|
|||
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -331,7 +331,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam_total_table",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -351,7 +351,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_cam",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -370,7 +370,7 @@
|
|||
location_name = location_name
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Yuntech_cam",
|
||||
url: "http://140.125.20.183:7700/api/Yuntech_cam",
|
||||
data: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -489,7 +489,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -513,7 +513,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -529,7 +529,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'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)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -160,7 +160,7 @@
|
|||
console.log(time)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -181,7 +181,7 @@
|
|||
var stringify_obj = JSON.stringify(Model);
|
||||
$.ajax({
|
||||
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,
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -237,7 +237,7 @@
|
|||
serial_number = car_serial_number
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -269,7 +269,7 @@
|
|||
}
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -295,7 +295,7 @@
|
|||
console.log(start_date)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -321,7 +321,7 @@
|
|||
var start_date = document.getElementById("start_date_id").value
|
||||
var end_date = document.getElementById("end_date_id").value
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -362,7 +362,7 @@
|
|||
function plate_export_excel() {
|
||||
var license_plate_number = document.getElementById("serch_text_id").value
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -406,7 +406,7 @@
|
|||
console.log(time)
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -430,7 +430,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -452,7 +452,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -468,7 +468,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -154,7 +154,7 @@
|
|||
var select = document.getElementById("location_select_id")
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -190,7 +190,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -213,7 +213,7 @@
|
|||
//console.log(name)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -333,7 +333,7 @@
|
|||
// 發送AJAX GET請求
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -394,7 +394,7 @@
|
|||
}
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -427,7 +427,7 @@
|
|||
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -452,7 +452,7 @@
|
|||
console.log(select_location)
|
||||
$.ajax({
|
||||
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: {},
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -482,7 +482,7 @@
|
|||
var end_time = new Date(end_date).toISOString();
|
||||
|
||||
// 構建請求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動作方法
|
||||
fetch(url, {
|
||||
|
@ -525,7 +525,7 @@
|
|||
<script>
|
||||
function export_excel() {
|
||||
// 發送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',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
|
@ -571,7 +571,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -593,7 +593,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -609,7 +609,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
var date = document.getElementById("serch_text_id").value
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -70,8 +70,8 @@
|
|||
function get_data() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
//url: "http://localhost: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/parking_space_area-" + name,
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -117,7 +117,7 @@
|
|||
function select_data(){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -142,7 +142,7 @@
|
|||
var name = document.getElementById("select_id").value
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost: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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
var license_plate_number = document.getElementById("serch_text_id").value
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -225,7 +225,7 @@
|
|||
console.log(token_check)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -297,7 +297,7 @@
|
|||
function get_single_parking_space_car(name){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://localhost: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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -328,8 +328,8 @@
|
|||
var stringify_obj = JSON.stringify(obj);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table",
|
||||
//url: "http://localhost:7700/api/Postural_Analysis_1",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table",
|
||||
//url: "http://140.125.20.183:7700/api/Postural_Analysis_1",
|
||||
//data: {test_id: test_id, test_date: test_date, test_time: test_time, test_analyst: test_analyst, img: img, data_creat_time: "2022-10-04T18:47:40.887014" },
|
||||
data: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -353,7 +353,7 @@
|
|||
function delet_data(name){
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "http://localhost:7700/api/Parking_spaces_total_table/"+name,
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_total_table/"+name,
|
||||
data: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -394,7 +394,7 @@
|
|||
console.log(token)
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token_check',
|
||||
url: 'http://140.125.20.183:7700/Users/token_check',
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -416,7 +416,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/token-' + token,
|
||||
url: 'http://140.125.20.183:7700/Users/token-' + token,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
@ -432,7 +432,7 @@
|
|||
var token = localStorage.getItem('token_park_space');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: 'http://localhost:7700/Users/user_id-' + id,
|
||||
url: 'http://140.125.20.183:7700/Users/user_id-' + id,
|
||||
headers: {
|
||||
'Authorization': token
|
||||
},
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -151,7 +151,7 @@
|
|||
console.log(stringify_obj)
|
||||
$.ajax({
|
||||
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: stringify_obj,
|
||||
contentType: "application/json",
|
||||
|
@ -194,7 +194,7 @@
|
|||
var name = document.getElementById("parking_spaces_name_id").value
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -274,7 +274,7 @@
|
|||
serial_number = car_serial_number
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
@ -327,7 +327,7 @@
|
|||
|
||||
$.ajax({
|
||||
type: "Post",
|
||||
url: "http://localhost:7700/api/Parking_spaces_history",
|
||||
url: "http://140.125.20.183:7700/api/Parking_spaces_history",
|
||||
data: stringify_obj,
|
||||
contentType: "application/json",
|
||||
success: function (msg) {
|
||||
|
@ -340,7 +340,7 @@
|
|||
function delet_data_2(location_name, name, time) {
|
||||
$.ajax({
|
||||
type: "DELETE",
|
||||
url: "http://localhost: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: {},
|
||||
contentType: "application/json",
|
||||
headers: {
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
var name = document.getElementById("parking_spaces_name_id").value
|
||||
$.ajax({
|
||||
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: {},
|
||||
contentType: "application/json",
|
||||
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="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="ParkingLog"> 查詢車位 </a>
|
||||
<a class="collapse-item" asp-controller="Engineering" asp-action="ParkingLog"> 查詢車流資訊 </a>
|
||||
</div>
|
||||
</div>
|
||||
</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="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="ParkingLog"> 查詢車流資訊 </a>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user