Commit df6b0334 authored by 胡占生's avatar 胡占生 🇨🇳

fix: 路由跳转修复

parent e3ccc85d
...@@ -270,7 +270,7 @@ import { getFun, postFun } from "@/service/table.js"; ...@@ -270,7 +270,7 @@ import { getFun, postFun } from "@/service/table.js";
// postRiskShowMeasures, // postRiskShowMeasures,
// } from "@/service/risk"; // } from "@/service/risk";
export default { export default {
name: "risk-add", name: "addCurrent",
components: { components: {
LHeader, LHeader,
}, },
...@@ -345,9 +345,9 @@ export default { ...@@ -345,9 +345,9 @@ export default {
}; };
}, },
created() { created() {
if (this.$route.params.inherentId) { if (this.$route.params.inherentId || sessionStorage.getItem("inherentId")) {
this.inherentId = this.$route.params.inherentId this.inherentId = this.$route.params.inherentId || sessionStorage.getItem("inherentId")
this.buildingIds = this.$route.params.buildingId this.buildingIds = this.$route.params.buildingId || sessionStorage.getItem("buildingId")
this.postReturnEcho(); this.postReturnEcho();
} }
// this.getList(); // this.getList();
......
...@@ -265,6 +265,7 @@ export default { ...@@ -265,6 +265,7 @@ export default {
sessionStorage.setItem('buildingId',this.buildingId) sessionStorage.setItem('buildingId',this.buildingId)
sessionStorage.setItem('planId',this.planId) sessionStorage.setItem('planId',this.planId)
sessionStorage.setItem('buildingName',this.buildingName) sessionStorage.setItem('buildingName',this.buildingName)
sessionStorage.setItem('inherentId',data.businessId || data.id)
this.$router.push({ this.$router.push({
name: "addCurrent", name: "addCurrent",
params: { params: {
......
...@@ -55,12 +55,14 @@ import LHeader from "@/components/header.vue"; ...@@ -55,12 +55,14 @@ import LHeader from "@/components/header.vue";
}) })
}, },
sureClose(){ sureClose(){
this.$router.push({ // this.$emit('',)
name:'addInherent', history.go(-1)
params:{ // this.$router.push({
level:this.level // name:'addInherent',
} // params:{
}) // level:this.level
// }
// })
} }
} }
} }
......
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