|
|
|
@@ -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; |
|
|
|
} |
|
|
|
|