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();