功能噪声gis达标率统计

This commit is contained in:
weicw
2022-01-27 03:53:08 +08:00
parent bba7fc5345
commit 69c5a1a921
4 changed files with 15 additions and 15 deletions

View File

@@ -70,7 +70,7 @@ export default {
padding: 10px; padding: 10px;
position: absolute; position: absolute;
/*bottom: 300px;*/ /*bottom: 300px;*/
top: 50px; top: 80px;
transition: right 0.8s; transition: right 0.8s;
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="map-table-container " :style="{'right':type1 == 1 ? '0px':'-500px'}"> <div class="map-table-container " :style="{'right':type1 == 1 ? '0px':'-700px'}">
<a-card title="功能区噪声" :headStyle="{'padding':'0px 5px'}" <a-card title="功能区噪声" :headStyle="{'padding':'0px 5px'}"
:bodyStyle="{'padding':'0px 5px','height':'200px','overFlow':'scroll'}"> :bodyStyle="{'padding':'0px 5px','height':'200px','overFlow':'scroll'}">
<div class="left-close-button" @click="showTable(0)" v-if="type1 == 1"> <div class="left-close-button" @click="showTable(0)" v-if="type1 == 1">
@@ -11,7 +11,7 @@
<img src="https://sqtt.oss-cn-qingdao.aliyuncs.com/Uploads/image/goods/2022-01-08/61d8e83754c7e.png" alt="" <img src="https://sqtt.oss-cn-qingdao.aliyuncs.com/Uploads/image/goods/2022-01-08/61d8e83754c7e.png" alt=""
style="width: 30px;height: 30px"> style="width: 30px;height: 30px">
</div> </div>
<a-table :columns="columns" :data-source="rowData" size="mini" :scroll="{y:150,x:500}" :pagination="false"> <a-table :columns="columns" :data-source="rowData" size="mini" :scroll="{y:150,x:700}" :pagination="false">
</a-table> </a-table>
</a-card> </a-card>
</div> </div>
@@ -21,11 +21,7 @@
const columns = [ const columns = [
{ {
title: "年份", title: "区域",
dataIndex: "year",
},
{
title: "功能区类别",
dataIndex: "col1", dataIndex: "col1",
}, },
{ {
@@ -152,10 +148,10 @@ export default {
<style scoped> <style scoped>
.map-table-container { .map-table-container {
box-sizing: border-box; box-sizing: border-box;
width: 500px; width: 700px;
padding: 10px; padding: 10px;
position: absolute; position: absolute;
bottom: 300px; top: 80px;
transition: right 0.8s; transition: right 0.8s;
} }
@@ -169,7 +165,7 @@ export default {
background-color: #fff; background-color: #fff;
position: absolute; position: absolute;
left: -40px; left: -40px;
bottom: 0; top: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

View File

@@ -35,7 +35,8 @@ export default {
default: false default: false
}, },
data:{ data:{
type:Object type:Object,
default: ()=> {}
} }
}, },
watch: { watch: {

View File

@@ -262,6 +262,7 @@ export default {
myCompOverlay.addEventListener('mouseover', function (e) { myCompOverlay.addEventListener('mouseover', function (e) {
let currentId = e.target.getAttribute("id") let currentId = e.target.getAttribute("id")
setTimeout(() => { setTimeout(() => {
}, 300) }, 300)
let bodyInfo = document.getElementsByTagName("body")[0] let bodyInfo = document.getElementsByTagName("body")[0]
@@ -274,8 +275,10 @@ export default {
let calcWidth = screenWidth - mapWidth let calcWidth = screenWidth - mapWidth
// let calcHeight = screenHeight - mapHeight // let calcHeight = screenHeight - mapHeight
console.log("=================================================================================================")
that.tipData = that.pointData[Number(currentId.substring(2, currentId.length))]
that.tipFlag = true that.tipFlag = true
that.tipData = that.pointData[currentId.substring(2, currentId.length)]
that.currentX = e.pageX - calcWidth that.currentX = e.pageX - calcWidth
that.currentY = e.pageY - 80 that.currentY = e.pageY - 80
}) })
@@ -321,9 +324,9 @@ export default {
scene.removeLayer(pointLayer) scene.removeLayer(pointLayer)
} }
getGradeAll(this.where.monitorYear).then(res=>{ getGradeAll(this.where.monitorYear).then(res=>{
that.pointData = [] that.gradeData = []
if (res.data.code == 0 && res.data.data.length > 0) { if (res.data.code == 0 && res.data.data.length > 0) {
this.gradeData = res.data this.gradeData = res.data.data
} }
}) })
getPlaceGis(this.where).then((res) => { getPlaceGis(this.where).then((res) => {