diff --git a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml index 786f488..9f027f3 100644 --- a/Parking_spaces/Views/Engineering/Engineering_Index.cshtml +++ b/Parking_spaces/Views/Engineering/Engineering_Index.cshtml @@ -643,6 +643,7 @@ }); } + + @@ -287,6 +351,122 @@ } + + + + + + + + + + + + + + + diff --git a/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml index d45efcf..da60017 100644 --- a/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Manager/Yuntech_in_car.cshtml @@ -14,6 +14,8 @@ +
+ @@ -131,6 +133,30 @@ } }); */ + var select = document.getElementById("location_select_id") + $.ajax({ + type: "GET", + url: "http://140.125.20.183:7700/api/Yuntech_in_car_table/location_name", + data: {}, + headers: { + 'Authorization': token + }, + contentType: "application/json", + headers: { + 'Authorization': token + }, + success: function (Model) { + console.log(Model) + // 清除现有的选项 + select.innerHTML = ""; + // 添加新的选项 + Model.forEach(function (item) { + var option = document.createElement('option'); + option.text = item.location_name; + select.add(option); + }); + } + }); } @@ -297,14 +323,26 @@ }, success: function (Model) { console.log(Model) - table = ""; - table += "" - table += "" - //table += "" - //table += "" - table += "" - table += "" - document.getElementById("detail_car_data").innerHTML = table + if (Model.out_time == null) { + table = ""; + table += "" + table += "" + //table += "" + //table += "" + table += "" + table += "" + document.getElementById("detail_car_data").innerHTML = table + } + else { + table = ""; + table += "" + table += "" + //table += "" + //table += "" + table += "" + table += "" + document.getElementById("detail_car_data").innerHTML = table + } } }); detail_car_data_view.showModal(); @@ -364,6 +402,32 @@ } + + + +
" + Model.location + "" + '' + "" + "" + "" + "" + "" + Model.in_time + "
" + Model.location + "" + '' + "" + "" + "" + "" + "" + Model.in_time + "
" + Model.location + "" + '' + "" + "" + "" + "" + " " + "" + "進入時間:" + Model.in_time + "
" + "
" + "出去時間: " + Model.out_time + "