diff --git a/src/views/YB_APP/saveallList.vue b/src/views/YB_APP/saveallList.vue index b5ac8dfde..f46d64856 100644 --- a/src/views/YB_APP/saveallList.vue +++ b/src/views/YB_APP/saveallList.vue @@ -141,36 +141,40 @@ export default { }, created() {}, mounted() { - this.getSaveAllList() - this.ybSaveManyList() + // this.getSaveAllList() + // this.ybSaveManyList() console.log(this.active,'我是active'); }, methods: { getSaveAllList() { let that = this - console.log('我是log123') + console.log('我是log123第一个接口的',) // 保全申请列表 getSaveAllList(that.params).then((res) => { console.log(res, '我是res') if (res.result == 0) { that.policyListDTOList = res.content + that.policyListDTOListTwo = '' console.log(this.policyListDTOList, 'data里的policyListDTOList') } else { that.policyListDTOList = '' + that.policyListDTOListTwo = '' } }) }, ybSaveManyList() { let that = this - console.log('我是log123') + console.log('我是log123第二个接口的') // 现金价值 ybSaveManyList(that.params).then((res) => { console.log(res, '我是res') if (res.result == 0) { that.policyListDTOListTwo = res.content + that.policyListDTOList = '' console.log(this.policyListDTOListTwo, 'data里的policyListDTOListTwo') } else { that.policyListDTOListTwo = '' + that.policyListDTOList = '' } }) }, @@ -179,7 +183,11 @@ export default { console.log('点击搜索了') // this.params.idNo = value this.params.otherNo = value - this.getSaveAllList() + if(this.active == 0 ){ + this.getSaveAllList() + }else if(this.active == 1){ + this.ybSaveManyList() + } }, // (查看详情)按钮跳转 goPolicyDetail(data) { @@ -207,22 +215,6 @@ export default { }) } }, - watch: { - active: { - deep: true, - handler(newvalue) { - if(this.newvalue == 0){ - console.log(this.newvalue); - this.getSaveAllList() - console.log(); - }else if(newvalue == 1){ - this.ybSaveManyList() - }else{ - this.params.state = '' - } - } - } - } }