Commit 2a19b651 authored by 纪泽龙's avatar 纪泽龙

Merge branch 'develop_jzl'

parents beb3e59d 629fd6b3
...@@ -112,6 +112,10 @@ class gaodeMap { ...@@ -112,6 +112,10 @@ class gaodeMap {
this.view.drawerOpacity = true; this.view.drawerOpacity = true;
} }
} }
// 每次地图移动结束,就让地图可以缩放
let options = this.myMap.getStatus();
options.scrollWheel = true;
this.myMap.setStatus(options);
}); });
this.districtBoundaries(); this.districtBoundaries();
...@@ -584,10 +588,13 @@ class gaodeMap { ...@@ -584,10 +588,13 @@ class gaodeMap {
polyline.setOptions({ strokeColor: "#F7FE38" }); polyline.setOptions({ strokeColor: "#F7FE38" });
return; return;
} }
// 当选择的是新建的时候,线是点不了的 // 当选择的是新建的时候,线是点不了的
if (this.lineType == 1 || this.view.targetNum == 1) return; if (this.lineType == 1 || this.view.targetNum == 1) return;
if((this.view.targetNum==2||this.view.targetNum==3)&&e.type=="mouseover"){ if (
(this.view.targetNum == 2 || this.view.targetNum == 3) &&
e.type == "mouseover"
) {
this.polyLinesColorClear(polyline); this.polyLinesColorClear(polyline);
} }
// 上方导航的高 // 上方导航的高
......
...@@ -28,9 +28,10 @@ ...@@ -28,9 +28,10 @@
style="width: 100%" style="width: 100%"
height="170" height="170"
> >
<el-table-column prop="deviceCode" label="编号" width="100">
<el-table-column prop="deviceCode" label="设备编号" width="100">
</el-table-column> </el-table-column>
<el-table-column prop="deviceName" label="名称" width=""> <el-table-column prop="deviceName" label="设备名称" width="">
</el-table-column> </el-table-column>
<el-table-column prop="alarmType" label="报警类型" width="80"> <el-table-column prop="alarmType" label="报警类型" width="80">
</el-table-column> </el-table-column>
...@@ -41,7 +42,7 @@ ...@@ -41,7 +42,7 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<template v-for="(item, index) in list"> <template v-for="(item, index) in list">
<div <div
......
...@@ -603,8 +603,9 @@ export default { ...@@ -603,8 +603,9 @@ export default {
item; item;
// 获取polyLine // 获取polyLine
const device = this.gaoMap.markers.filter((item) => { const device = this.gaoMap.markers.filter((item) => {
const id = item.getExtData().deviceId; const { deviceId: id, troubleId } = item.getExtData();
return deviceId == id; // 因为隐患也有 deviceId,为了防止隐患直接遍成报警状态,所以要排除隐患,没有troubleId的就不是隐患
return !troubleId && deviceId == id;
})[0]; })[0];
if (device) { if (device) {
const options = device.getExtData(); const options = device.getExtData();
...@@ -1636,7 +1637,6 @@ input[type="radio"] { ...@@ -1636,7 +1637,6 @@ input[type="radio"] {
color: #053b6a; color: #053b6a;
font-weight: 600; font-weight: 600;
} }
} }
.deviceList { .deviceList {
cursor: pointer; cursor: pointer;
...@@ -1667,7 +1667,6 @@ input[type="radio"] { ...@@ -1667,7 +1667,6 @@ input[type="radio"] {
white-space: nowrap; white-space: nowrap;
// border-right: 1px solid #cccccc; // border-right: 1px solid #cccccc;
} }
} }
.no { .no {
width: 25px; width: 25px;
...@@ -1677,7 +1676,7 @@ input[type="radio"] { ...@@ -1677,7 +1676,7 @@ input[type="radio"] {
// border-right: none; // border-right: none;
flex: 1; flex: 1;
text-align: center; text-align: center;
margin-left:10px; margin-left: 10px;
} }
.code { .code {
width: 100px; width: 100px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment