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 { ...@@ -635,9 +635,8 @@ export default {
message: "提交成功", message: "提交成功",
duration: 2000, duration: 2000,
}); });
console.log(this.$route.query) console.log(this.type)
// this.$route.query={} sessionStorage.setItem('type',this.type)
// console.log(this.$route.query)
history.go(-1); history.go(-1);
}) })
.catch(() => { .catch(() => {
......
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
// }, // },
loadingTabs(){ loadingTabs(){
postWork("patrol/running/hdType?cycle="+this.id).then(res => { 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)=>{ res.data.forEach((i)=>{
this.tabs.push({ this.tabs.push({
title:i.hdType, title:i.hdType,
...@@ -192,6 +192,18 @@ export default { ...@@ -192,6 +192,18 @@ export default {
refreshing:false, 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(); this.$toast.clear();
}) })
.catch(err => { .catch(err => {
......
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
}, },
onSearch(val) { onSearch(val) {
this.page=1 this.page=1
this.patrolList=[]
this.loading() this.loading()
}, },
touchstart(item) { 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