|
@@ -302,7 +302,7 @@ function getTabData(activePage){
|
|
|
const totalNum = data.total;
|
|
|
renderTab(tabList,data.hospitalId);
|
|
|
renderPagination(totalPage,Number(activePage),totalNum)
|
|
|
- if(totalPage > 1){
|
|
|
+ if(totalPage > 0){
|
|
|
renderPagination(totalPage,Number(activePage),totalNum)
|
|
|
} else{
|
|
|
$('.pagination').html("")
|
|
@@ -338,7 +338,7 @@ function renderTab(data){
|
|
|
code=$(titles[i]).attr('valCode');
|
|
|
str += `<td class="textCenter"><span data-index=${i}>${ item[code] || "-"}<span></td>`
|
|
|
}
|
|
|
- str += `<td class="operaItem textCenter ${item.creatStatus=='已生成'?'taskCancel':'disable'}" code="${item.behospitalCode}">取消</td></tr>`
|
|
|
+ str += `<td class="operaItem textCenter ${(item.creatStatus=='已生成'||item.delFlag)?'taskCancel':'disable'}" code="${item.behospitalCode}">取消</td></tr>`
|
|
|
}
|
|
|
|
|
|
if(data.length === 0){
|