From 6630b2ec8c727b8db75c36846f9d842fe245ac3e Mon Sep 17 00:00:00 2001
From: wanggang <76527413@qq.com>
Date: Tue, 30 Mar 2021 17:23:41 +0800
Subject: [PATCH] update
Former-commit-id: 110010740cc8fed81bd0db1abd8774996f85319e
Former-commit-id: 52f1a4c236d368ad8583d1cbc7f2f60494f3c5b7
---
.../Platform/Controllers/HomeController.cs | 10 +-
projects/Platform/Views/Home/Building.cshtml | 254 ++----------------
projects/Platform/Views/Home/Device.cshtml | 169 ------------
projects/Platform/Views/Home/Product.cshtml | 162 -----------
projects/Platform/Views/Home/Test.cshtml | 23 --
projects/Platform/Views/Shared/_Layout.cshtml | 4 +-
.../components/views/areas/default/data.vue | 1 -
projects/Platform/wwwroot/js/app.js | 2 +-
8 files changed, 33 insertions(+), 592 deletions(-)
delete mode 100644 projects/Platform/Views/Home/Device.cshtml
delete mode 100644 projects/Platform/Views/Home/Product.cshtml
delete mode 100644 projects/Platform/Views/Home/Test.cshtml
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}":"无设备")
-