|
@@ -109,7 +109,7 @@ function getAllList(currPageNum = 1) {
|
|
|
// 总页数
|
|
|
const pageNum = Math.ceil(total/pageCount);
|
|
|
$('#totalPage').text(pageNum);
|
|
|
- $('#currentPage').text(currPageNum);
|
|
|
+ $('#currentPage').text(total === 0 ? 0 : currPageNum);
|
|
|
// 当前页附件内容
|
|
|
const currPageAttData = attData.slice((currPageNum-1)*pageCount, currPageNum*pageCount);
|
|
|
let html = '';
|
|
@@ -1129,9 +1129,9 @@ $(document).ready(() => {
|
|
|
SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData);
|
|
|
getNodeList(node.id);
|
|
|
// 如果是附件是当前节点,隐藏
|
|
|
- if ($('#dqjiedian').hasClass('active')) {
|
|
|
- $('#showAttachment').hide();
|
|
|
- }
|
|
|
+ // if ($('#dqjiedian').hasClass('active')) {
|
|
|
+ // $('#showAttachment').hide();
|
|
|
+ // }
|
|
|
} else {
|
|
|
SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', []);
|
|
|
}
|