From 650d3fe4ec6ed3c621949464a54b2956162ab3a2 Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Tue, 26 Apr 2022 10:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=A4=A7=E5=B1=8F=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=B0=8F=E5=B1=8F=E5=B9=95=E7=82=B9=E5=87=BB=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E5=A4=A7=E5=B1=8F=E9=80=82=E9=85=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/bigscLocation/indexV_3.vue | 39 +++++++++++++------ src/views/bigScreen/v3/index.vue | 35 ++++++++++------- src/views/power/examine/index.vue | 4 +- src/views/power/maintenance/index.vue | 4 +- src/views/power/mywork/details.vue | 4 +- src/views/power/mywork/index.vue | 4 +- .../DeviceDetailsView/deviceSelectNav.vue | 2 + 7 files changed, 59 insertions(+), 33 deletions(-) diff --git a/src/components/Amap/components/bigscLocation/indexV_3.vue b/src/components/Amap/components/bigscLocation/indexV_3.vue index 2baf7e27..988f2971 100644 --- a/src/components/Amap/components/bigscLocation/indexV_3.vue +++ b/src/components/Amap/components/bigscLocation/indexV_3.vue @@ -77,6 +77,7 @@ export default { this.aMap = new AMap.Map("container", { center: [this.mapCenter.lng, this.mapCenter.lat], resizeEnable: true, + viewMode: '3D', // zoom: this.zoom, mapStyle: "amap://styles/" + this.theme, }); @@ -95,6 +96,7 @@ export default { // 地图标点 点击事件 markerClick(e) { // console.log("地图点击标注点!!"); + debugger; if (!this.infoWindow) { this.createInfoWindowO(); } @@ -146,7 +148,10 @@ export default { createMarker() { var markerList = []; var _this = this; - var projectUrl = this.$store.getters.tenantId === 0 ? '/project/project' : '/project_tenant/project_tenant' + var projectUrl = + this.$store.getters.tenantId === 0 + ? "/project/project" + : "/project_tenant/project_tenant"; for (var i = 0; i < this.projectList.length; i++) { if (this.projectList[i].projectLat && this.projectList[i].projectLng) { let marker = new AMap.Marker({ @@ -157,13 +162,22 @@ export default { // map: this.aMap, icon: this.projectList[i].tenantIndexVo["unProcessed"] > 0 - ? markerAlarmIcon - : markerIcon, + ? markerAlarmIcon + : markerIcon, + // icon: + // new AMap.Icon({ + // image: this.projectList[i].tenantIndexVo["unProcessed"] > 0 + // ? markerAlarmIcon + // : markerIcon, + // size: new AMap.Size(80, 80), + // imageSize: new AMap.Size(52, 52), + // }), + offset: new AMap.Pixel(-13, -30), }); var content = []; window["amapObj"] = this.aMap; - window['_this'] = this; + window["_this"] = this; content.push( `