From d406fe08e8dd0ebef83f22aa09f0a61f1ec67b3c Mon Sep 17 00:00:00 2001 From: b110212000 Date: Mon, 25 Oct 2021 16:11:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=20=E6=94=B6=E7=B8=AE?= =?UTF-8?q?=E5=92=8C=E5=BD=88=E6=94=BE=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Views/AnalysisInverter/Index.cshtml | 2 +- SolarPower/Views/AnalysisStationInfo/Index.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SolarPower/Views/AnalysisInverter/Index.cshtml b/SolarPower/Views/AnalysisInverter/Index.cshtml index a33cf5e..cc4e6a2 100644 --- a/SolarPower/Views/AnalysisInverter/Index.cshtml +++ b/SolarPower/Views/AnalysisInverter/Index.cshtml @@ -470,7 +470,7 @@ '
' + powerStationkey + '
' + '' + '' + - '
' + + '
' + '
' + '
    '; $.each(inverterCollapse[key][powerStationkey], function (index, inverter) { diff --git a/SolarPower/Views/AnalysisStationInfo/Index.cshtml b/SolarPower/Views/AnalysisStationInfo/Index.cshtml index 4cc50c0..e013ce5 100644 --- a/SolarPower/Views/AnalysisStationInfo/Index.cshtml +++ b/SolarPower/Views/AnalysisStationInfo/Index.cshtml @@ -485,7 +485,7 @@ '
    ' + powerStationkey + '
    ' + '' + '
' + - '
' + + '
' + '
' + ' } - @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStationManager")) - { -
  • - - - 電站管理 - - -
  • - } + @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("Operation") || ViewBag.auths.Contains("OperationRecord")) {
  • @@ -392,6 +377,22 @@
  • } + @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("PowerStationManager")) + { +
  • + + + 電站管理 + + +
  • + } @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.auths.Contains("Company") || ViewBag.auths.Contains("User") || ViewBag.auths.Contains("Role") || ViewBag.auths.Contains("User"))@*TODO修改定時任務權限*@ {