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 calls = ref<PhoneCall[]>([])
|
||||||
const total = ref(0)
|
const total = ref(0)
|
||||||
const page = ref(1)
|
const page = ref(1)
|
||||||
const pageSize = ref(20)
|
const pageSize = ref(10)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const errorMsg = ref<string | null>(null)
|
const errorMsg = ref<string | null>(null)
|
||||||
|
|
||||||
@@ -424,7 +424,7 @@ onMounted(load)
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="page"
|
:current-page="page"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="total"
|
:total="total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ interface TabState {
|
|||||||
loaded: boolean
|
loaded: boolean
|
||||||
}
|
}
|
||||||
function freshTabState(): TabState {
|
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()
|
const route = useRoute()
|
||||||
@@ -504,7 +504,7 @@ onMounted(() => {
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="tabState.wechat.page"
|
:current-page="tabState.wechat.page"
|
||||||
:page-size="tabState.wechat.pageSize"
|
:page-size="tabState.wechat.pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="tabState.wechat.total"
|
:total="tabState.wechat.total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
@@ -576,7 +576,7 @@ onMounted(() => {
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="tabState.whatsapp.page"
|
:current-page="tabState.whatsapp.page"
|
||||||
:page-size="tabState.whatsapp.pageSize"
|
:page-size="tabState.whatsapp.pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="tabState.whatsapp.total"
|
:total="tabState.whatsapp.total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ interface TabState {
|
|||||||
loaded: boolean
|
loaded: boolean
|
||||||
}
|
}
|
||||||
function freshTabState(): TabState {
|
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()
|
const route = useRoute()
|
||||||
@@ -344,7 +344,7 @@ onMounted(() => {
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="tabState.wechat.page"
|
:current-page="tabState.wechat.page"
|
||||||
:page-size="tabState.wechat.pageSize"
|
:page-size="tabState.wechat.pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="tabState.wechat.total"
|
:total="tabState.wechat.total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
@@ -419,7 +419,7 @@ onMounted(() => {
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="tabState.whatsapp.page"
|
:current-page="tabState.whatsapp.page"
|
||||||
:page-size="tabState.whatsapp.pageSize"
|
:page-size="tabState.whatsapp.pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="tabState.whatsapp.total"
|
:total="tabState.whatsapp.total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { exportListToCsv } from '@/utils/csvExport'
|
|||||||
const list = ref<Sms[]>([])
|
const list = ref<Sms[]>([])
|
||||||
const total = ref(0)
|
const total = ref(0)
|
||||||
const page = ref(1)
|
const page = ref(1)
|
||||||
const pageSize = ref(20)
|
const pageSize = ref(10)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const errorMsg = ref<string | null>(null)
|
const errorMsg = ref<string | null>(null)
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ onMounted(load)
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="page"
|
:current-page="page"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="total"
|
:total="total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ function freshTabState(): TabState {
|
|||||||
items: [],
|
items: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 20,
|
pageSize: 10,
|
||||||
loading: false,
|
loading: false,
|
||||||
errorMsg: null,
|
errorMsg: null,
|
||||||
loaded: false,
|
loaded: false,
|
||||||
@@ -770,7 +770,7 @@ onMounted(() => {
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="tabState.wechat.page"
|
:current-page="tabState.wechat.page"
|
||||||
:page-size="tabState.wechat.pageSize"
|
:page-size="tabState.wechat.pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="tabState.wechat.total"
|
:total="tabState.wechat.total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
@@ -903,7 +903,7 @@ onMounted(() => {
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="tabState.whatsapp.page"
|
:current-page="tabState.whatsapp.page"
|
||||||
:page-size="tabState.whatsapp.pageSize"
|
:page-size="tabState.whatsapp.pageSize"
|
||||||
:page-sizes="[20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:total="tabState.whatsapp.total"
|
:total="tabState.whatsapp.total"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
background
|
background
|
||||||
|
|||||||
Reference in New Issue
Block a user