|
|
|
@@ -118,6 +118,7 @@ function doSearch(tableName,keyword,page,pageSize=15,onlyReturnNum=true,sortBy=" |
|
|
|
}, |
|
|
|
async:true, |
|
|
|
success:function(json){ |
|
|
|
console.log("tableName=" + tableName); |
|
|
|
console.log(json); |
|
|
|
displayResult(tableName,page,json,onlyReturnNum,keyword); |
|
|
|
}, |
|
|
|
@@ -542,7 +543,7 @@ function page(current){ |
|
|
|
console.log("currentPage=" + currentPage); |
|
|
|
if(currentPage > 1){ |
|
|
|
currentPage = currentPage-1; |
|
|
|
if(currentPage <= startIndex && startIndex >= 1){ |
|
|
|
if(currentPage <= startIndex && startIndex > 1){ |
|
|
|
startIndex = startIndex -1; |
|
|
|
endIndex = endIndex - 1; |
|
|
|
} |
|
|
|
@@ -601,7 +602,7 @@ function page(current){ |
|
|
|
html += "<a class=\"item navigation\" href=\"javascript:page(" + totalPage + ")\"><span class=\"navigation_label\">末页</span></a>"; |
|
|
|
} |
|
|
|
|
|
|
|
html +="<div class=\"item\"> 前往<div class=\"ui input\"><input id=\"inputpage\" type=\"text\" placeholder=\"1\"></div>页</div>"; |
|
|
|
html +="<div class=\"item\"> 前往<div class=\"ui input\"><input id=\"inputpage\" type=\"text\"></div>页</div>"; |
|
|
|
console.log("html=" + html) |
|
|
|
document.getElementById("page_menu").innerHTML=html; |
|
|
|
$('#inputpage').on('keypress',function(event){ |
|
|
|
|