[银保app] 保单查询查询按钮逻辑优化

This commit is contained in:
DESKTOP-AFPHKHF\PC
2023-01-01 12:05:44 +08:00
parent b7d2ee6c91
commit c37e57732e

View File

@@ -278,18 +278,28 @@ export default {
this.finished = true
this.loading= false
that.filpolicyListDTOList = []
console.log('111111111111111111111');
// that.filpolicyListDTOList = res.policyListDTOList.policyListDTOList
}else{
that.filpolicyListDTOList = that.filpolicyListDTOList.concat(res.policyListDTOList)
that.finished = false
this.loading= false
console.log('22222222222222222222222222222');
if(res.policyListDTOList.length == 1 && this.params.riskCode != ''){
// that.filpolicyListDTOList = []
that.filpolicyListDTOList = res.policyListDTOList
}
}
} else {
if(that.params.pageNo == 1){
that.filpolicyListDTOList = []
console.log('33333333333333333333333333');
}else{
that.$toast(res.resultMessage)
this.finished = true
this.loading= false
// that.filpolicyListDTOList = []
console.log('44444444444444444444444444444');
}
}
})
@@ -309,10 +319,11 @@ export default {
},
// 上方关键词搜索按钮
keywordSearch(value) {
console.log('点击搜索了')
console.log(value,'点击搜索了')
// this.filpolicyListDTOList = this.policyListDTOList.filter((p) => {
// return p.policyNo.indexOf(value) !== -1
// })
this.params.pageNo = 0
this.params.riskCode = value
this.YBpolicyListAgent()
// console.log(value,'我是value');