fix(ui): 所有列表页默认分页改为10条(原20条)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ const voiceScope = ref<'all' | 'friend' | 'group'>('all')
|
||||
const calls = ref<PhoneCall[]>([])
|
||||
const total = ref(0)
|
||||
const page = ref(1)
|
||||
const pageSize = ref(20)
|
||||
const pageSize = ref(10)
|
||||
const loading = ref(false)
|
||||
const errorMsg = ref<string | null>(null)
|
||||
|
||||
@@ -424,7 +424,7 @@ onMounted(load)
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-size="pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
|
||||
@@ -36,7 +36,7 @@ interface TabState {
|
||||
loaded: boolean
|
||||
}
|
||||
function freshTabState(): TabState {
|
||||
return { items: [], total: 0, page: 1, pageSize: 20, loading: false, errorMsg: null, loaded: false }
|
||||
return { items: [], total: 0, page: 1, pageSize: 10, loading: false, errorMsg: null, loaded: false }
|
||||
}
|
||||
|
||||
const route = useRoute()
|
||||
@@ -504,7 +504,7 @@ onMounted(() => {
|
||||
<el-pagination
|
||||
:current-page="tabState.wechat.page"
|
||||
:page-size="tabState.wechat.pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="tabState.wechat.total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
@@ -576,7 +576,7 @@ onMounted(() => {
|
||||
<el-pagination
|
||||
:current-page="tabState.whatsapp.page"
|
||||
:page-size="tabState.whatsapp.pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="tabState.whatsapp.total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
|
||||
@@ -36,7 +36,7 @@ interface TabState {
|
||||
loaded: boolean
|
||||
}
|
||||
function freshTabState(): TabState {
|
||||
return { items: [], total: 0, page: 1, pageSize: 20, loading: false, errorMsg: null, loaded: false }
|
||||
return { items: [], total: 0, page: 1, pageSize: 10, loading: false, errorMsg: null, loaded: false }
|
||||
}
|
||||
|
||||
const route = useRoute()
|
||||
@@ -344,7 +344,7 @@ onMounted(() => {
|
||||
<el-pagination
|
||||
:current-page="tabState.wechat.page"
|
||||
:page-size="tabState.wechat.pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="tabState.wechat.total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
@@ -419,7 +419,7 @@ onMounted(() => {
|
||||
<el-pagination
|
||||
:current-page="tabState.whatsapp.page"
|
||||
:page-size="tabState.whatsapp.pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="tabState.whatsapp.total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
|
||||
@@ -11,7 +11,7 @@ import { exportListToCsv } from '@/utils/csvExport'
|
||||
const list = ref<Sms[]>([])
|
||||
const total = ref(0)
|
||||
const page = ref(1)
|
||||
const pageSize = ref(20)
|
||||
const pageSize = ref(10)
|
||||
const loading = ref(false)
|
||||
const errorMsg = ref<string | null>(null)
|
||||
|
||||
@@ -213,7 +213,7 @@ onMounted(load)
|
||||
<el-pagination
|
||||
:current-page="page"
|
||||
:page-size="pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
|
||||
@@ -46,7 +46,7 @@ function freshTabState(): TabState {
|
||||
items: [],
|
||||
total: 0,
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
pageSize: 10,
|
||||
loading: false,
|
||||
errorMsg: null,
|
||||
loaded: false,
|
||||
@@ -770,7 +770,7 @@ onMounted(() => {
|
||||
<el-pagination
|
||||
:current-page="tabState.wechat.page"
|
||||
:page-size="tabState.wechat.pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="tabState.wechat.total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
@@ -903,7 +903,7 @@ onMounted(() => {
|
||||
<el-pagination
|
||||
:current-page="tabState.whatsapp.page"
|
||||
:page-size="tabState.whatsapp.pageSize"
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:page-sizes="[10, 20, 50, 100]"
|
||||
:total="tabState.whatsapp.total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
background
|
||||
|
||||
Reference in New Issue
Block a user