Browse Source

首页跳转网上办事大厅 只允许教师跳转

新疆体育高职分支
ndbs 1 year ago
parent
commit
ac94163edd
2 changed files with 17 additions and 2 deletions
  1. +10
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
  2. +7
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml

+ 10
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs View File

@@ -69,7 +69,7 @@ namespace Learun.Application.Web.Controllers
public ActionResult SSOApplication()
{
var userinfo = LoginUserInfo.Get();
ViewBag.FunctionList = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m=>m.FIsH5==false);
ViewBag.FunctionList = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m => m.FIsH5 == false);
return View();
}
/// <summary>
@@ -510,6 +510,15 @@ namespace Learun.Application.Web.Controllers
ViewBag.ACIp = ConfigurationManager.AppSettings["ACIp"] ?? "";
ViewBag.ACIp2 = ConfigurationManager.AppSettings["ACIp2"] ?? "";

if (userinfo.Description == "学生")
{
ViewBag.wsbsdt = 0;
}
else
{
ViewBag.wsbsdt = 1;
}

switch (learn_UItheme)
{
case "1":


+ 7
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault.cshtml View File

@@ -61,7 +61,7 @@
<li><a href="javascript:void(0);" id="btn_gongwen3"><i class="fa fa-balance-scale"></i>备课任务 0 条</a></li>*@
<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共 @ViewBag.UnreadNum 条</li>
</ul>
<div style="display: inline-block; line-height: 18px; position: relative; top: -3px;" title="网上办事大厅">
<div id="wsbsdt" style="display: none; line-height: 18px; position: relative; top: -3px;" title="网上办事大厅">
<a href="/SSOSystem/DragModelOne" class="down downsso"><img src="~/Content/images/wsbsdt.png" /></a>
</div>
</div>
@@ -112,6 +112,12 @@
var Ip = "@ViewBag.Ip";
var ACIp = "@ViewBag.ACIp";
var ACIp2 = "@ViewBag.ACIp2";
var wsbsdt = @ViewBag.wsbsdt;
if (wsbsdt == "0") {
document.getElementById("wsbsdt").style.display = "none";//隐藏
} else if (wsbsdt=="1") {
document.getElementById("wsbsdt").style.display = "inline-block";
}
</script>
@Html.AppendJsFile("/Views/Home/AdminDefault/index.js")
@Html.AppendJsFile("/Views/Login/ACLogon.js")

Loading…
Cancel
Save