Commit d5c4d564 authored by 纪泽龙's avatar 纪泽龙

Merge branch 'develop_jzl'

parents 2f8fe801 c5469218
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<span>{{ obj.inspectionTime }}</span> <span>{{ obj.inspectionTime }}</span>
</div> </div>
<div> <div>
<span>备注信息</span> <span>备注信息</span>
<span>{{ obj.remarks }} </span> <span>{{ obj.remarks }} </span>
</div> </div>
</div> </div>
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
.maintain-content { .maintain-content {
width: 100%; width: 100%;
height: 109px; height: 130px;
padding-left: 22px; padding-left: 22px;
padding-top: 16px; padding-top: 16px;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -391,7 +391,7 @@ class gaodeMap { ...@@ -391,7 +391,7 @@ class gaodeMap {
let polyline = new AMap.Polyline({ let polyline = new AMap.Polyline({
path, path,
strokeColor: "#F7FE38", strokeColor: "#F7FE38",
strokeWeight: 8, strokeWeight: 4,
strokeOpacity: 0.9, strokeOpacity: 0.9,
zIndex: 50, zIndex: 50,
bubble: true, bubble: true,
...@@ -500,7 +500,7 @@ class gaodeMap { ...@@ -500,7 +500,7 @@ class gaodeMap {
map.remove(this.markerOverlays); map.remove(this.markerOverlays);
this.mouseTool.polyline({ this.mouseTool.polyline({
// bubbles:false, // bubbles:false,
strokeWeight: 9, strokeWeight: 4,
strokeColor: "#80d8ff", strokeColor: "#80d8ff",
extData: { extData: {
type: "newLine", type: "newLine",
......
...@@ -69,16 +69,10 @@ ...@@ -69,16 +69,10 @@
id="tipinput" id="tipinput"
class="search-input" class="search-input"
/> />
<el-button <el-button icon="el-icon-search" class="search-but" @click="search()"
icon="el-icon-search"
class="search-but"
@click="search()"
>搜索</el-button >搜索</el-button
> >
<el-button <el-button icon="el-icon-refresh" class="refresh-but" @click="refreshMap()"
icon="el-icon-refresh"
class="refresh-but"
@click="refreshMap()"
>重置</el-button >重置</el-button
> >
...@@ -157,7 +151,7 @@ export default { ...@@ -157,7 +151,7 @@ export default {
this.initMap(); this.initMap();
}, },
methods: { methods: {
initMap(){ initMap() {
let gaoMap = new gaodeMap("石家庄"); let gaoMap = new gaodeMap("石家庄");
this.gaoMap = gaoMap; this.gaoMap = gaoMap;
window.addEventListener("click", this.barClose); window.addEventListener("click", this.barClose);
...@@ -181,44 +175,37 @@ export default { ...@@ -181,44 +175,37 @@ export default {
if (this.leftBarNum.includes(1)) { if (this.leftBarNum.includes(1)) {
this.gaoMap.lineShow(true); this.gaoMap.lineShow(true);
}else{ } else {
this.gaoMap.lineShow(false); this.gaoMap.lineShow(false);
} }
// console.log("marks",this.gaoMap.markers) // console.log("marks",this.gaoMap.markers)
// this.gaoMap.markerShow(); // this.gaoMap.markerShow();
if (this.leftBarNum.includes(2)) { if (this.leftBarNum.includes(2)) {
this.gaoMap.markerShow(1,true) this.gaoMap.markerShow(1, true);
}else{ } else {
this.gaoMap.markerShow(1,false) this.gaoMap.markerShow(1, false);
} }
if (this.leftBarNum.includes(3)) { if (this.leftBarNum.includes(3)) {
this.gaoMap.markerShow(2,true) this.gaoMap.markerShow(2, true);
}else{ } else {
this.gaoMap.markerShow(2,false) this.gaoMap.markerShow(2, false);
} }
if (this.leftBarNum.includes(4)) { if (this.leftBarNum.includes(4)) {
this.gaoMap.markerShow(3,true) this.gaoMap.markerShow(3, true);
}else{ } else {
this.gaoMap.markerShow(3,false) this.gaoMap.markerShow(3, false);
} }
if (this.leftBarNum.includes(7)) { if (this.leftBarNum.includes(7)) {
this.gaoMap.markerShow(4,true) this.gaoMap.markerShow(4, true);
}else{ } else {
this.gaoMap.markerShow(4,false) this.gaoMap.markerShow(4, false);
} }
}, },
addDevice() { addDevice() {
if (this.iconClass == "icon-create") { if (this.iconClass == "icon-create") {
this.targetNum = this.targetNum != 1 ? 1 : 0; this.targetNum = this.targetNum != 1 ? 1 : 0;
} else { } else {
...@@ -226,7 +213,6 @@ export default { ...@@ -226,7 +213,6 @@ export default {
this.targetNum = 0; this.targetNum = 0;
this.createReset(); this.createReset();
this.gaoMap.newLineReset(); this.gaoMap.newLineReset();
} }
} }
if (this.targetNum == 1 && this.createValue == 1) { if (this.targetNum == 1 && this.createValue == 1) {
...@@ -263,7 +249,6 @@ export default { ...@@ -263,7 +249,6 @@ export default {
// 如果不是管道了,把之前的管道清空 // 如果不是管道了,把之前的管道清空
this.gaoMap.newLineReset(); this.gaoMap.newLineReset();
// this.createReset(); // this.createReset();
// 其他 // 其他
this.gaoMap.draw(this.createValue.toString()); this.gaoMap.draw(this.createValue.toString());
...@@ -285,7 +270,7 @@ export default { ...@@ -285,7 +270,7 @@ export default {
this.gaoMap.linePolyEditorAllClose(); this.gaoMap.linePolyEditorAllClose();
this.gaoMap.removeMarkerDragg(); this.gaoMap.removeMarkerDragg();
this.gaoMap.mapOperateType = "normal"; this.gaoMap.mapOperateType = "normal";
}else{ } else {
// 如果正在新建线条,则清空 // 如果正在新建线条,则清空
this.gaoMap.newLineReset(); this.gaoMap.newLineReset();
this.deviceType = false; this.deviceType = false;
...@@ -304,7 +289,7 @@ export default { ...@@ -304,7 +289,7 @@ export default {
if (this.targetNum != 3) { if (this.targetNum != 3) {
this.gaoMap.removeMarkerDragg(); this.gaoMap.removeMarkerDragg();
this.gaoMap.mapOperateType = "normal"; this.gaoMap.mapOperateType = "normal";
}else{ } else {
// 如果正在新建线条,则清空 // 如果正在新建线条,则清空
this.gaoMap.newLineReset(); this.gaoMap.newLineReset();
// 清空所有正在编辑状态的线 // 清空所有正在编辑状态的线
...@@ -364,31 +349,44 @@ export default { ...@@ -364,31 +349,44 @@ export default {
} }
}); });
}, },
searchClear() {
this.iconClass = "icon-create";
this.createValue = 0;
this.createLabel = "新建";
this.targetNum = 0;
this.gaoMap.lineType = 0;
this.gaoMap.newLineReset();
this.gaoMap.linePolyEditorAllClose();
this.gaoMap.closeAddMarker();
this.gaoMap.removeMarkerDragg();
this.gaoMap.mapOperateType = "normal";
map.remove(this.gaodeMap.markerOverlays);
},
search() { search() {
this.searchClear();
map.clearMap(); map.clearMap();
this.gaoMap.placeSearch.clear(); this.gaoMap.placeSearch.clear();
if(!(!this.gaoMap.searchSelectAdcode && !this.gaoMap.searchSelectName)){ if (!(!this.gaoMap.searchSelectAdcode && !this.gaoMap.searchSelectName)) {
this.gaoMap.placeSearch.setCity(this.gaoMap.searchSelectAdcode); this.gaoMap.placeSearch.setCity(this.gaoMap.searchSelectAdcode);
this.gaoMap.placeSearch.search(this.gaoMap.searchSelectName); this.gaoMap.placeSearch.search(this.gaoMap.searchSelectName);
this.getDeviceInfo({"deviceName": this.gaoMap.searchSelectName}); this.getDeviceInfo({ deviceName: this.gaoMap.searchSelectName });
this.gaoMap.polyLines = []; this.gaoMap.polyLines = [];
this.getPipeList({"pipeName": this.gaoMap.searchSelectName}); this.getPipeList({ pipeName: this.gaoMap.searchSelectName });
this.gaoMap.searchSelectAdcode = undefined; this.gaoMap.searchSelectAdcode = undefined;
this.gaoMap.searchSelectName = undefined; this.gaoMap.searchSelectName = undefined;
}else{ } else {
this.gaoMap.placeSearch.search(this.keyWord); this.gaoMap.placeSearch.search(this.keyWord);
this.getDeviceInfo({"deviceName": this.keyWord}); this.getDeviceInfo({ deviceName: this.keyWord });
this.gaoMap.polyLines = []; this.gaoMap.polyLines = [];
this.getPipeList({"pipeName": this.keyWord}); this.getPipeList({ pipeName: this.keyWord });
} }
}, },
// 新建下拉列表关闭 window点击事件 // 新建下拉列表关闭 window点击事件
barClose() { barClose() {
console.log("window"); console.log("window");
this.deviceType = false; this.deviceType = false;
// 关闭当前线条的infowindow // 关闭当前线条的infowindow
this.gaoMap.closeInfoWindow() this.gaoMap.closeInfoWindow();
// 如果没有选择的时候点window 则高亮消失 // 如果没有选择的时候点window 则高亮消失
if (this.targetNum == 1 && this.iconClass == "icon-create") { if (this.targetNum == 1 && this.iconClass == "icon-create") {
this.targetNum = 0; this.targetNum = 0;
...@@ -399,10 +397,14 @@ export default { ...@@ -399,10 +397,14 @@ export default {
this.gaoMap.lineFlag = false; this.gaoMap.lineFlag = false;
// this.gaoMap.createNewLine(); // this.gaoMap.createNewLine();
}, },
refreshMap(){ refreshMap() {
this.iconClass = "icon-create";
this.createValue = 0;
this.createLabel = "新建";
this.targetNum = 0;
map.clearMap(); map.clearMap();
this.initMap(); this.initMap();
} },
}, },
beforeDestroy() { beforeDestroy() {
...@@ -647,7 +649,7 @@ input[type="radio"] { ...@@ -647,7 +649,7 @@ input[type="radio"] {
background-color: #053b6a; background-color: #053b6a;
} }
.refresh-but{ .refresh-but {
position: fixed; position: fixed;
top: 100px; top: 100px;
left: 28%; left: 28%;
......
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