Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 4 years ago
parent
commit
52ef194725
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      public/home/search.js

+ 3
- 2
public/home/search.js View File

@@ -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){


Loading…
Cancel
Save