Commit d41a270e authored by 13841799530's avatar 13841799530

bug修复

parent 8a719d9f
Pipeline #8618 passed with stage
in 5 minutes and 13 seconds
...@@ -386,8 +386,17 @@ export default { ...@@ -386,8 +386,17 @@ export default {
this.text = "隐患上报退回"; this.text = "隐患上报退回";
this.postReturnEcho(); this.postReturnEcho();
} }
if(this.$route.params.isWorkbenchTo){
this.id=''
this.proId=''
this.hdRange=''
this.hdType=''
this.hdName=''
this.hdId=''
this.hdLev=''
}
if(sessionStorage.getItem('obj')){
var obj=JSON.parse(sessionStorage.getItem('obj')) var obj=JSON.parse(sessionStorage.getItem('obj'))
console.log(obj)
this.id=obj.id this.id=obj.id
this.proId=obj.proId, this.proId=obj.proId,
this.hdRange=obj.hdRange, this.hdRange=obj.hdRange,
...@@ -395,6 +404,7 @@ export default { ...@@ -395,6 +404,7 @@ export default {
this.hdName=obj.hdName, this.hdName=obj.hdName,
this.hdId=obj.hdId, this.hdId=obj.hdId,
this.hdLev=obj.hdLev this.hdLev=obj.hdLev
}
this.getList(); this.getList();
//隐患巡查跳转回显 //隐患巡查跳转回显
if(this.proId){ if(this.proId){
...@@ -415,8 +425,6 @@ export default { ...@@ -415,8 +425,6 @@ export default {
}, },
mounted() { mounted() {
this.$bus.$on("sourceAyy", (res) => { this.$bus.$on("sourceAyy", (res) => {
setTimeout(() => { setTimeout(() => {
this.source1 = res.join(","); this.source1 = res.join(",");
......
...@@ -286,8 +286,13 @@ export default { ...@@ -286,8 +286,13 @@ export default {
}, },
dangerJump(path) { dangerJump(path) {
if (path) { if (path) {
if(path=='/add-danger'){
sessionStorage.removeItem('obj')
this.$router.push({name:'add-danger',params:{isWorkbenchTo:1}});
}else{
this.$router.push(path); this.$router.push(path);
} }
}
}, },
riskJump(path) { riskJump(path) {
if (path) { if (path) {
......
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