refactor(pagination): 将多个页面的默认分页大小从 20 条调整为 50 条
- 修改了多个组件中的 basePagination 对象,将 pageSize 从 20 调整为 50 - 更新了相关函数中的默认参数值,以匹配新的分页大小 - 此修改旨在提高用户查询效率,减少分页操作次数
This commit is contained in:
@@ -78,7 +78,7 @@ import { TableColumnData } from '@arco-design/web-vue';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -141,7 +141,7 @@ const state = reactive({
|
||||
account: ''
|
||||
});
|
||||
const fetchData = async (
|
||||
params: AppleWalletParams = { current: 1, pageSize: 20 }
|
||||
params: AppleWalletParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -75,7 +75,7 @@ const formModel = reactive({
|
||||
});
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
|
||||
@@ -183,7 +183,7 @@ import {
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -294,7 +294,7 @@ const state = reactive({
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: AppleCardParams = { current: 1, pageSize: 20 }
|
||||
params: AppleCardParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -47,7 +47,7 @@ import { TableColumnData } from '@arco-design/web-vue';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -110,7 +110,7 @@ const drawVisible = computed(() => props.visible);
|
||||
const fetchData = async (
|
||||
params: AppleWalletParams = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
setLoading(true);
|
||||
|
||||
@@ -37,7 +37,7 @@ import { useRoute } from 'vue-router';
|
||||
const route = useRoute();
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
|
||||
@@ -223,7 +223,7 @@ const { accountID } = route.params;
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
accountID: accountID as string,
|
||||
@@ -315,7 +315,7 @@ const state = reactive({
|
||||
const fetchData = async (
|
||||
params: AppleCardRechargeOrderParams = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
setLoading(true);
|
||||
|
||||
@@ -44,7 +44,7 @@ import { JDAccountWalletParams } from '@/api/card-jd-account';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -126,7 +126,7 @@ const drawVisible = computed(() => props.visible);
|
||||
const fetchData = async (
|
||||
params: JDAccountWalletParams = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
setLoading(true);
|
||||
|
||||
@@ -193,7 +193,7 @@ import { downloadDataList, JDCardParams } from '@/api/card-jd-account.ts';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -288,7 +288,7 @@ const state = reactive({
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: JDCardParams = { current: 1, pageSize: 20 }
|
||||
params: JDCardParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -37,7 +37,7 @@ import { useRoute } from 'vue-router';
|
||||
const route = useRoute();
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
|
||||
@@ -182,7 +182,7 @@ import { JdCardOrderParams } from '@/api/card-jd-oder.ts';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const state = reactive({
|
||||
orderHistoryModalVisible: false,
|
||||
@@ -289,7 +289,7 @@ const formModel = ref<{
|
||||
const fetchData = async (
|
||||
params: JdCardOrderParams = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
setLoading(true);
|
||||
|
||||
@@ -43,7 +43,7 @@ import { KamiInternalModelEntityV1CardRedeemAccountHistory } from '@/api/generat
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -125,7 +125,7 @@ const drawVisible = computed(() => props.visible);
|
||||
const fetchData = async (
|
||||
params: WalmartAccountWalletParams = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
setLoading(true);
|
||||
|
||||
@@ -197,7 +197,7 @@ import { KamiApiCardInfoWalmartV1AccountListRecord } from '@/api/generated/index
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -296,7 +296,7 @@ const state = reactive({
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: WalmartCardParams = { current: 1, pageSize: 20 }
|
||||
params: WalmartCardParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -37,7 +37,7 @@ import { useRoute } from 'vue-router';
|
||||
const route = useRoute();
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
|
||||
@@ -182,7 +182,7 @@ import { apiClient } from '@/api/index.ts';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const state = reactive({
|
||||
orderHistoryModalVisible: false,
|
||||
@@ -289,7 +289,7 @@ const formModel = ref<{
|
||||
const fetchData = async (
|
||||
params: walmartCardOrderParams = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
setLoading(true);
|
||||
|
||||
@@ -116,7 +116,7 @@ import { TableColumnData } from '@arco-design/web-vue';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -187,7 +187,7 @@ const state = reactive({
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: MerchantConfigParams = { current: 1, pageSize: 20 }
|
||||
params: MerchantConfigParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -21,7 +21,7 @@ import { Pagination } from '@/types/global';
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
|
||||
@@ -102,7 +102,7 @@ import {
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -199,7 +199,7 @@ const state = reactive<{
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: AppleCardStealListParams = { current: 1, pageSize: 20 }
|
||||
params: AppleCardStealListParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -128,7 +128,7 @@ import { getAllSimpleUserList, UserSimpleInfo } from '@/api/user';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -228,7 +228,7 @@ const state = reactive<{
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: AppleCardStealListParams = { current: 1, pageSize: 20 }
|
||||
params: AppleCardStealListParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -150,7 +150,7 @@ const renderData = ref<TMallAccountRecord[]>([]);
|
||||
const formModel = ref(generateFormModel());
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -191,7 +191,7 @@ const columns: TableColumnData[] = [
|
||||
}
|
||||
];
|
||||
const fetchData = async (
|
||||
params: TMallAccountParams = { current: 1, pageSize: 20 }
|
||||
params: TMallAccountParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -195,7 +195,7 @@ import { TableColumnData, Notification, Message } from '@arco-design/web-vue';
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -310,7 +310,7 @@ const state = reactive({
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: TMallOrderParams = { current: 1, pageSize: 20 }
|
||||
params: TMallOrderParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -149,7 +149,7 @@ import {
|
||||
} from '@/api/t-mall-game-shop-order';
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -265,7 +265,7 @@ const state = reactive<{
|
||||
});
|
||||
|
||||
const fetchData = async (
|
||||
params: TMallOrderParams = { current: 1, pageSize: 20 }
|
||||
params: TMallOrderParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
@@ -20,7 +20,7 @@ export const TmallSummaryTable = defineComponent({
|
||||
setup(props) {
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
|
||||
@@ -31,7 +31,7 @@ export default defineComponent({
|
||||
const formModel = ref(generateFormModel());
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
|
||||
@@ -177,7 +177,7 @@ const state = ref<{
|
||||
const currentItem = ref<UserRecord | null>(null);
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
@@ -233,7 +233,7 @@ const columns: TableColumnData[] = [
|
||||
}
|
||||
];
|
||||
const fetchData = async (
|
||||
params: UserListParams = { current: 1, pageSize: 20 }
|
||||
params: UserListParams = { current: 1, pageSize: 50 }
|
||||
) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user