diff --git a/src/views/financialinformation/quarterlyreports/size375/index.vue b/src/views/financialinformation/quarterlyreports/size375/index.vue index 4ff61dc..8dd35c6 100644 --- a/src/views/financialinformation/quarterlyreports/size375/index.vue +++ b/src/views/financialinformation/quarterlyreports/size375/index.vue @@ -301,39 +301,15 @@ const togglePageSizeMenu = () => { }; const getVisiblePages = () => { - const current = state.currentPage; const total = totalPages.value; - const pages = []; - - if (total <= 7) { + if (total <= 2) { + const pages = []; for (let i = 1; i <= total; i++) { pages.push(i); } - } else { - pages.push(1); - - if (current <= 4) { - for (let i = 2; i <= 5; i++) { - pages.push(i); - } - pages.push("..."); - pages.push(total); - } else if (current >= total - 3) { - pages.push("..."); - for (let i = total - 4; i <= total; i++) { - pages.push(i); - } - } else { - pages.push("..."); - for (let i = current - 1; i <= current + 1; i++) { - pages.push(i); - } - pages.push("..."); - pages.push(total); - } + return pages; } - - return pages; + return [1, 2, "...", total]; }; // 监听同步 @@ -558,7 +534,7 @@ const handleClickOutside = (event) => { display: flex; align-items: center; justify-content: flex-end; - gap: 21 * 5.12px; + gap: 6 * 5.12px; padding: 0 16 * 5.12px; }