From 5f1653236e578424541a030aa9aba01e9ac577e6 Mon Sep 17 00:00:00 2001 From: leo890808 <158404739+leo890808@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=8A=E6=9B=B4=E6=9F=A5=E8=A9=A2=E9=80=B2?= =?UTF-8?q?=E5=87=BA=E6=A0=A1=E5=9C=92=E9=A0=81=E9=9D=A2=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=87=BA=E5=8E=BB=E8=BB=8A=E5=9C=96=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Parking_spaces/Properties/launchSettings.json | 2 +- .../Views/Engineering/Yuntech_in_car.cshtml | 29 ++++++++++++++----- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Parking_spaces/Properties/launchSettings.json b/Parking_spaces/Properties/launchSettings.json index 092e2c5..d8f93b8 100644 --- a/Parking_spaces/Properties/launchSettings.json +++ b/Parking_spaces/Properties/launchSettings.json @@ -11,7 +11,7 @@ "Parking_spaces": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "http://140.125.20.183:5173", + "applicationUrl": "http://127.0.0.1:5173", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, diff --git a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml index e98d7a9..93ee1df 100644 --- a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml @@ -324,14 +324,27 @@ }, success: function (Model) { console.log(Model) - table = ""; - table += "" + Model.location + "" - table += "" + '' + "" - //table += "" + "" - //table += "" + "" - table += "" + "" + "" - table += "" + Model.in_time + "" - document.getElementById("detail_car_data").innerHTML = table + if (Model.out_time == null) { + table = ""; + table += "" + Model.location + "" + table += "" + '' + "" + //table += "" + "" + //table += "" + "" + table += "" + "" + "" + table += "" + Model.in_time + "" + document.getElementById("detail_car_data").innerHTML = table + } + else { + table = ""; + table += "" + Model.location + "" + table += "" + '' + "" + //table += "" + "" + //table += "" + "" + table += "" + ""+ "" + "" + table += "" + "進入時間:" + Model.in_time + "
"+"
" + "出去時間: " + Model.out_time + "" + document.getElementById("detail_car_data").innerHTML = table + } + } }); detail_car_data_view.showModal();