From 92c4b98314851f0217a9bc0c3d456757a01a14cf Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 12 Dec 2023 15:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E9=AB=98=E5=BA=A6=E8=B0=83?= =?UTF-8?q?=E6=95=B4,noData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/screenCenter/screenCenter.vue | 41 ++++++++++--------------- src/views/screenLeft/left1.vue | 3 +- src/views/screenRight/right1.vue | 2 +- src/views/screenRight/right3.vue | 12 +++++++- vue.config.js | 2 +- 5 files changed, 31 insertions(+), 29 deletions(-) diff --git a/src/views/screenCenter/screenCenter.vue b/src/views/screenCenter/screenCenter.vue index 3a93f1f..49ba7b7 100644 --- a/src/views/screenCenter/screenCenter.vue +++ b/src/views/screenCenter/screenCenter.vue @@ -349,7 +349,15 @@ export default { }, watch: { shibeiAId(value) { - } + }, + srcGridData(val, oldValue) { + if (oldValue == null) { + this.iniMap(); + } else { + this.updateGrid(); + } + this.zoomInABit(); + }, }, methods: { handleClickTabs(val){ @@ -732,7 +740,7 @@ export default { logoVisible: false, map: myMap, }); - scene.on("loaded", async () => { + scene.on("loaded", () => { this.iniMapGrid(shibeiJson); }); }, @@ -742,25 +750,7 @@ export default { if (this.mapStyleType == "light") { styleConfig = lightStyle; } - - // lineLayerBig = new LineLayer({ - // zIndex: 6, - // name: "line2", - // }) - // .source(shibeiJson1) - // .shape("wall") - // .size(50) - // .color('rgb(163, 255, 245)') - // .style({ - // opacity: 1, - // raisingHeight: 600, - // sourceColor: 'rgb(0, 153, 188,0.5)', - // targetColor: 'rgb(0, 153, 188)', - // linearDir: 'algin', - - // }) - // scene.addLayer(lineLayerBig); - // 画区域面积 + // 画区域面积 polygonLayer = new PolygonLayer({ autoFit: true, }) @@ -776,7 +766,7 @@ export default { }, opacity: 0.8, heightfixed: true, - raisingHeight: 300, + // raisingHeight: 300, sourceColor: '#4ee8fc', targetColor: '#00284e', }); @@ -794,7 +784,7 @@ export default { .color("name", styleConfig.lineColor) .style({ opacity: 1, - raisingHeight: 600, + raisingHeight: 300, }) .animate({ interval: 1, // 间隔 @@ -932,7 +922,10 @@ export default { delete f.subId delete f.subName }) - this.iniMapGrid(obj) + this.iniMapGrid(obj) + + if(this.level == 'community'){ + } }).catch(f => { console.log(f); }) diff --git a/src/views/screenLeft/left1.vue b/src/views/screenLeft/left1.vue index 7e6c19a..4cc6d6b 100644 --- a/src/views/screenLeft/left1.vue +++ b/src/views/screenLeft/left1.vue @@ -83,8 +83,7 @@ - - +