|
@@ -274,6 +274,7 @@ export default class spaceIndex extends Vue {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
//改变楼层
|
|
|
changeCascader() {
|
|
|
if (this.building.length > 0) {
|
|
@@ -309,14 +310,14 @@ export default class spaceIndex extends Vue {
|
|
|
} else if (this.building.length === 2) {
|
|
|
switch (this.building[1]) {
|
|
|
case "noKnow":
|
|
|
- param2.filters = `buildingId='${this.building[0]}';floorId='isnull'`;
|
|
|
+ param2.filters = `buildingId='${ this.building[0] }';floorId='isnull'`;
|
|
|
|
|
|
break;
|
|
|
case "all":
|
|
|
- param2.filters = `buildingId='${this.building[0]}'`;
|
|
|
+ param2.filters = `buildingId='${ this.building[0] }'`;
|
|
|
break;
|
|
|
default:
|
|
|
- param2.filters = `buildingId='${this.building[0]}';floorId='${this.building[1]}'`;
|
|
|
+ param2.filters = `buildingId='${ this.building[0] }';floorId='${ this.building[1] }'`;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -386,29 +387,6 @@ export default class spaceIndex extends Vue {
|
|
|
if (item.outline) {
|
|
|
delete item.outline;
|
|
|
}
|
|
|
- // this.all.forEach(i => {
|
|
|
- // const category = ['ENUM', 'MENUM', 'BOOLEAN']
|
|
|
- // if (i.category == 'STATIC' && category.includes(i.dataType) && i.dataSource) {
|
|
|
- // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- // for (let l in item) {
|
|
|
- // if (l == inx) {
|
|
|
- // if (i.dataSource) {
|
|
|
- // item[l] = i.dataSource.filter(i => item[l].includes(i.code)).map(item => item.name).join(',')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if (i.category == 'STATIC' && i.dataType == 'ATTACHMENT') {
|
|
|
- // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- // for (let l in item) {
|
|
|
- // if (l == inx) {
|
|
|
- // item['sign/' + inx] = item[l]
|
|
|
- // item[l] = item[l].length
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
-
|
|
|
// item = {
|
|
|
// ...item,
|
|
|
// outline: JSON.stringify(item.outline),
|
|
@@ -430,7 +408,6 @@ export default class spaceIndex extends Vue {
|
|
|
console.log(e);
|
|
|
}
|
|
|
}
|
|
|
- // console.log(this.codeToDataSource,' this.codeToDataSource')
|
|
|
});
|
|
|
this.getBatch(this.tableData);
|
|
|
});
|
|
@@ -438,10 +415,12 @@ export default class spaceIndex extends Vue {
|
|
|
console.log("void");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
// 图建筑楼层修改
|
|
|
changeGraphCascader() {
|
|
|
this.toGraph();
|
|
|
}
|
|
|
+
|
|
|
// 动态信息点
|
|
|
getBatch(data) {
|
|
|
|
|
@@ -555,39 +534,8 @@ export default class spaceIndex extends Vue {
|
|
|
}
|
|
|
|
|
|
// 编辑当前行
|
|
|
- handleCurrentEdit(val) {
|
|
|
- // this.tableData.map(item => {
|
|
|
- // this.all.forEach(i => {
|
|
|
- // const category = ['ENUM', 'MENUM', 'BOOLEAN']
|
|
|
- // if (i.category == 'STATIC' && category.includes(i.dataType) && i.dataSource) {
|
|
|
- // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- // for (let l in item) {
|
|
|
- // if (l == inx) {
|
|
|
- // if (i.dataSource) {
|
|
|
- // item[l] = i.dataSource.filter(i => item[l].includes(i.name)).map(item => item.code).join(',')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // for (let l in val) {
|
|
|
- // if (l == inx) {
|
|
|
- // if (i.dataSource) {
|
|
|
- // val[l] = i.dataSource.filter(i => val[l].includes(i.name)).map(item => item.code).join(',')
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if (i.category == 'STATIC' && i.dataType == 'ATTACHMENT') {
|
|
|
- // let inx = i.path.substr(i.path.indexOf('.') + 1)
|
|
|
- // for (let l in item) {
|
|
|
- // if (l == inx) {
|
|
|
- // item[l] = item['sign/' + inx]
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
+ handleCurrentEdit(val: object) {
|
|
|
this.currRowContent = val
|
|
|
- console.log(val)
|
|
|
let pic = this.headersStage.dictStages.data.filter(i => i.dataType == 'ATTACHMENT')
|
|
|
let base = this.headersStage.dictStages.data.filter(i => i.dataType != 'ATTACHMENT')
|
|
|
this.headersStage.dictStages.data = pic.length > 0 ? [...base, ...pic] : [...base]
|
|
@@ -668,9 +616,11 @@ export default class spaceIndex extends Vue {
|
|
|
margin-left: 16px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.borderBottom {
|
|
|
border-bottom: 1px solid #e1e7ea;
|
|
|
}
|
|
|
+
|
|
|
.graph {
|
|
|
height: calc(100% - 64px);
|
|
|
}
|
|
@@ -688,7 +638,8 @@ export default class spaceIndex extends Vue {
|
|
|
.adm-space {
|
|
|
.el-dialog {
|
|
|
.el-dialog__body {
|
|
|
- max-height: 500px !important;
|
|
|
+ padding: 20px;
|
|
|
+ max-height: 643px !important;
|
|
|
min-height: 100px;
|
|
|
overflow-y: auto;
|
|
|
overflow-x: hidden;
|