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.vehicleName }}</span></div>
|
||||||
<div><span class="opa">车牌号:</span><span>{{ detailInfo.plateNumber }}</span></div>
|
<div><span class="opa">车牌号:</span><span>{{ detailInfo.plateNumber }}</span></div>
|
||||||
<!-- 审批中,通过,终止detailInfo.states ==1 || detailInfo.states ==2 ||detailInfo.states ==3-->
|
<!-- 审批中,通过,终止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)">
|
<div class="shopImgList" v-if="[1,2,3].includes(detailInfo.states)">
|
||||||
<template v-if="detailInfo.storePhotoUrls && detailInfo.storePhotoUrls.indexOf(',') !== -1">
|
<template v-if="detailInfo.storePhotoUrls && detailInfo.storePhotoUrls.indexOf(',') !== -1">
|
||||||
<div v-for="(item,index) in (detailInfo.storePhotoUrls?.split(','))" :key="index">
|
<div v-for="(item,index) in (detailInfo.storePhotoUrls?.split(','))" :key="index">
|
||||||
@ -128,11 +128,13 @@ export default {
|
|||||||
show:false,
|
show:false,
|
||||||
auditRemark:'',
|
auditRemark:'',
|
||||||
reason:'',
|
reason:'',
|
||||||
|
status:'',
|
||||||
// activeIndex:'',
|
// activeIndex:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.rowInfo=this.$route.params.info
|
this.rowInfo=this.$route.params.info
|
||||||
|
this.status=this.$route.params.status
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -147,6 +149,7 @@ export default {
|
|||||||
name: 'vehicleMaintenanceList',
|
name: 'vehicleMaintenanceList',
|
||||||
params: {
|
params: {
|
||||||
activeIndex:this.$route.params?.activeIndex,
|
activeIndex:this.$route.params?.activeIndex,
|
||||||
|
status:this.status,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -279,6 +282,7 @@ export default {
|
|||||||
line-height: 27px;
|
line-height: 27px;
|
||||||
}
|
}
|
||||||
.shopName{
|
.shopName{
|
||||||
|
//width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
}
|
||||||
|
@ -56,16 +56,19 @@ export default {
|
|||||||
isLoading:"",
|
isLoading:"",
|
||||||
noClick:true,
|
noClick:true,
|
||||||
isShowBackBtn:true,
|
isShowBackBtn:true,
|
||||||
inApprovalCount:0
|
inApprovalCount:0,
|
||||||
|
status:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
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
|
this.isShowBackBtn=false
|
||||||
}else{
|
}else{
|
||||||
this.isShowBackBtn=true
|
this.isShowBackBtn=true
|
||||||
}
|
}
|
||||||
|
// this.isShowBackBtn=this.$route.params.isShowBackBtn
|
||||||
this.activeIndex=this.$route.params?.activeIndex || 0
|
this.activeIndex=this.$route.params?.activeIndex || 0
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@ -133,17 +136,18 @@ export default {
|
|||||||
let res=await vehicleMaintenanceList ({
|
let res=await vehicleMaintenanceList ({
|
||||||
pageNum:this.pageNum,
|
pageNum:this.pageNum,
|
||||||
pageSize:this.pageSize,
|
pageSize:this.pageSize,
|
||||||
queryType:this.activeIndex+1
|
queryType:this.activeIndex+1,
|
||||||
})
|
})
|
||||||
this.pageList=res.data
|
this.pageList=res.data
|
||||||
},
|
},
|
||||||
goPageDetail(item){
|
goPageDetail(item){
|
||||||
console.log("跳转详情",item)
|
// console.log("跳转详情",item)
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'maintenanceApplication', // 目标路由的名称
|
name: 'maintenanceApplication', // 目标路由的名称
|
||||||
params: {
|
params: {
|
||||||
info:item,
|
info:item,
|
||||||
activeIndex:this.activeIndex,
|
activeIndex:this.activeIndex,
|
||||||
|
status:this.status,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user