task#11094,后台跳转app页面按钮显示
This commit is contained in:
@ -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,12 +69,14 @@ 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
|
||||||
this.id =urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode;
|
}else{
|
||||||
|
this.isShowBackBtn=true
|
||||||
|
}
|
||||||
|
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();
|
||||||
await this.getList()
|
await this.getList()
|
||||||
|
Reference in New Issue
Block a user