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

page bug fix

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