@@ -77,7 +77,6 @@ var bootstrap = function ($, learun) { | |||||
isPage: true, | isPage: true, | ||||
sidx: 'F_OperateTime' | sidx: 'F_OperateTime' | ||||
}); | }); | ||||
page.search(); | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
@@ -14,7 +14,7 @@ | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_viewlog" class="btn btn-default"><i class="fa fa-trash-o"></i> <span class="lrlt">在线会话监控</span></a> | |||||
<a id="lr_viewlog" class="btn btn-default"><i class="fa fa-info-circle"></i> <span class="lrlt">在线会话监控</span></a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -20,16 +20,16 @@ var bootstrap = function ($, learun) { | |||||
location.reload(); | location.reload(); | ||||
}); | }); | ||||
$('#lr_viewlog').on('click', function () { | $('#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 () { | initGrid: function () { | ||||
@@ -28,6 +28,12 @@ namespace Learun.Application.Web.Areas.Permission.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
[HttpGet] | |||||
public ActionResult IndexForCount() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 表单页 | /// 表单页 | ||||
/// <summary> | /// <summary> | ||||
@@ -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") |
@@ -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(); | |||||
} |
@@ -1356,6 +1356,7 @@ | |||||
<Content Include="Areas\LR_TaskScheduling\Views\TSScheme\Index.js" /> | <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.css" /> | ||||
<Content Include="Areas\LR_TaskScheduling\Views\TSScheme\SelectExpressForm.js" /> | <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\FormRemove.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormTerminate.js" /> | <Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormTerminate.js" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\ContractManagement\FormRenew.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_OAModule\Views\Notice\IndexRecycle.cshtml" /> | ||||
<Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.cshtml" /> | <Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.cshtml" /> | ||||
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\ContractFilingMonitor.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" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile1.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile1.pubxml" /> | ||||
@@ -43,6 +43,11 @@ namespace Learun.Application.TwoDevelopment.Permission | |||||
dp.Add("PUName", "%" + queryParam["PUName"].ToString() + "%", DbType.String); | dp.Add("PUName", "%" + queryParam["PUName"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND a.PUName Like @PUName "); | 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); | return this.BaseRepository().FindList<Perm_FunctionVisitEntity>(strSql.ToString(),dp, pagination); | ||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||