mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 02:56:43 +08:00
[银保app] 保单列表分页请求优化
This commit is contained in:
committed by
liu.xiaofeng@ebiz-digits.com
parent
0b2a13bb86
commit
2b6ef875e0
@@ -175,11 +175,8 @@ export default {
|
||||
bankChannel: '', // 渠道名称
|
||||
visitSuccess: '', // 回访成功
|
||||
visitFinish: '', // 回访完成
|
||||
userModel: {
|
||||
id: 'Y0000001'
|
||||
},
|
||||
pageSize:10,
|
||||
pageNum:0,
|
||||
pageNo:0,
|
||||
},
|
||||
loading: false,
|
||||
finished: false,
|
||||
@@ -262,20 +259,28 @@ export default {
|
||||
let that = this
|
||||
console.log('我是log')
|
||||
if(!that.finished){
|
||||
that.params.pageNum++
|
||||
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
|
||||
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
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user