From 0dbe8c700a35f02f521a8232710e0647eed2eff0 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期五, 03 三月 2023 19:19:29 +0800 Subject: [PATCH] 1 --- src/components/MapView/mapMenuTop.vue | 2 +- src/components/MapView/mapMenuPop.vue | 18 +++++++++--------- src/components/MapView/mapSpacePop.vue | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/MapView/mapMenuPop.vue b/src/components/MapView/mapMenuPop.vue index ce7b278..777bcf5 100644 --- a/src/components/MapView/mapMenuPop.vue +++ b/src/components/MapView/mapMenuPop.vue @@ -546,7 +546,7 @@ this.imagePoint = null; } var wkt = this.$wkt.parse(val1); - this.setMapLoaction(wkt,row); + this.setMapLoaction(wkt, row); } }, setMapLoaction(res) { @@ -656,7 +656,7 @@ if (val1) { var wkt = this.$wkt.parse(val1); // this.getprimitiLayer(wkt); - this.primitivesAddLayer(wkt,properties); + this.primitivesAddLayer(wkt, properties); } } }, @@ -669,7 +669,7 @@ break; } }, - primitivesAddLayer(res,properties) { + primitivesAddLayer(res, properties) { switch (res.type) { case "Point": var val = Cesium.Cartesian3.fromDegrees( @@ -678,8 +678,8 @@ ); var point = Viewer.entities.add({ position: val, - properties:properties, - tag : "properties_point", + properties: properties, + tag: "properties_point", billboard: { // 鍥惧儚鍦板潃锛孶RI鎴朇anvas鐨勫睘鎬� image: SmartEarthRootUrl + "Workers/image/mark.png", @@ -698,13 +698,13 @@ }); point.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY; this.$store.state.queryInfo.push(point); - //鐐瑰嚮浜嬩欢 + //鐐瑰嚮浜嬩欢 window.propertieshandler = new Cesium.ScreenSpaceEventHandler( - sgworld.Viewer.scene.canvas + sgworld.Viewer.scene.canvas ); window.propertieshandler.setInputAction(event => { let pick = sgworld.Viewer.scene.pick(event.position); - // debugger; + // ; if (pick && pick.id && pick.id.tag == "properties_point") { this.$store.state.propertiesFlag = '1'; let properties = pick.id.properties; @@ -713,7 +713,7 @@ obj["eventid"] = properties['_eventid']._value; this.attributeData.forEach(item => { propertyNames.forEach(itemElement => { - if (itemElement == item.field){ + if (itemElement == item.field) { obj[item.alias] = properties[itemElement]._value } }) diff --git a/src/components/MapView/mapMenuTop.vue b/src/components/MapView/mapMenuTop.vue index 2355a02..7cd4bff 100644 --- a/src/components/MapView/mapMenuTop.vue +++ b/src/components/MapView/mapMenuTop.vue @@ -294,7 +294,7 @@ if (data.code != 200) { this.$message.error("鍒楄〃璋冪敤澶辫触") } - debugger + // var val = data.result.filter(res => { // if (res.rows != 0) { // return res diff --git a/src/components/MapView/mapSpacePop.vue b/src/components/MapView/mapSpacePop.vue index 9a6f285..3e4146c 100644 --- a/src/components/MapView/mapSpacePop.vue +++ b/src/components/MapView/mapSpacePop.vue @@ -373,7 +373,7 @@ this.formInline.name + " " + this.formInline.region + " " + val } - debugger + const data = await dataQuerySelectByPage(this.listdata); if (data.code != 200) { this.$message.error('鍒楄〃璋冪敤澶辫触'); @@ -433,7 +433,7 @@ this.$store.state.primitLayer = null; } var coord = res.coordinates; - debugger + if (res.type == 'Point') { var val = Cesium.Cartesian3.fromDegrees( res.coordinates[0], @@ -476,7 +476,7 @@ let propertyNames = pick.id.properties.propertyNames; let obj = {}; obj["eventid"] = properties['_eventid']._value; - // debugger + // this.attributeData.forEach(item => { propertyNames.forEach(itemElement => { if (itemElement == item.field) { @@ -559,7 +559,7 @@ position: absolute; bottom: 3%; } - /dep/.el-form-item { + /deep/.el-form-item { margin-bottom: 0px; } } -- Gitblit v1.9.3