From 287655c7ecaebc7df896b62baea23ab3eab1d4c2 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sat, 10 May 2025 18:49:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=95=E8=B5=84=E8=AE=B0=E8=B4=A6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9F=EF=BC=8C=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invest/accountDealRecord/index.vue | 22 ++++++++++- src/views/invest/accounts/index.vue | 26 +++++++++++-- src/views/invest/creditCardBill/index.vue | 22 ++++++++++- .../invest/creditInstallmentHistory/index.vue | 23 ++++++++++- src/views/invest/creditQueryRecord/index.vue | 22 ++++++++++- .../invest/creditTransferRecord/index.vue | 25 +++++++++++- src/views/invest/creditcard/index.vue | 38 +++++++++++++------ src/views/invest/debitInfors/index.vue | 22 ++++++++++- .../invest/debitTransferRecord/index.vue | 25 +++++++++++- src/views/invest/debitcard/index.vue | 22 ++++++++++- src/views/invest/exchange/index.vue | 24 +++++++++++- src/views/invest/financials/index.vue | 22 ++++++++++- src/views/invest/futureBaseInfor/index.vue | 22 ++++++++++- .../invest/futureStandardInfor/index.vue | 22 ++++++++++- src/views/invest/futures/index.vue | 28 +++++++++++--- src/views/invest/futuresBill/index.vue | 22 ++++++++++- .../invest/futuresDailyHistory/index.vue | 22 ++++++++++- src/views/invest/heartJourney/index.vue | 22 ++++++++++- src/views/invest/investAccountDeal/index.vue | 22 ++++++++++- .../invest/investTransferRecord/index.vue | 25 +++++++++++- src/views/invest/lend/index.vue | 22 ++++++++++- src/views/invest/lendTransferRecord/index.vue | 25 +++++++++++- src/views/invest/onlineLendHistory/index.vue | 22 ++++++++++- src/views/invest/peopleLendHistory/index.vue | 22 ++++++++++- src/views/invest/posTransferRecord/index.vue | 25 +++++++++++- src/views/invest/posadvice/index.vue | 22 ++++++++++- src/views/invest/posmachine/index.vue | 22 ++++++++++- src/views/invest/productInfor/index.vue | 24 +++++++++++- src/views/invest/productPriceRecord/index.vue | 24 +++++++++++- src/views/invest/sleepAccounts/index.vue | 27 +++++++++++-- src/views/invest/stockBaseInfor/index.vue | 22 ++++++++++- src/views/invest/stocks/index.vue | 22 ++++++++++- src/views/invest/stocksBill/index.vue | 22 ++++++++++- src/views/invest/stocksDailyHistory/index.vue | 22 ++++++++++- 34 files changed, 740 insertions(+), 61 deletions(-) diff --git a/src/views/invest/accountDealRecord/index.vue b/src/views/invest/accountDealRecord/index.vue index 210e227..8d2db85 100644 --- a/src/views/invest/accountDealRecord/index.vue +++ b/src/views/invest/accountDealRecord/index.vue @@ -48,6 +48,7 @@
+ - +
@@ -312,6 +320,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + const handleTypeChange = (type) => { queryAddAccountParams.value.type = type form.value.accountId = null diff --git a/src/views/invest/accounts/index.vue b/src/views/invest/accounts/index.vue index 637acf4..d0d8080 100644 --- a/src/views/invest/accounts/index.vue +++ b/src/views/invest/accounts/index.vue @@ -38,7 +38,7 @@
- + - +
@@ -182,7 +189,8 @@ - + @@ -366,6 +374,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/creditCardBill/index.vue b/src/views/invest/creditCardBill/index.vue index e723ca2..c95a101 100644 --- a/src/views/invest/creditCardBill/index.vue +++ b/src/views/invest/creditCardBill/index.vue @@ -35,6 +35,7 @@
+ @@ -61,7 +62,14 @@ - +
@@ -304,6 +312,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/creditInstallmentHistory/index.vue b/src/views/invest/creditInstallmentHistory/index.vue index 728799b..3649a1c 100644 --- a/src/views/invest/creditInstallmentHistory/index.vue +++ b/src/views/invest/creditInstallmentHistory/index.vue @@ -30,6 +30,7 @@
+ @@ -75,7 +76,14 @@ - +
@@ -185,6 +193,7 @@
+ - +
@@ -275,6 +284,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/creditcard/index.vue b/src/views/invest/creditcard/index.vue index 7dde0fd..7edacda 100644 --- a/src/views/invest/creditcard/index.vue +++ b/src/views/invest/creditcard/index.vue @@ -29,16 +29,13 @@
+ - - - - - - + + + + @@ -56,12 +53,12 @@ --> - + - + - +
@@ -499,6 +503,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/debitInfors/index.vue b/src/views/invest/debitInfors/index.vue index deca582..a8bf69f 100644 --- a/src/views/invest/debitInfors/index.vue +++ b/src/views/invest/debitInfors/index.vue @@ -32,6 +32,7 @@
+ - +
@@ -252,6 +260,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/debitTransferRecord/index.vue b/src/views/invest/debitTransferRecord/index.vue index 3a3ac0d..20ef45c 100644 --- a/src/views/invest/debitTransferRecord/index.vue +++ b/src/views/invest/debitTransferRecord/index.vue @@ -38,7 +38,9 @@
- + + @@ -54,7 +56,14 @@ - +
@@ -238,6 +247,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/debitcard/index.vue b/src/views/invest/debitcard/index.vue index b5f585a..9e54ce0 100644 --- a/src/views/invest/debitcard/index.vue +++ b/src/views/invest/debitcard/index.vue @@ -34,6 +34,7 @@
+ @@ -64,7 +65,14 @@ - +
@@ -445,6 +453,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/exchange/index.vue b/src/views/invest/exchange/index.vue index 8d3dddd..777e770 100644 --- a/src/views/invest/exchange/index.vue +++ b/src/views/invest/exchange/index.vue @@ -26,12 +26,13 @@
新增 删除 - 导出 +
+ @@ -52,7 +53,14 @@ - +
@@ -203,6 +211,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/financials/index.vue b/src/views/invest/financials/index.vue index 6ba5613..742450a 100644 --- a/src/views/invest/financials/index.vue +++ b/src/views/invest/financials/index.vue @@ -29,6 +29,7 @@
+ @@ -55,7 +56,14 @@ - +
@@ -246,6 +254,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/futureBaseInfor/index.vue b/src/views/invest/futureBaseInfor/index.vue index 449da31..302594b 100644 --- a/src/views/invest/futureBaseInfor/index.vue +++ b/src/views/invest/futureBaseInfor/index.vue @@ -31,6 +31,7 @@
+ @@ -51,7 +52,14 @@ - +
@@ -302,6 +310,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/futureStandardInfor/index.vue b/src/views/invest/futureStandardInfor/index.vue index 0433218..600fe59 100644 --- a/src/views/invest/futureStandardInfor/index.vue +++ b/src/views/invest/futureStandardInfor/index.vue @@ -41,6 +41,7 @@
+ - +
@@ -316,6 +324,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/futures/index.vue b/src/views/invest/futures/index.vue index 72dc47e..dd68ec6 100644 --- a/src/views/invest/futures/index.vue +++ b/src/views/invest/futures/index.vue @@ -29,6 +29,7 @@
+ @@ -41,11 +42,7 @@ - - - + - +
@@ -260,6 +264,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/futuresBill/index.vue b/src/views/invest/futuresBill/index.vue index 22e36a9..874d08d 100644 --- a/src/views/invest/futuresBill/index.vue +++ b/src/views/invest/futuresBill/index.vue @@ -30,6 +30,7 @@
+ @@ -45,7 +46,14 @@ - +
@@ -337,6 +345,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/futuresDailyHistory/index.vue b/src/views/invest/futuresDailyHistory/index.vue index f450e9d..7175407 100644 --- a/src/views/invest/futuresDailyHistory/index.vue +++ b/src/views/invest/futuresDailyHistory/index.vue @@ -27,6 +27,7 @@
+ @@ -55,7 +56,14 @@ - +
@@ -262,6 +270,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/heartJourney/index.vue b/src/views/invest/heartJourney/index.vue index 402c2c4..33239c6 100644 --- a/src/views/invest/heartJourney/index.vue +++ b/src/views/invest/heartJourney/index.vue @@ -29,6 +29,7 @@
+ - +
@@ -184,6 +192,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/investAccountDeal/index.vue b/src/views/invest/investAccountDeal/index.vue index 5b70227..437c0a4 100644 --- a/src/views/invest/investAccountDeal/index.vue +++ b/src/views/invest/investAccountDeal/index.vue @@ -33,6 +33,7 @@
+ - +
@@ -270,6 +278,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/investTransferRecord/index.vue b/src/views/invest/investTransferRecord/index.vue index c0caef2..5fd1f2a 100644 --- a/src/views/invest/investTransferRecord/index.vue +++ b/src/views/invest/investTransferRecord/index.vue @@ -38,7 +38,9 @@
- + + @@ -54,7 +56,14 @@ - +
@@ -236,6 +245,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/lend/index.vue b/src/views/invest/lend/index.vue index 62fd008..eae1096 100644 --- a/src/views/invest/lend/index.vue +++ b/src/views/invest/lend/index.vue @@ -34,6 +34,7 @@
+ @@ -58,7 +59,14 @@ - +
@@ -221,6 +229,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/lendTransferRecord/index.vue b/src/views/invest/lendTransferRecord/index.vue index adddd46..16d45c6 100644 --- a/src/views/invest/lendTransferRecord/index.vue +++ b/src/views/invest/lendTransferRecord/index.vue @@ -38,7 +38,9 @@
- + + - +
@@ -286,6 +295,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/onlineLendHistory/index.vue b/src/views/invest/onlineLendHistory/index.vue index 195b9b1..1b197f9 100644 --- a/src/views/invest/onlineLendHistory/index.vue +++ b/src/views/invest/onlineLendHistory/index.vue @@ -30,6 +30,7 @@
+ @@ -76,7 +77,14 @@ - +
@@ -430,6 +438,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/peopleLendHistory/index.vue b/src/views/invest/peopleLendHistory/index.vue index b8c9d5e..cdd82f0 100644 --- a/src/views/invest/peopleLendHistory/index.vue +++ b/src/views/invest/peopleLendHistory/index.vue @@ -31,6 +31,7 @@
+ @@ -60,7 +61,14 @@ - +
@@ -240,6 +248,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/posTransferRecord/index.vue b/src/views/invest/posTransferRecord/index.vue index 78f86aa..5bdc836 100644 --- a/src/views/invest/posTransferRecord/index.vue +++ b/src/views/invest/posTransferRecord/index.vue @@ -38,7 +38,9 @@
- + + @@ -57,7 +59,14 @@ - +
@@ -273,6 +282,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/posadvice/index.vue b/src/views/invest/posadvice/index.vue index 917af77..e6cfb03 100644 --- a/src/views/invest/posadvice/index.vue +++ b/src/views/invest/posadvice/index.vue @@ -29,6 +29,7 @@
+ @@ -49,7 +50,14 @@ --> - +
@@ -152,6 +160,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + function formatMultiLineData(data) { if (data != null) { return data.replace(/、/g, '
') diff --git a/src/views/invest/posmachine/index.vue b/src/views/invest/posmachine/index.vue index 5f80416..b405908 100644 --- a/src/views/invest/posmachine/index.vue +++ b/src/views/invest/posmachine/index.vue @@ -37,6 +37,7 @@
+ @@ -71,7 +72,14 @@ - +
@@ -288,6 +296,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/productInfor/index.vue b/src/views/invest/productInfor/index.vue index 7199f27..68f1850 100644 --- a/src/views/invest/productInfor/index.vue +++ b/src/views/invest/productInfor/index.vue @@ -34,8 +34,9 @@
- + + @@ -60,7 +61,14 @@ - +
@@ -210,6 +218,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/productPriceRecord/index.vue b/src/views/invest/productPriceRecord/index.vue index d7c9b95..7dfb9dd 100644 --- a/src/views/invest/productPriceRecord/index.vue +++ b/src/views/invest/productPriceRecord/index.vue @@ -45,8 +45,9 @@
- + + - +
@@ -320,6 +328,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/sleepAccounts/index.vue b/src/views/invest/sleepAccounts/index.vue index bde9232..738d602 100644 --- a/src/views/invest/sleepAccounts/index.vue +++ b/src/views/invest/sleepAccounts/index.vue @@ -33,7 +33,8 @@
- + + - +
@@ -179,7 +187,8 @@ - + @@ -365,6 +374,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/stockBaseInfor/index.vue b/src/views/invest/stockBaseInfor/index.vue index c72356a..d985cbf 100644 --- a/src/views/invest/stockBaseInfor/index.vue +++ b/src/views/invest/stockBaseInfor/index.vue @@ -36,6 +36,7 @@
+ @@ -62,7 +63,14 @@ - +
@@ -285,6 +293,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/stocks/index.vue b/src/views/invest/stocks/index.vue index b255fc2..a1ee0ad 100644 --- a/src/views/invest/stocks/index.vue +++ b/src/views/invest/stocks/index.vue @@ -29,6 +29,7 @@
+ @@ -55,7 +56,14 @@ - +
@@ -246,6 +254,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/stocksBill/index.vue b/src/views/invest/stocksBill/index.vue index 746f519..cd49937 100644 --- a/src/views/invest/stocksBill/index.vue +++ b/src/views/invest/stocksBill/index.vue @@ -30,6 +30,7 @@
+ @@ -45,7 +46,14 @@ - +
@@ -335,6 +343,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id) diff --git a/src/views/invest/stocksDailyHistory/index.vue b/src/views/invest/stocksDailyHistory/index.vue index d30cee8..22de532 100644 --- a/src/views/invest/stocksDailyHistory/index.vue +++ b/src/views/invest/stocksDailyHistory/index.vue @@ -31,6 +31,7 @@
+ @@ -53,7 +54,14 @@ - +
@@ -220,6 +228,18 @@ const handleCurrentChange = (val) => { getList() } +//每页显示条数改变 +const handleSizeChange = (val) => { + queryParams.value.pageSize = val + getList() +} +// 序号翻页递增 +const indexMethod = (index) => { + const nowPage = queryParams.value.pageNum //当前第几页,根据组件取值即可 + const nowLimit = queryParams.value.pageSize //当前每页显示几条,根据组件取值即可 + return index + 1 + (nowPage - 1) * nowLimit // 这里可以理解成一个公式 +} + // 多选框选中数据 function handleSelectionChange(selection) { ids.value = selection.map((item) => item.id)