瀏覽代碼

fix: 修复计量台账-全部附件,页数显示bug

lanjianrong 4 年之前
父節點
當前提交
f804b2325c
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      app/public/js/stage.js

+ 7 - 1
app/public/js/stage.js

@@ -3172,7 +3172,13 @@ $(document).ready(() => {
                 });
                 attData.splice(att_index, 1);
                 // 重新生成List
-                getAllList();
+
+                if ($('#alllist-table tr').length === 1) {
+                    getAllList(parseInt($('#currentPage').text()) - 1);
+
+                } else {
+                    getAllList(parseInt($('#currentPage').text()));
+                }
                 getNodeList(node.id);
                 $('#showAttachment').hide();
                 $('#showAttachment').attr('file-id', '');