From cf1ee9d413456f37d1abc5d8ed23a9875aa15bb1 Mon Sep 17 00:00:00 2001 From: 张诺 <zhang_12370@163.com> Date: 星期一, 26 五月 2025 15:11:26 +0800 Subject: [PATCH] 销售管理>销售台站=》设置新增数据默认日期,添加子产品添加搜索逻辑更改为tree树形式,根据登录的账号匹配用户昵称默认选择当前用户昵称 --- src/components/Pagination/index.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 5b81b11..53fbec2 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -59,7 +59,7 @@ } }) -const emit = defineEmits(); +const emit = defineEmits() const currentPage = computed({ get() { return props.page @@ -76,6 +76,7 @@ emit('update:limit', val) } }) + function handleSizeChange(val) { if (currentPage.value * val > props.total) { currentPage.value = 1 @@ -85,13 +86,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