From 1c0f01cc462d37e146c34127d2883ca51e26d508 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期二, 24 六月 2025 17:12:32 +0800
Subject: [PATCH] fix: 修复PIMTable不支持懒加载问题。修复【来票登记】金额格式化显示NaN问题。 style: 重构来票登记页面。 feat: 完善文件上传组件功能。【来票台账】底部添加合计。【来票登记】添加上传附件
---
src/components/Pagination/index.vue | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue
index 906f4b0..53fbec2 100644
--- a/src/components/Pagination/index.vue
+++ b/src/components/Pagination/index.vue
@@ -1,7 +1,6 @@
<template>
<div :class="{ 'hidden': hidden }" class="pagination-container">
<el-pagination
- v-if="pageShow"
:background="background"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
@@ -17,8 +16,6 @@
<script setup>
import { scrollTo } from '@/utils/scroll-to'
-
-const pageShow = ref(true);
const props = defineProps({
total: {
@@ -62,7 +59,7 @@
}
})
-const emit = defineEmits();
+const emit = defineEmits()
const currentPage = computed({
get() {
return props.page
@@ -79,31 +76,28 @@
emit('update:limit', val)
}
})
+
function handleSizeChange(val) {
if (currentPage.value * val > props.total) {
- pageShow.value = false;
- nextTick(() => {
- pageShow.value = true
- })
+ currentPage.value = 1
}
emit('pagination', { page: currentPage.value, limit: val })
if (props.autoScroll) {
scrollTo(0, 800)
}
}
+
function handleCurrentChange(val) {
emit('pagination', { page: val, limit: pageSize.value })
if (props.autoScroll) {
scrollTo(0, 800)
}
}
-
</script>
<style scoped>
.pagination-container {
background: #fff;
- padding: 32px 16px;
}
.pagination-container.hidden {
display: none;
--
Gitblit v1.9.3