|
@@ -146,7 +146,7 @@ export default {
|
|
|
appName: "万达可视化系统",
|
|
|
defaultProps: {
|
|
|
children: "Category",
|
|
|
- label: "Gcode"
|
|
|
+ label: "Code"
|
|
|
},
|
|
|
projectId: "", //项目id
|
|
|
fmapID: "", //蜂鸟地图id
|
|
@@ -298,7 +298,7 @@ export default {
|
|
|
this.systemName = "";
|
|
|
this.floorName = "";
|
|
|
this.systemName = items.Gcode;
|
|
|
- this.floorName = id.Gcode;
|
|
|
+ this.floorName = id.Code;
|
|
|
this.floorId = id.Gname;
|
|
|
this.categoryId = items.Id;
|
|
|
// this.getLegend();
|
|
@@ -326,11 +326,12 @@ export default {
|
|
|
(function recursion(newObj) {
|
|
|
newObj.map(function(item, index) {
|
|
|
item.id = item.Id || item.Gname;
|
|
|
- item.name = item.Gcode;
|
|
|
+ item.name = item.Code;
|
|
|
|
|
|
item.checked = false;
|
|
|
if (item.Category && item.Category.length > 0) {
|
|
|
item.children = item.Category;
|
|
|
+ item.name=item.Gcode;
|
|
|
item.open = false;
|
|
|
recursion(item.Category);
|
|
|
}
|
|
@@ -355,7 +356,7 @@ export default {
|
|
|
this.treeData[0].children[0].open = true;
|
|
|
this.treeData[0].children[0].children[0].checked = "checked";
|
|
|
this.systemName = this.treeData[0].children[0].Gcode;
|
|
|
- this.floorName = this.treeData[0].children[0].children[0].Gcode;
|
|
|
+ this.floorName = this.treeData[0].children[0].children[0].Code;
|
|
|
this.floorId = this.treeData[0].children[0].children[0].Gname;
|
|
|
this.categoryId = this.treeData[0].children[0].Id;
|
|
|
// this.getLegend();
|
|
@@ -364,7 +365,7 @@ export default {
|
|
|
this.treeData[0].open = true;
|
|
|
this.treeData[0].children[0].checked = "checked";
|
|
|
this.systemName = this.treeData[0].Gcode;
|
|
|
- this.floorName = this.treeData[0].children[0].Gcode;
|
|
|
+ this.floorName = this.treeData[0].children[0].Code;
|
|
|
this.floorId = this.treeData[0].children[0].Gname;
|
|
|
this.categoryId = this.treeData[0].Id;
|
|
|
// this.getLegend();
|