功能区字典

This commit is contained in:
weicw
2022-01-27 03:13:31 +08:00
parent 022a8f6a2c
commit bbd8422336
5 changed files with 123 additions and 20 deletions

View File

@@ -37,7 +37,7 @@
<tip-tool :flag="tipFlag" :x="currentX" :y="currentY" :data="tipData"></tip-tool>
<mapNominal :param="nominalList" v-if="currentType == 0"></mapNominal>
<mapNominalCate :param="cate" v-if="currentType == 1" @pointColor="pointColor"></mapNominalCate>
<!-- <map-table-center :rowData="pointData"></map-table-center>-->
<map-table-center :rowData="gradeData"></map-table-center>
<map-table :rowData="pointData"></map-table>
</div>
</template>
@@ -45,11 +45,12 @@
import {
getPlaceGis,
getColumnOptions,
getGradeAll
} from "@/api/ecology/noise/function-sound";
import tipTool from "@/views/components/tipToolPlace";
import mapNominal from "@/views/components/mapNominalPlace";
import mapTable from "@/views/components/mapTablePlace";
// import mapTableCenter from "@/views/components/mapTableCenterPlace";
import mapTableCenter from "@/views/components/mapTableCenterPlace";
import mapNominalCate from "@/views/components/mapNominalCate";
let scene = null;
@@ -61,7 +62,7 @@ export default {
tipTool,
mapNominal,
mapTable,
// mapTableCenter,
mapTableCenter,
mapNominalCate
},
data() {
@@ -80,6 +81,7 @@ export default {
tipFlag: false,
tipData: [],
zoom: 13,
gradeData: [],
dataSource: [],
nominalList: [],
nominalListDay: [
@@ -318,6 +320,12 @@ export default {
if (scene && pointLayer) {
scene.removeLayer(pointLayer)
}
getGradeAll(this.where.monitorYear).then(res=>{
that.pointData = []
if (res.data.code == 0 && res.data.data.length > 0) {
this.gradeData = res.data
}
})
getPlaceGis(this.where).then((res) => {
that.pointData = []
if (res.data.code == 0 && res.data.data.length > 0) {