task#14072,返回按钮显示

This commit is contained in:
2024-06-19 17:08:06 +08:00
parent c82feae79c
commit 140816da2e
2 changed files with 13 additions and 5 deletions

View File

@ -56,16 +56,19 @@ export default {
isLoading:"",
noClick:true,
isShowBackBtn:true,
inApprovalCount:0
inApprovalCount:0,
status:'',
}
},
mounted() {
const urlParams = new URLSearchParams(window.location.search);
if(urlParams.get('status')){//后台进入此页面没有返回按钮
this.status=urlParams.get('status')
if(this.status=='crm' || this.$route.params.status == 'crm' ){//后台进入此页面没有返回按钮
this.isShowBackBtn=false
}else{
this.isShowBackBtn=true
}
// this.isShowBackBtn=this.$route.params.isShowBackBtn
this.activeIndex=this.$route.params?.activeIndex || 0
this.getList()
},
@ -133,17 +136,18 @@ export default {
let res=await vehicleMaintenanceList ({
pageNum:this.pageNum,
pageSize:this.pageSize,
queryType:this.activeIndex+1
queryType:this.activeIndex+1,
})
this.pageList=res.data
},
goPageDetail(item){
console.log("跳转详情",item)
// console.log("跳转详情",item)
this.$router.push({
name: 'maintenanceApplication', // 目标路由的名称
params: {
info:item,
activeIndex:this.activeIndex,
status:this.status,
}
});