From a3f8be283e4a07a5a04312c61ca01876548e2a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=81=E5=8B=9D=20=E5=BC=B5?= Date: Thu, 2 May 2024 15:11:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=80=85=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=20=E4=B8=8B=E6=94=BE=201.=20=E7=B8=BD=E8=BB=8A=E8=BC=9B?= =?UTF-8?q?=E5=89=A9=E9=A4=98=E8=BB=8A=E8=BC=9B=202.=E9=80=B2=E5=85=A5?= =?UTF-8?q?=E8=BB=8A=E8=BC=9B=E5=8D=80=E5=9F=9F=E9=81=B8=E6=93=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Engineering/Engineering_Index.cshtml | 20 +- .../Views/Manager/Manager_Index.cshtml | 184 +++++++++++++++++- .../Views/Manager/Yuntech_in_car.cshtml | 80 +++++++- 3 files changed, 268 insertions(+), 16 deletions(-) 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 + "