From 75c07b06de6b5eda51778600e7998cb0edd2c8ca Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 17 Mar 2023 11:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E4=B8=8A=E5=8A=9E=E4=BA=8B=E5=A4=A7?= =?UTF-8?q?=E5=8E=85=E5=B0=8F=E9=A3=9E=E6=9C=BA=E5=9B=BE=E6=A0=87=E5=8F=AF?= =?UTF-8?q?=E8=A7=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.Web/Controllers/HomeController.cs | 2 +- .../Learun.Application.Web/Views/Home/AdminDefault.cshtml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs index a7df007aa..cd3a45778 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs @@ -512,7 +512,7 @@ namespace Learun.Application.Web.Controllers ViewBag.Ip = GetIP(); ViewBag.ACIp = ConfigurationManager.AppSettings["ACIp"] ?? ""; ViewBag.ACIp2 = ConfigurationManager.AppSettings["ACIp2"] ?? ""; - if (userinfo.Description == "教师") + if (userinfo.Description == "学生") { ViewBag.wsbsdt = 0; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml index 2611e7989..41eabe7de 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml @@ -111,11 +111,10 @@ var ACIp = "@ViewBag.ACIp"; var ACIp2 = "@ViewBag.ACIp2"; var wsbsdt = @ViewBag.wsbsdt; - if (wsbsdt == "1") { + if (wsbsdt == "0") { document.getElementById("wsbsdt").style.display = "none";//隐藏 - } else if (wsbsdt=="0") { + } else if (wsbsdt=="1") { document.getElementById("wsbsdt").style.display = "inline-block"; - }