From e7ac760dab9d0c319dd7c0e961f74d4c31ca2534 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Thu, 21 Nov 2019 13:54:26 +0800 Subject: [PATCH] update Former-commit-id: 2b604ceda78bec3f9f06e84636239d14c8b4dbe3 --- .../IoTCenter/Controllers/HomeController.cs | 4 +- projects/IoTCenter/Views/Home/Device.cshtml | 328 +++++++++++++++--- projects/IoTCenter/Views/Home/Product.cshtml | 2 +- .../StreamingAssets/wwwroot/js/device.js | 53 ++- .../Controllers/FBee/GatewayController.cs | 16 +- 5 files changed, 347 insertions(+), 56 deletions(-) diff --git a/projects/IoTCenter/Controllers/HomeController.cs b/projects/IoTCenter/Controllers/HomeController.cs index a771e34a..35a451a6 100644 --- a/projects/IoTCenter/Controllers/HomeController.cs +++ b/projects/IoTCenter/Controllers/HomeController.cs @@ -54,9 +54,9 @@ namespace IoTCenter.Controllers return View(); } - public IActionResult Device() + public IActionResult Device(string productNumber) { - return View(); + return View(model: productNumber); } public IActionResult Nodes() diff --git a/projects/IoTCenter/Views/Home/Device.cshtml b/projects/IoTCenter/Views/Home/Device.cshtml index 93faf648..052a8af4 100644 --- a/projects/IoTCenter/Views/Home/Device.cshtml +++ b/projects/IoTCenter/Views/Home/Device.cshtml @@ -1,6 +1,10 @@ -@{ +@model string +@{ HtmlTitle = "设备详情"; } +@section bread{ + +}