Bläddra i källkod

在线会话监控

金隅分支
liangkun 3 år sedan
förälder
incheckning
209e28b23f
8 ändrade filer med 101 tillägg och 12 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" />


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

@@ -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)


Laddar…
Avbryt
Spara