ソースを参照

api日志功能

中职版本
liangkun 3年前
コミット
518007350e
4個のファイルの変更137行の追加0行の削除
  1. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/LogController.cs
  2. +35
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml
  3. +94
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.js
  4. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/LogController.cs ファイルの表示

@@ -28,6 +28,11 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers
{
return View();
}
[HttpGet]
public ActionResult ApiIndex()
{
return View();
}
/// <summary>
/// 清空
/// </summary>


+ 35
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/Log/ApiIndex.cshtml ファイルの表示

@@ -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>&nbsp;<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>&nbsp;<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")


+ 94
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}



+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj ファイルの表示

@@ -1356,6 +1356,7 @@
<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.js" />
<Content Include="Areas\LR_SystemModule\Views\Log\ApiIndex.js" />
<Content Include="Areas\LR_TaskScheduling\Views\TaskDesign\AddDetailedForm.css" />
<Content Include="Areas\LR_TaskScheduling\Views\TaskDesign\AddDetailedForm.js" />
<Content Include="Areas\LR_TaskScheduling\Views\TaskDesign\Form.css" />
@@ -7145,6 +7146,8 @@
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\StatisticTimeIndex.cshtml" />
<Content Include="Areas\LR_ReportModule\Views\ReportTemplate\NWFSchemeReport.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\Sys_ReceiveDocument\PrintView.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\Permission\Views\Perm_FunctionVisit\IndexForCount.cshtml" />


読み込み中…
キャンセル
保存