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 @@
@@ -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
}
})
},