task#11094,后台跳转app页面按钮显示

This commit is contained in:
2024-02-21 11:31:02 +08:00
parent 1b2507fa38
commit e4001a7a7f

View File

@ -3,7 +3,7 @@
<div class="navBar"> <div class="navBar">
<van-nav-bar <van-nav-bar
title="案件审核列表" title="案件审核列表"
left-arrow :left-arrow="isShowBackBtn ? true : false"
left-arrow-color="#FFFFFF" left-arrow-color="#FFFFFF"
:border="false" :border="false"
:fixed="true" :fixed="true"
@ -57,6 +57,7 @@ export default {
pageSize:10, pageSize:10,
id:'',//批次id id:'',//批次id
isLoading:"", isLoading:"",
isShowBackBtn:true,
} }
}, },
computed:{ computed:{
@ -68,11 +69,13 @@ export default {
}, },
async mounted() { async mounted() {
console.log("gsjjadjkasjdhsjakdhjkashkdjh")
// 获取当前 URL // 获取当前 URL
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
console.log("urlParams.get('id')",urlParams.get('id')) if(urlParams.get('id')){//后台进入此页面没有返回按钮
console.log("=========",this.$route) this.isShowBackBtn=false
}else{
this.isShowBackBtn=true
}
this.id = urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode; this.id = urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode;
this.activeIndex=this.$route.params?.activeIndex || 0 this.activeIndex=this.$route.params?.activeIndex || 0
await this.batchOrderCount(); await this.batchOrderCount();