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