Commit e881d3f6 by 黄明步

调用记录搜索相关

parent 8f0a4424
...@@ -14,19 +14,38 @@ ...@@ -14,19 +14,38 @@
body { body {
background-color: #fff; background-color: #fff;
} }
.layui-input-inline {
width: 150px !important;
}
</style> </style>
</head> </head>
<body> <body>
<div class="layui-form" style="margin-left: 10px;" lay-filter="searchForm"> <div class="layui-form" style="margin-left: 5px;" lay-filter="searchForm">
<div class="layui-form-item" style="padding-top:10px;margin-bottom: 0"> <div class="layui-form-item" style="padding-top:10px;margin-bottom: 0">
法院:
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" style="width: 80px;">法院:</label> <!--<label class="layui-form-label" style="width: 50px;">法院:</label>-->
<div class="layui-input-inline" style="width: 355px;"> <div class="layui-input-inline">
<div id="court"></div> <div id="court"></div>
</div> </div>
</div> </div>
厂商:
<div class="layui-inline">
<!--<label class="layui-form-label" style="width: 50px;">厂商:</label>-->
<div class="layui-input-inline">
<div id="businessVendor"></div>
</div>
</div>
识别能力:
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">内外网</label> <!--<label class="layui-form-label" style="width: 50px;">识别能力:</label>-->
<div class="layui-input-inline">
<div id="ability"></div>
</div>
</div>
内外网:
<div class="layui-inline">
<!--<label class="layui-form-label">内外网</label>-->
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="network"> <select name="network">
<option value="-1" selected>全部</option> <option value="-1" selected>全部</option>
...@@ -35,6 +54,17 @@ ...@@ -35,6 +54,17 @@
</select> </select>
</div> </div>
</div> </div>
开始时间:
<div class="layui-inline">
<input type="text" name="startTime" id="startTime" placeholder="yyyy-MM-dd"
lay-verify="datetime" class="layui-input">
</div>
结束时间:
<div class="layui-inline">
<input type="text" name="endTime" id="endTime" placeholder="yyyy-MM-dd"
lay-verify="datetime" class="layui-input">
</div>
<div class="layui-inline"> <div class="layui-inline">
<button onclick="search();" class="layui-btn layui-btn-sm layui-btn-normal">搜索</button> <button onclick="search();" class="layui-btn layui-btn-sm layui-btn-normal">搜索</button>
</div> </div>
...@@ -52,50 +82,96 @@ ...@@ -52,50 +82,96 @@
<script> <script>
var list, table, form, condition = {}; var list, table, form, condition = {};
let courtList = []; let courtList = [];
layui.use(["table", "form"], function () { layui.use(['laydate', "table", "form"], function () {
var laydate = layui.laydate
table = layui.table; table = layui.table;
form = layui.form; form = layui.form;
initSearchForm(function (result) { //日期时间选择器
xmSelect.render({ laydate.render({
el: '#court', elem: '#endTime'
tips: "选择法院", });
filterable: true, laydate.render({
name: 'courtCode', elem: '#startTime'
autoRow: true, });
radio: true, initSearchForm(
clickClose: true, function (courtListData) {
data: result, xmSelect.render({
prop: { el: '#court',
name: 'name', tips: "选择法院",
value: 'courtCode' filterable: true,
}, name: 'courtCode',
on: function (select) { autoRow: true,
radio: true,
} clickClose: true,
}) data: courtListData,
prop: {
name: 'name',
value: 'courtCode'
},
on: function (select) {
}
});
},
function (applicationListData) {
xmSelect.render({
el: '#businessVendor',
tips: "选择厂商",
filterable: true,
name: 'applicationId',
autoRow: true,
radio: true,
clickClose: true,
data: applicationListData,
prop: {
name: 'description',
value: 'id'
},
on: function (select) {
}
});
},
function (abilityListData) {
xmSelect.render({
el: '#ability',
tips: "选择识别能力",
filterable: true,
name: 'abilityId',
autoRow: true,
radio: true,
clickClose: true,
data: abilityListData,
prop: {
name: 'name',
value: 'id'
},
on: function (select) {
}
});
}
);
list = table.render({ list = table.render({
elem: "#recordList" elem: "#recordList",
, url: "appAbilityRecordAll/getListByPage" url: "appAbilityRecordAll/getListByPage",
, title: "ocr应用能力调用记录" title: "ocr应用能力调用记录",
, response: { response: {
statusCode: 200 statusCode: 200
} },
, method: "post" method: "post",
, page: true page: true,
, toolbar: true toolbar: true,
, defaultToolbar: ['filter', 'print', {title: "导出数据表格", layEvent: "exports", icon: "layui-icon-export"}] defaultToolbar: ['filter', 'print', {title: "导出数据表格", layEvent: "exports", icon: "layui-icon-export"}],
, cols: [ cols: [
[ [
{field: 'id', width: 80, title: '编号', align: "center", hide: true} {field: 'id', width: 80, title: '编号', align: "center", hide: true}
, {field: 'courtName', width: 260, title: '法院名称', align: "center"} , {field: 'courtName', width: 260, title: '法院名称', align: "center"}
, {field: 'businessVendors', width: 180, title: '业务厂商', align: "center"} , {field: 'businessVendors', width: 180, title: '业务厂商', align: "center"}
, {field: 'callCount', width: 90, title: '调用次数', align: "center"} , {field: 'callCount', width: 90, title: '调用次数', align: "center"}
, {field: 'appAbilityName', width: 180, title: '识别能力', align: "center"} , {field: 'appAbilityName', width: 180, title: '识别能力', align: "center"}
, {field: 'ip', width: 160, title: '调用方IP', align: "center"} , {field: 'ip', width: 160, title: '调用方IP', align: "center"}
, {field: 'callTime', width: 180, title: '调用时间', align: "center"} , {field: 'fileCount', width: 90, title: '文件页数', align: "center"}
, {field: 'fileCount', width: 90, title: '文件页数', align: "center"} , {field: 'serverIp', width: 160, title: '服务器IP', align: "center"}
, {field: 'serverIp', width: 160, title: '服务器IP', align: "center"} , {field: 'callTime', title: '调用时间', align: "center"}
// , { // , {
// title: '操作', align: 'center' // title: '操作', align: 'center'
// , templet: function (data) { // , templet: function (data) {
...@@ -103,22 +179,21 @@ ...@@ -103,22 +179,21 @@
// return detailsBtn; // return detailsBtn;
// } // }
// } // }
]
] ]
, before: function (e) { ],
condition = e.where; before: function (e) {
condition = e.where;
},
parseData: function (res) {
return {
code: res.code,
msg: res.msg,
count: res.data.total,
data: res.data.records
} }
, parseData: function (res) { }
return {
code: res.code,
msg: res.msg,
count: res.data.total,
data: res.data.records
}
}
});
}); });
}); });
table.on("toolbar(recordList)", function (obj) { table.on("toolbar(recordList)", function (obj) {
...@@ -151,13 +226,27 @@ ...@@ -151,13 +226,27 @@
} }
function initSearchForm(callback) { function initSearchForm(courtListCallback, applicationListCallback, abilityListCallback) {
$.get("appAbilityRecordAll/getCourtByRole", function (res) { $.get("appAbilityRecordAll/getCourtByRole", function (res) {
if (res.code !== 200) { if (res.code !== 200) {
layer.msg(res.msg, {icon: 2}); layer.msg(res.msg, {icon: 2});
} else { } else {
courtList = res.data; courtList = res.data;
callback(res.data) courtListCallback(res.data)
}
});
$.get(gatewayUrl + "/configApp/selectApplicationAll", function (res) {
if (res.code !== 200) {
layer.msg(res.msg, {icon: 2});
} else {
applicationListCallback(res.data)
}
});
$.get(gatewayUrl + "/configApp/selectConfigAbilityAll", function (res) {
if (res.code !== 200) {
layer.msg(res.msg, {icon: 2});
} else {
abilityListCallback(res.data)
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment