|
@@ -16,7 +16,7 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="0.5" style="float:right;" v-show='1'>
|
|
|
|
|
|
+ <el-col :span="0.5" style="float:right;" v-show='0'>
|
|
<span style="margin-right:10px;">当前状态 {{description}}</span>
|
|
<span style="margin-right:10px;">当前状态 {{description}}</span>
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button @click="removeRelation">清除</el-button>
|
|
<el-button @click="removeRelation">清除</el-button>
|
|
@@ -224,7 +224,9 @@ export default {
|
|
let scale = this.view.scale;
|
|
let scale = this.view.scale;
|
|
this.view.scaleByPoint(val / scale, this.canvasWidth / 2, this.canvasHeight / 2);
|
|
this.view.scaleByPoint(val / scale, this.canvasWidth / 2, this.canvasHeight / 2);
|
|
},
|
|
},
|
|
- goback() { },
|
|
|
|
|
|
+ goback() {
|
|
|
|
+ this.$router.push({ name: 'overView' })
|
|
|
|
+ },
|
|
// 获取项目下建筑
|
|
// 获取项目下建筑
|
|
getBuilding() {
|
|
getBuilding() {
|
|
let pa = {
|
|
let pa = {
|
|
@@ -265,7 +267,6 @@ export default {
|
|
let pa = {
|
|
let pa = {
|
|
Filters: `FloorId='${this.buildFloor[1]}';GraphType='${this.type}';ZoneType='${this.zoneType}'`
|
|
Filters: `FloorId='${this.buildFloor[1]}';GraphType='${this.type}';ZoneType='${this.zoneType}'`
|
|
}
|
|
}
|
|
- this.canvasLoading = true;
|
|
|
|
querySpaceNeighborhood(pa, res => {
|
|
querySpaceNeighborhood(pa, res => {
|
|
let tempArr = res.Content.map(t => {
|
|
let tempArr = res.Content.map(t => {
|
|
let p1 = t.LocationOne.split(',');
|
|
let p1 = t.LocationOne.split(',');
|
|
@@ -327,7 +328,6 @@ export default {
|
|
this.scene.click(this, this.canvasClick)
|
|
this.scene.click(this, this.canvasClick)
|
|
// 绘制关系
|
|
// 绘制关系
|
|
this.getRelations();
|
|
this.getRelations();
|
|
- this.canvasLoading = false;
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 创建邻接关系
|
|
// 创建邻接关系
|