diff --git a/src/views/caseList/caseAuditList.vue b/src/views/caseList/caseAuditList.vue index 1504899a..f1bdcedb 100644 --- a/src/views/caseList/caseAuditList.vue +++ b/src/views/caseList/caseAuditList.vue @@ -101,7 +101,12 @@ export default { }, methods:{ goPrePage(){ - this.$router.push({ name: 'caseList', }); + this.$router.push({ + name: 'caseList', + params: { + type: this.type + } + }); }, onRefresh() { this.getList() @@ -147,8 +152,7 @@ export default { index:this.activeIndex, batchCode:this.id, getUrlId:this.getUrlId, - type:this.type - } + type:this.type,} }); }, diff --git a/src/views/caseList/caseList.vue b/src/views/caseList/caseList.vue index 3051f191..ad0c7bf7 100644 --- a/src/views/caseList/caseList.vue +++ b/src/views/caseList/caseList.vue @@ -73,6 +73,8 @@ export default { async mounted() { await this.getCount(); await this.getList() + // console.log("***",this.$route.params.type) + this.activeIndex = (this.$route.params.type - 1) || this.activeIndex }, computed:{ show() { @@ -81,7 +83,7 @@ export default { }, methods:{ async onLoad(){ - console.log('00000000000000000000') + // console.log('00000000000000000000') this.pageNum++; await this.getList() // 加载状态结束 @@ -146,7 +148,8 @@ export default { name: 'caseAuditList', // 目标路由的名称 params: { id: id, // 参数对象的属性 - type: this.activeIndex+1 + type: this.activeIndex+1, + page1Index:this.activeIndex } }); },