From a7f5aead331169e28adc6274d34e2f3966b2203a Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 22 Oct 2019 16:54:30 +0800 Subject: [PATCH] update Former-commit-id: fa6b7f38bac00760d03318d380e8dc8283f41fd1 --- projects/Infrastructure/Infrastructure.csproj | 2 +- .../Areas/Admin/Views/Home/Index.cshtml | 40 ++++---- projects/IoTCenter/Views/Home/Index.cshtml | 6 +- projects/IoTCenter/Views/Home/Node.cshtml | 3 +- projects/IoTCenter/wwwroot/node.html | 43 +++++++++ projects/IoTCenter/wwwroot/node.tangshan.html | 8 +- .../StreamingAssets/IoT.Resources.csproj | 3 + .../StreamingAssets/wwwroot/images/lamp.png | Bin 0 -> 2627 bytes .../Assets/StreamingAssets/wwwroot/index.html | 10 +- .../Controllers/FBee/ColorLightController.cs | 77 +--------------- .../Controllers/FBee/WarmLightController.cs | 87 ++++++++++++++++++ .../IoTNode/DeviceServices/FBee/DeviceId.cs | 3 +- .../DeviceServices/FBee/FBeeService.cs | 6 +- projects/IoTNode/Program.cs | 2 + 14 files changed, 179 insertions(+), 111 deletions(-) create mode 100644 projects/IoTClient/Assets/StreamingAssets/wwwroot/images/lamp.png create mode 100644 projects/IoTNode/Controllers/FBee/WarmLightController.cs diff --git a/projects/Infrastructure/Infrastructure.csproj b/projects/Infrastructure/Infrastructure.csproj index f1ce6b9e..28d5daee 100644 --- a/projects/Infrastructure/Infrastructure.csproj +++ b/projects/Infrastructure/Infrastructure.csproj @@ -28,7 +28,7 @@ - + diff --git a/projects/IoTCenter/Areas/Admin/Views/Home/Index.cshtml b/projects/IoTCenter/Areas/Admin/Views/Home/Index.cshtml index 9f7a7fec..c1f35897 100644 --- a/projects/IoTCenter/Areas/Admin/Views/Home/Index.cshtml +++ b/projects/IoTCenter/Areas/Admin/Views/Home/Index.cshtml @@ -4,26 +4,6 @@ ViewData["IsHomePage"] = true; var max = env.IsDevelopment() ? 10 : 1; } -
-

节点

- @for (int i = 0; i < max; i++) - { - foreach (var item in Model.Nodes) - { -
-
-
-

@item.Name

-
设备:@item.DeviceCount
-
- - @item.Name - -
-
- } - } -

分类

@foreach (var item in Model.Categories) @@ -57,4 +37,24 @@
} + +
+

节点

+ @for (int i = 0; i < max; i++) + { + foreach (var item in Model.Nodes) + { +
+
+
+

@item.Name

+
设备:@item.DeviceCount
+
+ + @item.Name + +
+
+ } + }
\ No newline at end of file diff --git a/projects/IoTCenter/Views/Home/Index.cshtml b/projects/IoTCenter/Views/Home/Index.cshtml index de84629f..05056590 100644 --- a/projects/IoTCenter/Views/Home/Index.cshtml +++ b/projects/IoTCenter/Views/Home/Index.cshtml @@ -22,8 +22,8 @@ @HtmlTitle | @cfg["name"] - -
+ +
+ +