Commit 88960315 authored by 李家智's avatar 李家智
Browse files

page bug fix

parent 5c7f7dfd
...@@ -8,19 +8,18 @@ queryByCondition ...@@ -8,19 +8,18 @@ queryByCondition
@} @}
from core_dict t from core_dict t
where del_flag=0 where del_flag=0
@//数据权限,该sql语句功能点
and #function("dict.query")#
@if(!isEmpty(value)){ @if(!isEmpty(value)){
and t.VALUE =#value# and t.VALUE like #"%"+value+"%"#
@} @}
@if(!isEmpty(name)){ @if(!isEmpty(name)){
and t.NAME =#name# and t.NAME like #"%"+name+"%"#
@} @}
@if(!isEmpty(typeName)){ @if(!isEmpty(typeName)){
and t.TYPE_NAME =#typeName# and t.TYPE_NAME like #"%"+typeName+"%"#
@} @}
@if(!isEmpty(parent)){ @if(!isEmpty(parent)){
and t.PARENT =#parent# and t.PARENT like #"%"+parent+"%"#
@} @}
@pageIgnoreTag(){ @pageIgnoreTag(){
order by create_time desc order by create_time desc
......
...@@ -232,10 +232,13 @@ var Lib = { ...@@ -232,10 +232,13 @@ var Lib = {
/* 搜索 */ /* 搜索 */
doSearchForm : function(form, tableIns, page) { doSearchForm : function(form, tableIns, page) {
var data = form.serializeJson() var data = form.serializeJson()
if (page == null) { if (page != null) {
tableIns.reload({ tableIns.reload({
where : data, where : data,
page : page page: {
curr: page
}
}); });
} else { } else {
tableIns.reload({ tableIns.reload({
......
Supports Markdown
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