feat:保存缩放级别 以及部分国际化

This commit is contained in:
zhangyu
2020-09-03 09:51:50 +08:00
parent f481534c1d
commit 3f1b0923c2
7 changed files with 76 additions and 37 deletions

View File

@@ -38,8 +38,8 @@
{{projectInfo.title}}
</div>
<div>
<span><span class="label">Id :</span>{{projectInfo.id}}</span>
<span><span class="label special">Name :</span>{{projectInfo.name}}</span>
<!--<span><span class="label">Id :</span>{{projectInfo.id}}</span>-->
<span><span class="label">Name :</span>{{projectInfo.name}}</span>
</div>
<div>
<span><span class="label">Description :</span>{{projectInfo.remark?projectInfo.remark:'--'}}</span>
@@ -211,10 +211,8 @@
this.$refs['topology'].setData();
},500)
}
// res.data.topo.viewsCenter?res.data.topo.viewsCenter:
this.$refs['topology'].viewsCenter={x:0,y:0};
// res.data.topo.zoom?res.data.topo.zoom:
this.$refs['topology'].zoom=1;
this.$refs['topology'].viewsCenter=res.data.topo.viewsCenter?res.data.topo.viewsCenter:{x:0,y:0};
this.$refs['topology'].zoom=res.data.topo.zoom?res.data.topo.zoom:1;
})
},
reload(){
@@ -300,6 +298,9 @@
if(flag){
this.$refs.topology.popDataShowUpdate();
}
if(!flag){
// this.reload();
}
}
},