【log.html】修改查询bug

pull/65/head
chenjinlong 4 years ago
parent f6f9b78761
commit 8e2b10ec6d

@ -36,8 +36,8 @@ layui.use(['HttpRequest', 'treeTable', 'laydate', 'func', 'form'], function () {
*/ */
Log.search = function () { Log.search = function () {
var queryData = {}; var queryData = {};
queryData['beginDate'] = $("#beginDate").val(); queryData['beginDateTime'] = $("#beginDateTime").val();
queryData['endDate'] = $("#endDate").val(); queryData['endDateTime'] = $("#endDateTime").val();
queryData['logName'] = $("#logName").val(); queryData['logName'] = $("#logName").val();
queryData['appName'] = $("#appName").val(); queryData['appName'] = $("#appName").val();
// queryData['logType'] = $("#logType").val(); // queryData['logType'] = $("#logType").val();
@ -85,19 +85,19 @@ layui.use(['HttpRequest', 'treeTable', 'laydate', 'func', 'form'], function () {
table.reload(Log.tableId); table.reload(Log.tableId);
}, function (data) { }, function (data) {
Feng.error("删除日志失败!" + data.message + "!"); Feng.error("删除日志失败!" + data.message + "!");
}).set(setData).start(true); }).set(queryData).start(true);
}; };
Feng.confirm("是否删除日志?", operation); Feng.confirm("是否删除日志?", operation);
}; };
// 渲染时间选择框 // 渲染时间选择框
laydate.render({ laydate.render({
elem: '#beginDate' elem: '#beginDateTime'
}); });
//渲染时间选择框 //渲染时间选择框
laydate.render({ laydate.render({
elem: '#endDate' elem: '#endDateTime'
}); });
// 渲染表格 // 渲染表格

@ -12,10 +12,10 @@
<div class="layui-form toolbar"> <div class="layui-form toolbar">
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
<input id="beginDate" class="layui-input" type="text" placeholder="开始时间"/> <input id="beginDateTime" class="layui-input" type="text" placeholder="开始时间"/>
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
<input id="endDate" class="layui-input" type="text" placeholder="结束时间"/> <input id="endDateTime" class="layui-input" type="text" placeholder="结束时间"/>
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
<input id="appName" class="layui-input" type="text" placeholder="服务名称"/> <input id="appName" class="layui-input" type="text" placeholder="服务名称"/>

Loading…
Cancel
Save