|
@@ -564,10 +564,10 @@
|
|
|
this.$set(this,'routeType',false);
|
|
|
}
|
|
|
if(this.$route.query.subId){
|
|
|
- this.$set(this,'buildingId',this.$route.query.buildId);
|
|
|
- this.$set(this,'floorId',this.$route.query.floorId);
|
|
|
- this.$set(this,'subId',this.$route.query.subId);
|
|
|
- this.$set(this,'checkSubId',this.$route.query.subId);
|
|
|
+ this.$set(this,'buildingId',parseInt(this.$route.query.buildId));
|
|
|
+ this.$set(this,'floorId',parseInt(this.$route.query.floorId));
|
|
|
+ this.$set(this,'subId',parseInt(this.$route.query.subId));
|
|
|
+ this.$set(this,'checkSubId',parseInt(this.$route.query.subId));
|
|
|
if(this.$route.query.riskPlanId){
|
|
|
this.setRiskPlanId(this.$route.query.riskPlanId);
|
|
|
}
|
|
@@ -588,11 +588,12 @@
|
|
|
},
|
|
|
methods:{
|
|
|
//标记当前查看的预案
|
|
|
- setRiskPlanId(riskPlanId){
|
|
|
+ setRiskPlanId(id){
|
|
|
let obj = {
|
|
|
- riskPlanId:riskPlanId,
|
|
|
+ riskPlanId:id,
|
|
|
ifcheck:1,
|
|
|
};
|
|
|
+ console.log('riskPlanId',obj);
|
|
|
riskPlanId(obj).then(response => {})
|
|
|
},
|
|
|
//初始化
|