Commit c599cf2e authored by 13841799530's avatar 13841799530

解润东

20220518
parent d65dc206
Pipeline #8362 passed with stage
in 5 minutes and 3 seconds
......@@ -635,9 +635,8 @@ export default {
message: "提交成功",
duration: 2000,
});
console.log(this.$route.query)
// this.$route.query={}
// console.log(this.$route.query)
console.log(this.type)
sessionStorage.setItem('type',this.type)
history.go(-1);
})
.catch(() => {
......
......@@ -181,7 +181,7 @@ export default {
// },
loadingTabs(){
postWork("patrol/running/hdType?cycle="+this.id).then(res => {
this.hdType=res.data[0].hdType
// this.hdType=res.data[0].hdType
res.data.forEach((i)=>{
this.tabs.push({
title:i.hdType,
......@@ -192,6 +192,18 @@ export default {
refreshing:false,
})
})
if(sessionStorage.getItem('type')){
this.hdType=sessionStorage.getItem('type')
var j=0
this.tabs.forEach((i)=>{
if(i.title==this.hdType){
this.active=j
}
j++;
})
}else{
this.hdType=res.data[0].hdType
}
this.$toast.clear();
})
.catch(err => {
......
......@@ -223,6 +223,7 @@ export default {
},
onSearch(val) {
this.page=1
this.patrolList=[]
this.loading()
},
touchstart(item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment