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

@ -24,7 +24,7 @@
<div ><span class="opa">车辆名称:</span><span>{{ detailInfo.vehicleName }}</span></div>
<div><span class="opa">车牌号:</span><span>{{ detailInfo.plateNumber }}</span></div>
<!-- 审批中通过终止detailInfo.states ==1 || detailInfo.states ==2 ||detailInfo.states ==3-->
<div class="shopName" v-if="[1,2,3].includes(detailInfo.states)"><span class="opa" style="width: 60px !important;">门店信息:</span><span>{{detailInfo.repairPoint || ''}}</span></div>
<div class="shopName" v-if="[1,2,3].includes(detailInfo.states)"><span class="opa" style="width: 80px !important;">门店信息:</span><span>{{detailInfo.repairPoint || ''}}</span></div>
<div class="shopImgList" v-if="[1,2,3].includes(detailInfo.states)">
<template v-if="detailInfo.storePhotoUrls && detailInfo.storePhotoUrls.indexOf(',') !== -1">
<div v-for="(item,index) in (detailInfo.storePhotoUrls?.split(','))" :key="index">
@ -128,11 +128,13 @@ export default {
show:false,
auditRemark:'',
reason:'',
status:'',
// activeIndex:'',
}
},
mounted() {
this.rowInfo=this.$route.params.info
this.status=this.$route.params.status
this.getDetail()
},
computed: {
@ -147,6 +149,7 @@ export default {
name: 'vehicleMaintenanceList',
params: {
activeIndex:this.$route.params?.activeIndex,
status:this.status,
}
});
},
@ -279,6 +282,7 @@ export default {
line-height: 27px;
}
.shopName{
//width: 100%;
display: flex;
align-items: baseline;
}

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,
}
});