task#11329,路桥费样式优化
This commit is contained in:
@ -58,8 +58,10 @@ export default {
|
||||
id:'',//批次id
|
||||
isLoading:"",
|
||||
isShowBackBtn:true,
|
||||
backBtn:false,
|
||||
type:'',//用于判断是已审核还是待审核,已审核只有两个tab切
|
||||
noClick:true
|
||||
noClick:true,
|
||||
getUrlId:'',
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
@ -78,11 +80,19 @@ export default {
|
||||
}else{
|
||||
this.isShowBackBtn=true
|
||||
}
|
||||
// console.log("===",urlParams.get('status'))
|
||||
this.backBtn=this.$route.params.isShowBtn
|
||||
if(this.backBtn){
|
||||
this.isShowBackBtn=false
|
||||
}
|
||||
// console.log(" this.backBtn", this.backBtn)
|
||||
this.getUrlId=urlParams.get('id')
|
||||
this.id = urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode;
|
||||
this.activeIndex=this.$route.params?.activeIndex || 0
|
||||
this.type=this.$route.params?.type
|
||||
console.log(urlParams.get('status') && urlParams.get('status') == 1)
|
||||
// console.log("urlParams.get('status')",urlParams.get('status'))
|
||||
if (urlParams.get('status')){
|
||||
this.type=urlParams.get('status')
|
||||
}
|
||||
if (this.type==1 || (urlParams.get('status') && urlParams.get('status') == 1)) {
|
||||
this.tabArr.unshift({name: '待审核', status: 1,num:0},);
|
||||
}
|
||||
@ -136,6 +146,8 @@ export default {
|
||||
id:id,
|
||||
index:this.activeIndex,
|
||||
batchCode:this.id,
|
||||
getUrlId:this.getUrlId,
|
||||
type:this.type
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user