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

fix: 路由跳转修复

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