diff --git a/Parking_spaces/Properties/launchSettings.json b/Parking_spaces/Properties/launchSettings.json index c3a631a..092e2c5 100644 --- a/Parking_spaces/Properties/launchSettings.json +++ b/Parking_spaces/Properties/launchSettings.json @@ -3,7 +3,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:2361", + "applicationUrl": "http://140.125.20.183:2361", "sslPort": 44352 } }, @@ -11,7 +11,7 @@ "Parking_spaces": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "http://localhost:5173", + "applicationUrl": "http://140.125.20.183: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 87bbb13..e98d7a9 100644 --- a/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml +++ b/Parking_spaces/Views/Engineering/Yuntech_in_car.cshtml @@ -14,6 +14,8 @@ +
+ @@ -132,6 +134,31 @@ } }); */ + 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); + }); + } + }); + } @@ -370,6 +397,33 @@ } + + + + +