@@ -84,7 +84,15 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
public ActionResult ApiIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -0,0 +1,35 @@ | |||||
@{ | |||||
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 id="datesearch" class="datetime"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlt">查询</span></a> | |||||
</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 class=" btn-group btn-group-sm"> | |||||
<a id="lr_export" class="btn btn-default"><i class="fa fa-sign-out"></i> <span class="lrlt">导出</span></a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/LR_SystemModule/Views/Log/ApiIndex.js") | |||||
@@ -0,0 +1,94 @@ | |||||
/* | |||||
* 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 北京泉江科技有限公司 | |||||
* 创建人:陈彬彬 | |||||
* 日 期:2017.03.22 | |||||
* 描 述:日志管理 | |||||
*/ | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var categoryId = '999'; | |||||
var logbegin = ''; | |||||
var logend = ''; | |||||
var refreshGirdData = function () { | |||||
page.search(); | |||||
} | |||||
var page = { | |||||
init: function () { | |||||
page.initGrid(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('.datetime').each(function () { | |||||
$(this).lrdate({ | |||||
dfdata: [ | |||||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
], | |||||
// 月 | |||||
mShow: false, | |||||
premShow: false, | |||||
// 季度 | |||||
jShow: false, | |||||
prejShow: false, | |||||
// 年 | |||||
ysShow: false, | |||||
yxShow: false, | |||||
preyShow: false, | |||||
yShow: false, | |||||
// 默认 | |||||
dfvalue: '1', | |||||
selectfn: function (begin, end) { | |||||
logbegin = begin; | |||||
logend = end; | |||||
page.search(); | |||||
} | |||||
}); | |||||
}); | |||||
// 查询 | |||||
$('#btn_Search').on('click', function () { | |||||
var keyword = $('#txt_Keyword').val(); | |||||
page.search({ keyword: keyword }); | |||||
}); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
}, | |||||
initGrid: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/LR_SystemModule/Log/GetPageList', | |||||
headData: [ | |||||
{ | |||||
label: "操作时间", name: "F_OperateTime",width: 135, align: "left", | |||||
formatter: function (cellvalue) { | |||||
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss'); | |||||
} | |||||
}, | |||||
{ label: "操作接口", name: "F_SourceObjectId",width: 140, align: "left" }, | |||||
{ label: "执行结果描述", name: "F_SourceContentJson", width: 300, align: "left" } | |||||
], | |||||
mainId: 'F_LogId', | |||||
isPage: true, | |||||
sidx: 'F_OperateTime' | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
param.CategoryId = categoryId; | |||||
param.StartTime = logbegin; | |||||
param.EndTime = logend; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
page.init(); | |||||
} | |||||
@@ -1,4 +1,4 @@ | |||||
<?xml version="1.0" encoding="utf-8"?> | |||||
<?xml version="1.0" encoding="utf-8"?> | |||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
@@ -1412,6 +1412,7 @@ | |||||
<Content Include="Areas\LR_SystemModule\Views\Files\Form.js" /> | <Content Include="Areas\LR_SystemModule\Views\Files\Form.js" /> | ||||
<Content Include="Areas\LR_SystemModule\Views\Files\Index.css" /> | <Content Include="Areas\LR_SystemModule\Views\Files\Index.css" /> | ||||
<Content Include="Areas\LR_SystemModule\Views\Files\Index.js" /> | <Content Include="Areas\LR_SystemModule\Views\Files\Index.js" /> | ||||
<Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.js" /> | |||||
<Content Include="Areas\LR_SystemModule\Views\Log\FormDAM.js" /> | <Content Include="Areas\LR_SystemModule\Views\Log\FormDAM.js" /> | ||||
<Content Include="Areas\LR_SystemModule\Views\Log\IndexDAM.js" /> | <Content Include="Areas\LR_SystemModule\Views\Log\IndexDAM.js" /> | ||||
<Content Include="Areas\LR_TaskScheduling\Views\TaskDesign\AddDetailedForm.css" /> | <Content Include="Areas\LR_TaskScheduling\Views\TaskDesign\AddDetailedForm.css" /> | ||||
@@ -7477,6 +7478,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachFormQZ.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\ClassPlanTeach\TeachFormQZ.cshtml" /> | ||||
<Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<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" /> | ||||
@@ -7601,10 +7603,10 @@ | |||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | ||||
<WebProjectProperties> | <WebProjectProperties> | ||||
<UseIIS>False</UseIIS> | <UseIIS>False</UseIIS> | ||||
<AutoAssignPort>True</AutoAssignPort> | |||||
<DevelopmentServerPort>20472</DevelopmentServerPort> | |||||
<AutoAssignPort>True</AutoAssignPort> | |||||
<DevelopmentServerPort>20472</DevelopmentServerPort> | |||||
<DevelopmentServerVPath>/</DevelopmentServerVPath> | <DevelopmentServerVPath>/</DevelopmentServerVPath> | ||||
<IISUrl>http://localhost:20873/</IISUrl> | |||||
<IISUrl>http://localhost:20873/</IISUrl> | |||||
<NTLMAuthentication>False</NTLMAuthentication> | <NTLMAuthentication>False</NTLMAuthentication> | ||||
<UseCustomServer>False</UseCustomServer> | <UseCustomServer>False</UseCustomServer> | ||||
<CustomServerUrl> | <CustomServerUrl> | ||||