From 1a5cb1fe437304daec14e53d3ed9a989c89e6501 Mon Sep 17 00:00:00 2001 From: "DESKTOP-AFPHKHF\\PC" Date: Wed, 30 Nov 2022 16:05:32 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=93=B6=E4=BF=9Dapp]=E4=BF=9D=E5=85=A8?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E5=88=A4=E6=96=AD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/YB_APP/saveallList.vue | 36 +++++++++++++------------------- 1 file changed, 14 insertions(+), 22 deletions(-) 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 = '' - } - } - } - } }