task#10595,点标记上方显示地址,记录tab切点入进去的index

This commit is contained in:
2024-01-31 15:00:01 +08:00
parent 3694c8e94d
commit 7ad521ae1e
2 changed files with 53 additions and 32 deletions

View File

@ -57,6 +57,7 @@ export default {
this.id = this.$route.params.id || urlParams.get('id');
},
async mounted() {
this.activeIndex=this.$route.params?.activeIndex || 0
await this.batchOrderCount();
await this.getList()
},
@ -89,7 +90,15 @@ export default {
tab.num = res.data.auditFailCount;
}
});
console.log("数量",res)
},
goPageDetail(id){
this.$router.push({
name: 'caseDetail', // 目标路由的名称
params: {
id:id,
index:this.activeIndex,
}
});
},
getStatus(i){
switch (i){
@ -126,14 +135,6 @@ export default {
return 'yelColor'
}
},
goPageDetail(id){
this.$router.push({
name: 'caseDetail', // 目标路由的名称
params: {
id:id,
}
});
},
}
}
</script>