From a0bee2b2dc61a4c4ca860fcbb34f7848b30fef99 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 26 十一月 2025 17:18:20 +0800
Subject: [PATCH] 1.湟水峡-生产派单逻辑修改联调
---
src/components/Pagination/index.vue | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue
index 5b81b11..2287c0c 100644
--- a/src/components/Pagination/index.vue
+++ b/src/components/Pagination/index.vue
@@ -2,10 +2,10 @@
<div :class="{ 'hidden': hidden }" class="pagination-container">
<el-pagination
:background="background"
- v-model:current-page="currentPage"
- v-model:page-size="pageSize"
+ v-model:currentPage="currentPage"
+ v-model:pageSize="pageSize"
:layout="layout"
- :page-sizes="pageSizes"
+ :page-size-options="pageSizes"
:pager-count="pagerCount"
:total="total"
@size-change="handleSizeChange"
@@ -15,6 +15,7 @@
</template>
<script setup>
+import { computed } from 'vue'
import { scrollTo } from '@/utils/scroll-to'
const props = defineProps({
@@ -59,7 +60,7 @@
}
})
-const emit = defineEmits();
+const emit = defineEmits()
const currentPage = computed({
get() {
return props.page
@@ -76,6 +77,7 @@
emit('update:limit', val)
}
})
+
function handleSizeChange(val) {
if (currentPage.value * val > props.total) {
currentPage.value = 1
@@ -85,13 +87,13 @@
scrollTo(0, 800)
}
}
+
function handleCurrentChange(val) {
emit('pagination', { page: val, limit: pageSize.value })
if (props.autoScroll) {
scrollTo(0, 800)
}
}
-
</script>
<style scoped>
--
Gitblit v1.9.3