task#14072,返回按钮显示
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user