Browse Source

提交代码。

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

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

@@ -71,6 +71,7 @@ function searchItem(type,sortType){
currentSearchTableName = itemType[type];
currentSearchSortBy = sortBy[sortType];
OnlySearchLabel =false;
page(currentPage);
}
}
@@ -143,6 +144,7 @@ function displayResult(tableName,page,jsonResult,onlyReturnNum,keyword){
displayPrResult(page,jsonResult,onlyReturnNum,keyword);
}
if(!onlyReturnNum){
console.log("set total num." + tableName);
totalPage =Math.ceil(jsonResult.Total/pageSize);
totalNum = jsonResult.Total;
}


Loading…
Cancel
Save