diff --git a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml
index aa367fd..e402273 100644
--- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml
+++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml
@@ -242,10 +242,10 @@
var myLineChart = new Chart(ctx1, {
type: 'line',
data: {
- labels: date.reverse(),
+ labels: date,
datasets: [{
label: '車流量',
- data: values.reverse(),
+ data: values,
backgroundColor: 'rgba(75, 192, 192, 0.2)', // 設定背景色
borderColor: 'rgba(75, 192, 192, 1)', // 設定邊框色
pointHitRadius: 10,
@@ -334,10 +334,10 @@
var myBarChart = new Chart(ctx, {
type: 'bar',
data: {
- labels: date.reverse(),
+ labels: date,
datasets: [{
label: '違規數量',
- data: values.reverse(),
+ data: values,
backgroundColor: 'rgba(255, 0, 0, 0.5)', // 設定半透明的紅色背景
borderColor: 'rgba(255, 0, 0, 1)', // 設定不透明的紅色邊框
borderWidth: 1
@@ -366,21 +366,23 @@
var token_ckeck //= document.getElementById("token_ckeck_id").value
var position //職位
function get_violation_data_1() {
+ day = 30
violation_car_list = []
//console.log("start")
//token_check = document.getElementById("token_check_id").value
//console.log(token_check)
$.ajax({
type: "GET",
- url: "http://localhost:5174/api/Parking_spaces_violation_total_table",
+ url: "http://140.125.20.183:7700/api/Parking_spaces_violation_total_table",
data: {},
contentType: "application/json",
headers: {
'Authorization': token
},
success: function (Model) {
- get_violation_data_2(Model)
-
+ //get_violation_data_2(Model)
+ console.log(Model)
+ set_violation_data_1(Model)
}
});
@@ -393,150 +395,31 @@
////console.log(name)
$.ajax({
type: "GET",
- url: "http://localhost:5174/api/Violation_car_table/violation_location_name-" + name,
+ url: "http://140.125.20.183:7700/api/Violation_car_table/violation_location_name-" + name,
data: {},
contentType: "application/json",
- headers: {
- 'Authorization': token
- },
success: function (Model) {
set_violation_data_1(Model)
- }
- });
- }
- }
- set_violation_data_3()
-
- }
+
@@ -546,21 +429,18 @@
@@ -495,6 +366,7 @@
+
@@ -378,8 +249,8 @@