Browse Source

优化自定义条件查询方法

pull/305/head
RuoYi 6 years ago
parent
commit
2d58091792
  1. 11
      ruoyi-admin/src/main/resources/templates/system/dict/data/data.html
  2. 11
      ruoyi-admin/src/main/resources/templates/system/role/authUser.html
  3. 11
      ruoyi-admin/src/main/resources/templates/system/role/selectUser.html

11
ruoyi-admin/src/main/resources/templates/system/dict/data/data.html

@ -122,14 +122,9 @@
});
function queryParams(params) {
return {
dictType: $("#dictType").val(),
pageSize: params.limit,
pageNum: params.offset / params.limit + 1,
searchValue: params.search,
orderByColumn: params.sort,
isAsc: params.order
};
var search = $.table.queryParams(params);
search.dictType = $("#dictType").val();
return search;
}
/*字典数据-新增字典*/

11
ruoyi-admin/src/main/resources/templates/system/role/authUser.html

@ -114,14 +114,9 @@
});
function queryParams(params) {
return {
roleId: $("#roleId").val(),
pageSize: params.limit,
pageNum: params.offset / params.limit + 1,
searchValue: params.search,
orderByColumn: params.sort,
isAsc: params.order
};
var search = $.table.queryParams(params);
search.roleId = $("#roleId").val();
return search;
}
/* 分配用户-选择用户 */

11
ruoyi-admin/src/main/resources/templates/system/role/selectUser.html

@ -100,14 +100,9 @@
});
function queryParams(params) {
return {
roleId: $("#roleId").val(),
pageSize: params.limit,
pageNum: params.offset / params.limit + 1,
searchValue: params.search,
orderByColumn: params.sort,
isAsc: params.order
};
var search = $.table.queryParams(params);
search.roleId = $("#roleId").val();
return search;
}
/* 添加用户-选择用户-提交 */

Loading…
Cancel
Save