From 05a0619b00563556aed2a1d7b9057c23a36b71e5 Mon Sep 17 00:00:00 2001 From: b110212000 Date: Wed, 6 Oct 2021 13:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=BB=E7=AB=99=E8=B3=87=E8=A8=8A=E6=A8=99?= =?UTF-8?q?=E7=B1=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Controllers/MyBaseController.cs | 2 +- SolarPower/Views/StationOverview/StationOverviewInfo.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SolarPower/Controllers/MyBaseController.cs b/SolarPower/Controllers/MyBaseController.cs index 31afcb1..8556edb 100644 --- a/SolarPower/Controllers/MyBaseController.cs +++ b/SolarPower/Controllers/MyBaseController.cs @@ -177,7 +177,7 @@ namespace SolarPower.Controllers myUser.myPowerStationGroupByCities = myPowerStations; ViewBag.myPowerStationGroupByCities = myPowerStations; - if (controllerName == "PowerStation" && actionName == "Edit") + if (controllerName == "StationOverview" && actionName == "Info") { //電站資訊的各電站 string stationId_param = filterContext.HttpContext.Request.Query["stationId"]; diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml index e49b1d8..3b96580 100644 --- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml +++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml @@ -1,6 +1,6 @@ @{ - ViewData["MainNum"] = "1"; - ViewData["SubNum"] = "2"; + ViewData["MainNum"] = "2"; + //ViewData["SubNum"] = "2"; ViewData["Title"] = "電站總覽"; } @using SolarPower.Models.Role