From 4701ee491d6f71c83856bafd6376ed023cf149b9 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 26 Feb 2024 18:00:45 +0800 Subject: [PATCH] =?UTF-8?q?task#11371,=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE?= =?UTF-8?q?tab=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/caseList/caseList.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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){// 第一页直接赋值