|
@@ -140,6 +140,10 @@ export default {
|
|
|
top: 0,
|
|
|
left: 0,
|
|
|
},
|
|
|
+ statusTextPosition: {
|
|
|
+ top: 0,
|
|
|
+ left: 0,
|
|
|
+ },
|
|
|
visible: false,
|
|
|
eqLoading: true,
|
|
|
equipIds: [],
|
|
@@ -151,7 +155,7 @@ export default {
|
|
|
showBtnWell: false,
|
|
|
count: 0, // 顶楼为多张图时计数器
|
|
|
equipKey: 1, //设备弹窗使用key值,解决打开弹窗数据为上次弹窗的数据
|
|
|
- statusRed: ['停用', '已拆除'], //显示红色的设备状态
|
|
|
+ statusRed: [ '停用', '已拆除'], //显示红色的设备状态
|
|
|
showStatusText: false, //设备状态 弹窗显隐状态
|
|
|
statusText: '', //设备状态 弹窗文本
|
|
|
timer: null, //自动隐藏 设备状态弹窗 定时器
|
|
@@ -237,7 +241,7 @@ export default {
|
|
|
// 设备状态为停用或已拆除时,弹出弹窗
|
|
|
if (this.statusRed.includes(row?.sb_status)) {
|
|
|
this.showStatusText = true
|
|
|
- this.statusText = `当前设备为“${row?.sb_status}”状态,无法查询该设备详情`
|
|
|
+ this.statusText = `当前设备为“${row.sb_status}”状态,无法查询该设备详情`
|
|
|
this.$set(this.statusTextPosition, 'top', event.clientY + 'px')
|
|
|
this.$set(this.statusTextPosition, 'left', event.clientX + 'px')
|
|
|
// 关闭弹窗
|
|
@@ -321,16 +325,16 @@ export default {
|
|
|
if (this.canvasID != `canvas${this.id}`) {
|
|
|
this.canvasID = `canvas${this.id}`
|
|
|
}
|
|
|
- this.getGraphDetail().then(res => {
|
|
|
+ this.getGraphDetail().then((res) => {
|
|
|
if (res.Content.length == 1) {
|
|
|
- const data = res.Content[0];
|
|
|
+ const data = res.Content[0]
|
|
|
if (data.MaxY && data.MinX) {
|
|
|
- window.fengmapData.maxY = data.MaxY;
|
|
|
- window.fengmapData.minX = data.MinX;
|
|
|
+ window.fengmapData.maxY = data.MaxY
|
|
|
+ window.fengmapData.minX = data.MinX
|
|
|
}
|
|
|
}
|
|
|
- this.parserData(floorid);
|
|
|
- });
|
|
|
+ this.parserData(floorid)
|
|
|
+ })
|
|
|
// this.parserData(floorid);
|
|
|
} else if (this.haveFengMap == 0) {
|
|
|
this.view.scene = this.scene
|
|
@@ -694,12 +698,12 @@ export default {
|
|
|
return readGroup(data)
|
|
|
},
|
|
|
// 获取图最大最小值
|
|
|
- getGraphDetail(){
|
|
|
- const categoryId = this.categoryId ? this.categoryId : this.$cookie.get('categoryId');
|
|
|
+ getGraphDetail() {
|
|
|
+ const categoryId = this.categoryId ? this.categoryId : this.$cookie.get('categoryId')
|
|
|
const data = {
|
|
|
- Filters:`categoryId='${categoryId}';projectId='${this.urlMsg.ProjectID}';BuildingID='1';FloorID='${this.floorid}';isPub=true`
|
|
|
- };
|
|
|
- return graphQuery(data);
|
|
|
+ Filters: `categoryId='${categoryId}';projectId='${this.urlMsg.ProjectID}';BuildingID='1';FloorID='${this.floorid}';isPub=true`,
|
|
|
+ }
|
|
|
+ return graphQuery(data)
|
|
|
},
|
|
|
// 地图尺寸
|
|
|
mapSize() {
|