gis噪声质量统计
This commit is contained in:
@@ -9,9 +9,7 @@
|
||||
|
||||
<a-select @change="whereChange" name="year" v-model:value="where.monitorYear">
|
||||
<a-select-option v-for="item in yearOptions" :key="item.value">
|
||||
{{
|
||||
item.label
|
||||
}}
|
||||
{{item.label }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-radio-group @change="whereChange" name="area" v-model:value="where.regionLevel">
|
||||
@@ -28,19 +26,20 @@
|
||||
<div id="map" ref="map" style="overflow: hidden"></div>
|
||||
<tip-tool :flag="tipFlag" :x="currentX" :y="currentY" :data="tipData"></tip-tool>
|
||||
<mapNominal :param="nominalList"></mapNominal>
|
||||
<!-- <map-table-center :rowData="pointData"></map-table-center>-->
|
||||
<map-table-center :rowData="levelData"></map-table-center>
|
||||
<map-table :rowData="pointData"></map-table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getGisBase,
|
||||
getColumnOptions
|
||||
getColumnOptions,
|
||||
statisticLevelYear
|
||||
} from "@/api/ecology/noise/road-sound";
|
||||
import tipTool from "@/views/components/tipTool";
|
||||
import mapNominal from "@/views/components/mapNominal";
|
||||
import mapTable from "@/views/components/mapTable";
|
||||
// import mapTableCenter from "@/views/components/mapTableCenter";
|
||||
import mapTableCenter from "@/views/components/mapTableCenter";
|
||||
|
||||
let scene = null;
|
||||
let pointLayer = null;
|
||||
@@ -51,7 +50,7 @@ export default {
|
||||
tipTool,
|
||||
mapNominal,
|
||||
mapTable,
|
||||
// mapTableCenter
|
||||
mapTableCenter
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -64,6 +63,7 @@ export default {
|
||||
},
|
||||
map: {},
|
||||
pointData: [],
|
||||
levelData:[],
|
||||
currentY: 0,
|
||||
currentX: 30000,
|
||||
tipFlag: false,
|
||||
@@ -251,6 +251,21 @@ export default {
|
||||
if (scene && pointLayer) {
|
||||
scene.removeLayer(pointLayer)
|
||||
}
|
||||
statisticLevelYear(this.where).then(res=>{
|
||||
this.levelData = [];
|
||||
if (res.data.code == 0 && res.data.data.length > 0) {
|
||||
res.data.data.sort((a,b)=>{
|
||||
if(a.area == "南宁市"){
|
||||
return 1
|
||||
}
|
||||
if(b.area == "南宁市"){
|
||||
return -1
|
||||
}
|
||||
return 0
|
||||
})
|
||||
that.levelData = res.data.data
|
||||
}
|
||||
})
|
||||
getGisBase(this.where).then((res) => {
|
||||
that.pointData = []
|
||||
that.dataSource = []
|
||||
|
||||
Reference in New Issue
Block a user