Commit b2745c60 by fengshuonan

更新查询条件重置后未重置分页参数的问题

parent aa286ac1
......@@ -37,7 +37,9 @@ layui.use(['table', 'admin', 'ax', 'ztree'], function () {
var queryData = {};
queryData['condition'] = $("#name").val();
queryData['deptId'] = Dept.condition.deptId;
table.reload(Dept.tableId, {where: queryData});
table.reload(Dept.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -62,7 +62,9 @@ layui.use(['table', 'ax'], function () {
queryData['condition'] = $("#condition").val();
queryData['systemFlag'] = $("#systemFlag").val();
queryData['status'] = $("#status").val();
table.reload(DictType.tableId, {where: queryData});
table.reload(DictType.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -39,7 +39,9 @@ layui.use(['layer', 'table', 'ax', 'laydate'], function () {
queryData['endTime'] = $("#endTime").val();
queryData['logName'] = $("#logName").val();
queryData['logType'] = $("#logType").val();
table.reload(LoginLog.tableId, {where: queryData});
table.reload(LoginLog.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -35,7 +35,9 @@ layui.use(['layer', 'table', 'ax', 'laydate'], function () {
queryData['beginTime'] = $("#beginTime").val();
queryData['endTime'] = $("#endTime").val();
queryData['logName'] = $("#logName").val();
table.reload(LoginLog.tableId, {where: queryData});
table.reload(LoginLog.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -34,7 +34,9 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
Notice.search = function () {
var queryData = {};
queryData['condition'] = $("#condition").val();
table.reload(Notice.tableId, {where: queryData});
table.reload(Notice.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -36,7 +36,9 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
Role.search = function () {
var queryData = {};
queryData['roleName'] = $("#roleName").val();
table.reload(Role.tableId, {where: queryData});
table.reload(Role.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -55,7 +55,9 @@ layui.use(['layer', 'form', 'table', 'ztree', 'laydate', 'admin', 'ax'], functio
queryData['deptId'] = MgrUser.condition.deptId;
queryData['name'] = $("#name").val();
queryData['timeLimit'] = $("#timeLimit").val();
table.reload(MgrUser.tableId, {where: queryData});
table.reload(MgrUser.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -34,7 +34,9 @@ layui.use(['table', 'admin', 'ax'], function () {
${entity}.search = function () {
var queryData = {};
queryData['condition'] = $("#condition").val();
table.reload(${entity}.tableId, {where: queryData});
table.reload(${entity}.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
......@@ -48,7 +48,9 @@ layui.use(['table', 'admin', 'ax'], function () {
EgForm.search = function () {
var queryData = {};
queryData['condition'] = $("#condition").val();
table.reload(EgForm.tableId, {where: queryData});
table.reload(EgForm.tableId, {
where: queryData, page: {curr: 1}
});
};
/**
......
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