diff --git a/src/views/caseList/caseList.vue b/src/views/caseList/caseList.vue index ad0c7bf7..4ff5f9b0 100644 --- a/src/views/caseList/caseList.vue +++ b/src/views/caseList/caseList.vue @@ -71,10 +71,9 @@ export default { } }, async mounted() { + this.activeIndex = (this.$route.params.type - 1) || this.activeIndex await this.getCount(); await this.getList() - // console.log("***",this.$route.params.type) - this.activeIndex = (this.$route.params.type - 1) || this.activeIndex }, computed:{ show() { @@ -117,7 +116,7 @@ export default { let res=await reimburseBatchList({ pageNum:this.pageNum, pageSize:this.pageSize, - type: this.activeIndex+1 + type:this.activeIndex == 0 ? 1 : 2 }) this.total=res.total if(this.pageNum == 1){// 第一页直接赋值