From cf8af1097b6529e04c25f8805cf74c89887b4a7e Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 18 Oct 2024 13:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E5=BA=93=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../secondStore/secondStore.vue | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/views/claimAndRefund/secondStore/secondStore.vue b/src/views/claimAndRefund/secondStore/secondStore.vue index dbd169c..2f6b97c 100644 --- a/src/views/claimAndRefund/secondStore/secondStore.vue +++ b/src/views/claimAndRefund/secondStore/secondStore.vue @@ -122,7 +122,8 @@ - @@ -532,8 +534,8 @@ @@ -662,6 +664,11 @@ export default { modelId: undefined, typeId: undefined, }, + newQueryParams: { + pageNum: 1, + pageSize: 10, + modelId: '', + }, dialogList: [], queryType: 1, dialogTotal: 0, @@ -868,12 +875,16 @@ export default { this.dialogQuery.unitId = row.unitId this.dialogQuery.typeId = row.typeId*/ + // console.log('row---', row) + + this.newQueryParams.modelId = row.typeId + this.getDialogList() }, /** 查询列表 */ getDialogList() { this.dialogQuery.queryType = this.queryType - getRecords().then((response) => { + getRecords(this.newQueryParams).then((response) => { this.dialogList = response.rows this.dialogTotal = response.total }) @@ -886,7 +897,17 @@ export default { `二级库_${new Date().getTime()}.xlsx`, ) }, - + }, + watch: { + openRecord: { + handler(newValue) { + if (!newValue) { + this.newQueryParams.pageNum = 1 + this.newQueryParams.pageSize = 10 + } + }, + deep: true, + }, }, }