From f8d418985e84c03457f2fa94c9ec23694523f01f Mon Sep 17 00:00:00 2001 From: "DESKTOP-AFPHKHF\\PC" Date: Mon, 26 Dec 2022 14:33:13 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=93=B6=E4=BF=9Dapp]=20=E4=BF=9D=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=86=E9=A1=B5=E8=AF=B7=E6=B1=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/YB_APP/policyList.vue | 37 +++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/src/views/YB_APP/policyList.vue b/src/views/YB_APP/policyList.vue index 9c97f8021..7cec8f225 100644 --- a/src/views/YB_APP/policyList.vue +++ b/src/views/YB_APP/policyList.vue @@ -23,7 +23,7 @@
- +
@@ -59,7 +59,7 @@
- +
@@ -174,8 +174,12 @@ export default { stateName: '', // 保单状态 bankChannel: '', // 渠道名称 visitSuccess: '', // 回访成功 - visitFinish: '' // 回访完成 - } + visitFinish: '', // 回访完成 + pageSize:10, + pageNo:0, + }, + loading: false, + finished: false, } }, created() { @@ -192,7 +196,7 @@ export default { message: '加载中……' }) this.getAgentInfo() - + this.YBpolicyListAgent() // 筛选按钮的点击事件 window.appCallBack = this.appCallBack @@ -255,14 +259,29 @@ export default { YBpolicyListAgent() { let that = this console.log('我是log') + if(!that.finished){ + that.params.pageNo++ + } YBpolicyListAgent(that.params).then((res) => { console.log(res, '我是res') if (res.result == 0) { - that.policyListDTOList = res.policyListDTOList - that.filpolicyListDTOList = res.policyListDTOList - console.log(this.policyListDTOList, 'data里的policyListDTOList') + // that.policyListDTOList = res.policyListDTOList + // that.filpolicyListDTOList = res.policyListDTOList + // console.log(this.policyListDTOList, 'data里的policyListDTOList') + // this.YBpolicyListAgent() + if( res.policyListDTOList.length == 0 ){ + this.finished = true + this.loading= false + // that.filpolicyListDTOList = [] + }else{ + that.filpolicyListDTOList = that.filpolicyListDTOList.concat(res.policyListDTOList) + that.finished = false + this.loading= false + } } else { - that.filpolicyListDTOList = '' + that.$toast(res.resultMessage) + this.finished = true + this.loading= false } }) },