|
@@ -193,11 +193,8 @@ function getTabData(activePage){
|
|
|
const totalPage = data.pages;
|
|
|
const totalNum = data.total;
|
|
|
renderTab(detail,detail.hospitalId,activePage);
|
|
|
- renderPagination(totalPage,Number(activePage),totalNum)
|
|
|
- if(totalPage > 1){
|
|
|
+ if(totalNum>0){
|
|
|
renderPagination(totalPage,Number(activePage),totalNum)
|
|
|
- } else{
|
|
|
- $('.pagination').html("")
|
|
|
}
|
|
|
}else{
|
|
|
$.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|