|
@@ -2,8 +2,8 @@
|
|
|
<div class="editer">
|
|
|
<div class="top-bar">
|
|
|
<div class="left">
|
|
|
- <div class="project-name">{{ tupoName }}</div>
|
|
|
- <div class="project-type">/ {{ categoryName }}</div>
|
|
|
+ <div class="project-name">{{ name }}</div>
|
|
|
+ <div class="project-type">/ {{ floorLocalName }}({{ folderName }})</div>
|
|
|
<div class="project-save">自动保存成功- v {{ version }}</div>
|
|
|
</div>
|
|
|
<div class="right">
|
|
@@ -30,7 +30,17 @@ export default {
|
|
|
components: { planEditer },
|
|
|
data() {
|
|
|
return {
|
|
|
- categoryName: "", //项目分类
|
|
|
+ // categoryName: "", //项目分类
|
|
|
+ name: "", //图名称
|
|
|
+ folderId: "", //文件id
|
|
|
+ folderName: "", //文件夹名称
|
|
|
+ buildingId: "", //建筑id
|
|
|
+ floorId: "", //楼层id
|
|
|
+ floorMap: "", //floorMap
|
|
|
+ floorLocalName: "", //楼层本地名称
|
|
|
+ id: "", //图id
|
|
|
+ graphId: "", //图graphId
|
|
|
+ isPub: 0, //从用户页进入时,点击图是否是已发布的图 0: 未发布 1: 已发布
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -51,8 +61,21 @@ export default {
|
|
|
...mapState(["tupoName", "version"]),
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.categoryName = decodeURI(this.$route.query.categoryName);
|
|
|
- console.log(decodeURI(decodeURI(window.location.href)));
|
|
|
+ // this.categoryName = decodeURI(this.$route.query.categoryName);
|
|
|
+ // console.log(decodeURI(decodeURI(window.location.href)));
|
|
|
+
|
|
|
+ // folderId: "", //文件id
|
|
|
+ // folderName: "", //文件夹名称
|
|
|
+ // buildingId: "", //建筑id
|
|
|
+ // floorId: "", //楼层id
|
|
|
+ // floorMap: "", //floorMap
|
|
|
+ // floorLocalName: "", //楼层本地名称
|
|
|
+ // id: "", //图id
|
|
|
+ // graphId: "", //图graphId
|
|
|
+ // isPub: 0, /
|
|
|
+ // const { folderId, folderName, buildingId, floorId, floorMap, floorLocalName, id, graphId, isPub } = this.$route.query;
|
|
|
+ const arr = ["name", "folderId", "folderName", "buildingId", "floorId", "floorMap", "floorLocalName", "id", "graphId", "isPub"];
|
|
|
+ arr.map((key) => (this[key] = this.$route.query[key]));
|
|
|
},
|
|
|
};
|
|
|
</script>
|