功能区字典

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

@@ -74,6 +74,10 @@ const getTrendChart = function(data){
return axios.post("/sound/function/noise/trend/chart",data) return axios.post("/sound/function/noise/trend/chart",data)
} }
const getGradeAll = function (year){
return axios.get("/sound/function/noise/statisticGradeAll",{params:{year}})
}
export { export {
pageBillUrl, pageBillUrl,
saveFunctionNoiseBill, saveFunctionNoiseBill,
@@ -95,6 +99,7 @@ export {
listAllFunctionNoise, listAllFunctionNoise,
pageFunctionNoiseStatisticAvgUrl, pageFunctionNoiseStatisticAvgUrl,
getPlaceByRegionLevel, getPlaceByRegionLevel,
getTrendChart getTrendChart,
getGradeAll
} }

View File

@@ -21,25 +21,109 @@
const columns = [ const columns = [
{ {
title: '点位名称', title: "年份",
dataIndex: 'place', dataIndex: "year",
}, },
{ {
title: '点位等级', title: "功能区类别",
className: 'regionLevel', dataIndex: "col1",
dataIndex: 'regionLevel',
}, },
{ {
title: '所属地区', title: "南宁市",
dataIndex: 'area', align: "center",
children: [
{
title: "昼间",
align: "center",
dataIndex: "colDNAN_NING_SHI",
},
{
title: "夜间",
align: "center",
dataIndex: "colNNAN_NING_SHI",
},
],
}, },
{ {
title: '所属路段', title: "横州市",
dataIndex: 'road', align: "center",
children: [
{
title: "昼间",
align: "center",
dataIndex: "colDHENG_ZHOU_SHI",
},
{
title: "夜间",
align: "center",
dataIndex: "colNHENG_ZHOU_SHI",
},
],
},
{
title: "宾阳县",
align: "center",
children: [
{
title: "昼间",
align: "center",
dataIndex: "colDBIN_YANG_XIAN",
},
{
title: "夜间",
align: "center",
dataIndex: "colNBIN_YANG_XIAN",
},
],
}, },
{ {
title: '噪声 dB(A)', title: "上林县",
dataIndex: 'leq', align: "center",
children: [
{
title: "昼间",
align: "center",
dataIndex: "colDSHANG_LIN_XIAN",
},
{
title: "夜间",
align: "center",
dataIndex: "colNSHANG_LIN_XIAN",
},
],
},
{
title: "隆安县",
align: "center",
children: [
{
title: "昼间",
align: "center",
dataIndex: "colDLONG_AN_XIAN",
},
{
title: "夜间",
align: "center",
dataIndex: "colNLONG_AN_XIAN",
},
],
},
{
title: "马山县",
align: "center",
children: [
{
title: "昼间",
align: "center",
dataIndex: "colDMA_SHAN_XIAN",
},
{
title: "夜间",
align: "center",
dataIndex: "colNMA_SHAN_XIAN",
},
],
}, },
]; ];
export default { export default {

View File

@@ -79,9 +79,9 @@
allow-clear allow-clear
/> />
</a-form-item> </a-form-item>
<a-form-item label="父级功能区类别" name="ParentFunctionType"> <a-form-item label="父级功能区类别" name="parentFunctionType">
<a-input <a-input
v-model:value="form.ParentFunctionType" v-model:value="form.parentFunctionType"
placeholder="请输入父级功能区类别" placeholder="请输入父级功能区类别"
allow-clear allow-clear
/> />
@@ -194,6 +194,10 @@ export default {
selection: [], selection: [],
// 表格列配置 // 表格列配置
columns: [ columns: [
{
title: "年份",
dataIndex: "year",
},
{ {
title: "功能区类别", title: "功能区类别",
dataIndex: "functionType", dataIndex: "functionType",

View File

@@ -221,7 +221,9 @@ export default {
dataIndex: "functionType", dataIndex: "functionType",
sorter: true, sorter: true,
}, },
{title: "功能区代码",dataIndex: "functionCode",sorter: true, }, {title: "所属城区",dataIndex: "area",sorter: true, },
{title: "功能区代码",dataIndex: "functionCode",sorter: true, },
{ {
title: "测点经度", title: "测点经度",
dataIndex: "placeLng", dataIndex: "placeLng",

View File

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