|
@@ -22,35 +22,35 @@ export default {
|
|
|
return {
|
|
|
options: [
|
|
|
{
|
|
|
- Code: 'Project',
|
|
|
+ Code: 'Pj',
|
|
|
Name: '项目',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'Building',
|
|
|
+ Code: 'Bd',
|
|
|
Name: '建筑',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'Floor',
|
|
|
+ Code: 'Fl',
|
|
|
Name: '楼层',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'Equipment',
|
|
|
+ Code: 'Eq',
|
|
|
Name: '设备',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'Component',
|
|
|
+ Code: 'Ec',
|
|
|
Name: '部件',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'System',
|
|
|
+ Code: 'Sy',
|
|
|
Name: '系统',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'Space',
|
|
|
+ Code: 'Sp',
|
|
|
Name: '空间',
|
|
|
children: []
|
|
|
}, {
|
|
|
- Code: 'Tenant',
|
|
|
+ Code: 'VOTn',
|
|
|
Name: '租户',
|
|
|
children: []
|
|
|
},
|
|
@@ -75,15 +75,15 @@ export default {
|
|
|
//选择
|
|
|
handleChange(val) {
|
|
|
let type = val[0];
|
|
|
- let singleStr = "ProjectBuildingFloorTenant";
|
|
|
+ let singleStr = "Pj-Bd-Fl-VOTn";
|
|
|
console.log(val)
|
|
|
- if (type == "Equipment" && val.length == 2) {
|
|
|
+ if (type == "Eq" && val.length == 2) {
|
|
|
this.getDataPoint(val[1])
|
|
|
- } else if (type == "Component" && val.length == 2) {
|
|
|
+ } else if (type == "Ec" && val.length == 2) {
|
|
|
this.getDataPoint(val[1])
|
|
|
- } else if (type == "System" && val.length == 3) {
|
|
|
+ } else if (type == "Sy" && val.length == 3) {
|
|
|
this.getDataPoint(val[2])
|
|
|
- } else if (type == "Space" && val.length == 2) {
|
|
|
+ } else if (type == "Sp" && val.length == 2) {
|
|
|
this.getDataPoint(val[1])
|
|
|
} else if (singleStr.indexOf(type) > -1) {
|
|
|
this.hasChildren(type) && this.getDataPoint(type)
|