2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00

feat: 优化默认分页条数

This commit is contained in:
耗子
2024-10-15 17:51:25 +08:00
parent b718c11f3a
commit 117ccabbb5
19 changed files with 39 additions and 38 deletions

View File

@@ -158,11 +158,11 @@ const selectedRowKeys = ref<any>([])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const handleShowChange = (row: any) => {
@@ -191,6 +191,7 @@ const handleManage = (slug: string) => {
const handleUpdateCache = () => {
app.updateCache().then(() => {
window.$message.success(t('appIndex.alerts.cache'))
onPageChange(1)
})
}

View File

@@ -168,11 +168,11 @@ const banedIPColumns: any = [
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const websites = ref<any[]>([])

View File

@@ -34,11 +34,11 @@ const changePasswordModel = ref({
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const userColumns: any = [

View File

@@ -108,11 +108,11 @@ const modules = ref<Module[]>([])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const getModules = async (page: number, limit: number) => {

View File

@@ -18,11 +18,11 @@ const addMountModel = ref({
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const columns: any = [

View File

@@ -190,11 +190,11 @@ const processes = ref<Process[]>([])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const getProcesses = async (page: number, limit: number) => {

View File

@@ -89,11 +89,11 @@ const data = ref<Backup[]>([])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 10,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [10, 20, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const getList = async (page: number, limit: number) => {

View File

@@ -127,11 +127,11 @@ const accountData = ref<Account[]>([] as Account[])
const accountPagination = reactive({
page: 1,
pageCount: 1,
pageSize: 10,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [10, 20, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onAccountPageChange = (page: number) => {

View File

@@ -361,11 +361,11 @@ const certData = ref<Cert[]>([] as Cert[])
const certPagination = reactive({
page: 1,
pageCount: 1,
pageSize: 10,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [10, 20, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onCertPageChange = (page: number) => {

View File

@@ -133,11 +133,11 @@ const dnsData = ref<DNS[]>([] as DNS[])
const dnsPagination = reactive({
page: 1,
pageCount: 1,
pageSize: 10,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [10, 20, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onDnsPageChange = (page: number) => {

View File

@@ -193,11 +193,11 @@ const columns: any = [
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onPageChange = (page: number) => {

View File

@@ -103,11 +103,11 @@ const columns: any = [
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onPageChange = (page: number) => {

View File

@@ -142,11 +142,11 @@ const columns: any = [
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onPageChange = (page: number) => {

View File

@@ -95,11 +95,11 @@ const columns: any = [
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const onPageChange = (page: number) => {

View File

@@ -163,11 +163,11 @@ const columns: any = [
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const data = ref<CronTask[]>([] as CronTask[])

View File

@@ -255,11 +255,11 @@ const data = ref<RowData[]>([])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 20,
pageSize: 100,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [20, 50, 100, 200, 500, 1000]
pageSizes: [100, 200, 500, 1000, 1500, 2000, 5000]
})
const handlePageSizeChange = (pageSize: number) => {

View File

@@ -77,11 +77,11 @@ const data = ref<FirewallRule[]>([] as FirewallRule[])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const selectedRowKeys = ref<any>([])

View File

@@ -126,11 +126,11 @@ const selectedRowKeys = ref<any>([])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const handleDelete = (id: number) => {

View File

@@ -175,11 +175,11 @@ const data = ref<Website[]>([] as Website[])
const pagination = reactive({
page: 1,
pageCount: 1,
pageSize: 15,
pageSize: 20,
itemCount: 0,
showQuickJumper: true,
showSizePicker: true,
pageSizes: [15, 30, 50, 100]
pageSizes: [20, 50, 100, 200]
})
const createModal = ref(false)