Browse Source

校历管理

金隅分支
zhangli 3 years ago
parent
commit
c88d32e0e0
8 changed files with 101 additions and 12 deletions
  1. +0
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/OnlineUserIndex.cshtml
  3. +10
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/OnlineUserIndex.js
  4. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Controllers/Perm_FunctionVisitController.cs
  5. +23
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml
  6. +54
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js
  7. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  8. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_FunctionVisit/Perm_FunctionVisitService.cs

+ 0
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js View File

@@ -77,7 +77,6 @@ var bootstrap = function ($, learun) {
isPage: true,
sidx: 'F_OperateTime'
});
page.search();
},
search: function (param) {
param = param || {};


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/OnlineUserIndex.cshtml View File

@@ -14,7 +14,7 @@
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm">
<a id="lr_viewlog" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;<span class="lrlt">在线会话监控</span></a>
<a id="lr_viewlog" class="btn btn-default"><i class="fa fa-info-circle"></i>&nbsp;<span class="lrlt">在线会话监控</span></a>
</div>
</div>
</div>


+ 10
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/OnlineUserIndex.js View File

@@ -20,16 +20,16 @@ var bootstrap = function ($, learun) {
location.reload();
});
$('#lr_viewlog').on('click', function () {
learun.layerForm({
id: 'form',
title: '清空',
url: top.$.rootUrl + '/LR_SystemModule/Log/Form?categoryId=' + categoryId,
height: 200,
width: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
var keyValue = $('#gridtable').jfGridValue('F_OperateUserId');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'online',
title: '访问监控',
url: top.$.rootUrl + '/Permission/Perm_FunctionVisit/IndexForCount?F_UserId='+keyValue,
height: 500,
width: 800
});
}
});
},
initGrid: function () {


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Controllers/Perm_FunctionVisitController.cs View File

@@ -28,6 +28,12 @@ namespace Learun.Application.Web.Areas.Permission.Controllers
{
return View();
}

[HttpGet]
public ActionResult IndexForCount()
{
return View();
}
/// <summary>
/// 表单页
/// <summary>


+ 23
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.cshtml View File

@@ -0,0 +1,23 @@
@{
ViewBag.Title = "统一认证访问日志";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js")

+ 54
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_FunctionVisit/IndexForCount.js View File

@@ -0,0 +1,54 @@
/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
* Copyright (c) 2013-2018 北京泉江科技有限公司
* 创建人:超级管理员
* 日 期:2019-07-09 10:45
* 描 述:统一认证访问日志
*/
var refreshGirdData;
var F_UserId = request("F_UserId");
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/Permission/Perm_FunctionVisit/GetPageList',
headData: [
{ label: "系统名称", name: "FName", width: 200, align: "left" },
{ label: "访问日期", name: "PDate", width: 150, align: "left" },
{
label: "是否成功", name: "PIsLoginSuccess", width: 70, align: "center", formatter: function (cellvalue) {
return cellvalue == true ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
}
},
{ label: "用户名称", name: "PUName", width: 100, align: "left" },
{ label: "访问情况", name: "PContent", width: 200, align: "left" },
],
mainId: 'PVId',
isPage: true,
sidx:'PDate desc'
});
page.search();
},
search: function (param) {
param = param || {};
param.F_UserId = F_UserId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
page.search();
};
page.init();
}

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -1356,6 +1356,7 @@
<Content Include="Areas\LR_TaskScheduling\Views\TSScheme\Index.js" />
<Content Include="Areas\LR_TaskScheduling\Views\TSScheme\SelectExpressForm.css" />
<Content Include="Areas\LR_TaskScheduling\Views\TSScheme\SelectExpressForm.js" />
<Content Include="Areas\Permission\Views\Perm_FunctionVisit\IndexForCount.js" />
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormRemove.js" />
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormTerminate.js" />
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormRenew.js" />
@@ -7120,6 +7121,7 @@
<Content Include="Areas\LR_OAModule\Views\Notice\IndexRecycle.cshtml" />
<Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\ContractFilingMonitor.cshtml" />
<Content Include="Areas\Permission\Views\Perm_FunctionVisit\IndexForCount.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\SchoolCalendar\ScheduleIndex.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_FunctionVisit/Perm_FunctionVisitService.cs View File

@@ -43,6 +43,11 @@ namespace Learun.Application.TwoDevelopment.Permission
dp.Add("PUName", "%" + queryParam["PUName"].ToString() + "%", DbType.String);
strSql.Append(" AND a.PUName Like @PUName ");
}
if (!queryParam["F_UserId"].IsEmpty())
{
dp.Add("F_UserId", "" + queryParam["F_UserId"].ToString() + "", DbType.String);
strSql.Append(" AND a.PUId = @F_UserId ");
}
return this.BaseRepository().FindList<Perm_FunctionVisitEntity>(strSql.ToString(),dp, pagination);
}
catch (Exception ex)


Loading…
Cancel
Save