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, + }, }, }