diff --git a/projects/Platform/Controllers/HomeController.cs b/projects/Platform/Controllers/HomeController.cs
index 166e5f63..9a58726d 100644
--- a/projects/Platform/Controllers/HomeController.cs
+++ b/projects/Platform/Controllers/HomeController.cs
@@ -27,11 +27,19 @@ namespace Platform.Controllers
this._statisticRepo = statisticRepo;
}
- [Authorize]
public IActionResult Index()
{
return View();
}
+ public IActionResult Building()
+ {
+ return View();
+ }
+
+ public IActionResult Alarm()
+ {
+ return View();
+ }
public string Mac(string id)
{
diff --git a/projects/Platform/Views/Home/Building.cshtml b/projects/Platform/Views/Home/Building.cshtml
index 567216c6..816505fd 100644
--- a/projects/Platform/Views/Home/Building.cshtml
+++ b/projects/Platform/Views/Home/Building.cshtml
@@ -1,237 +1,25 @@
-@model Platform.ViewModels.HomeModel
-@{
+@{
HideBread = true;
-}
-
-
最大值:@(Model.MaxLight.HasValue?$"{Model.MaxLight.Value} Lux":"无设备")
-最小值:@(Model.MinLight.HasValue?$"{Model.MinLight.Value} Lux":"无设备")
-最大值:@(Model.MaxTemperatures.HasValue?$"{Model.MaxTemperatures.Value.ToString("f2")} ℃":"无设备")
-最小值:@(Model.MinTemperaturest.HasValue?$"{Model.MinTemperaturest.Value.ToString("f2")} ℃":"无设备")
-最大值:@(Model.MaxHumidity.HasValue?$"{Model.MaxHumidity.Value.ToString("f2")} RH%" :"无设备")
-最小值:@(Model.MinHumidity.HasValue?$"{Model.MinHumidity.Value.ToString("f2")} RH%" :"无设备")
-开:@(Model.Open.HasValue?$"{Model.Open.Value}":"无设备")
-关:@(Model.Close.HasValue?$"{Model.Close.Value}":"无设备")
-