diff --git a/src/api/ecology/air.js b/src/api/ecology/air.js index 06d527d..8625957 100644 --- a/src/api/ecology/air.js +++ b/src/api/ecology/air.js @@ -59,6 +59,13 @@ const getColumnOptions = function(column){ } //均值 百分位 const statisticAvg = "/ambientAir/ambientAir/statistic/avg"; + +//市县站点统计 +const statisticUrl = "/ambientAir/ambientAir/statistic"; + +//城区统计 +const statisticAreaBase = "/ambientAir/ambientAir/statistic/areaBase"; +const statisticArea = "/ambientAir/ambientAir/statistic/area"; export { pageBillUrl, saveAirBill, @@ -74,6 +81,9 @@ export { updateAir, removeBatchAir, getColumnOptions, - statisticAvg + statisticAvg, + statisticUrl, + statisticAreaBase, + statisticArea } diff --git a/src/api/ecology/noise/function-noise-function-type.js b/src/api/ecology/noise/function-noise-function-type.js index 592aa65..302b11b 100644 --- a/src/api/ecology/noise/function-noise-function-type.js +++ b/src/api/ecology/noise/function-noise-function-type.js @@ -20,13 +20,16 @@ const removeBatchFunctionType = function (ids) { const updateFunctionType = function (data) { return axios.put("/sound/function/functionType",data) } - +const getColumnOptions = function(column){ + return axios.get("/sound/function/functionType/options",{params:{column}}) +} export { listAllUrl, saveFunctionType, updateFunctionType, removeBatchFunctionType, - removeFunctionType + removeFunctionType, + getColumnOptions } diff --git a/src/api/ecology/noise/function-noise-leq-level.js b/src/api/ecology/noise/function-noise-leq-level.js index eac7d27..144d9a7 100644 --- a/src/api/ecology/noise/function-noise-leq-level.js +++ b/src/api/ecology/noise/function-noise-leq-level.js @@ -20,13 +20,16 @@ const removeBatchLeqLevel = function (ids) { const updateLeqLevel = function (data) { return axios.put("/sound/function/noiseLeqLevel",data) } - +const getColumnOptions = function(column){ + return axios.get("/sound/function/noiseLeqLevel/options",{params:{column}}) +} export { listAllUrl, saveLeqLevel, updateLeqLevel, removeBatchLeqLevel, - removeLeqLevel + removeLeqLevel, + getColumnOptions } diff --git a/src/api/ecology/noise/function-noise-place.js b/src/api/ecology/noise/function-noise-place.js index ebd0625..c6c94c3 100644 --- a/src/api/ecology/noise/function-noise-place.js +++ b/src/api/ecology/noise/function-noise-place.js @@ -21,12 +21,17 @@ const updatePlace = function (data) { return axios.put("/sound/function/place",data) } +const getColumnOptions = function(column){ + return axios.get("/sound/function/place/options",{params:{column}}) +} + export { listAllUrl, savePlace, updatePlace, removeBatchPlace, - removePlace + removePlace, + getColumnOptions } diff --git a/src/api/ecology/noise/road-noise-leq-level.js b/src/api/ecology/noise/road-noise-leq-level.js index c3f4e56..86065d7 100644 --- a/src/api/ecology/noise/road-noise-leq-level.js +++ b/src/api/ecology/noise/road-noise-leq-level.js @@ -21,12 +21,17 @@ const updateLeqLevel = function (data) { return axios.put("/sound/road/noiseLeqLevel",data) } +const getColumnOptions = function(column){ + return axios.get("/sound/road/noiseLeqLevel/options",{params:{column}}) +} + export { listAllUrl, saveLeqLevel, updateLeqLevel, removeBatchLeqLevel, - removeLeqLevel + removeLeqLevel, + getColumnOptions } diff --git a/src/api/ecology/noise/road-noise-place.js b/src/api/ecology/noise/road-noise-place.js index 8f7cd31..43aac39 100644 --- a/src/api/ecology/noise/road-noise-place.js +++ b/src/api/ecology/noise/road-noise-place.js @@ -21,12 +21,15 @@ const updatePlace = function (data) { return axios.put("/sound/road/place",data) } - +const getColumnOptions = function(column){ + return axios.get("/sound/road/place/options",{params:{column}}) +} export { listAllUrl, savePlace, updatePlace, removeBatchPlace, - removePlace + removePlace, + getColumnOptions } diff --git a/src/api/ecology/noise/zone-noise-leq-level.js b/src/api/ecology/noise/zone-noise-leq-level.js index e8ad9e2..0c68060 100644 --- a/src/api/ecology/noise/zone-noise-leq-level.js +++ b/src/api/ecology/noise/zone-noise-leq-level.js @@ -20,6 +20,9 @@ const removeBatchLeqLevel = function (ids) { const updateLeqLevel = function (data) { return axios.put("/sound/zone/noiseLeqLevel",data) } +const getColumnOptions = function(column){ + return axios.get("/sound/zone/noiseLeqLevel/options",{params:{column}}) +} export { @@ -27,6 +30,7 @@ export { saveLeqLevel, updateLeqLevel, removeBatchLeqLevel, - removeLeqLevel + removeLeqLevel, + getColumnOptions } diff --git a/src/api/ecology/noise/zone-noise-place.js b/src/api/ecology/noise/zone-noise-place.js index ef776ba..c874131 100644 --- a/src/api/ecology/noise/zone-noise-place.js +++ b/src/api/ecology/noise/zone-noise-place.js @@ -21,12 +21,17 @@ const updatePlace = function (data) { return axios.put("/sound/zone/place",data) } +const getColumnOptions = function(column){ + return axios.get("/sound/zone/place/options",{params:{column}}) +} + export { listAllUrl, savePlace, updatePlace, removeBatchPlace, - removePlace + removePlace, + getColumnOptions } diff --git a/src/views/atmosphere/air/collect/air.vue b/src/views/atmosphere/air/collect/air.vue index 0a4fb0f..9abfd43 100644 --- a/src/views/atmosphere/air/collect/air.vue +++ b/src/views/atmosphere/air/collect/air.vue @@ -42,7 +42,7 @@ { if (res.data.code == 0) { @@ -489,7 +489,7 @@ export default { /* 删除单个 */ remove(row) { const hide = this.$message.loading("请求中..", 0); - removeAir(row.airId) + removeAir(row.ambientAirId) .then((res) => { if (res.data.code === 0) { this.$message.success(res.data.msg); @@ -504,7 +504,7 @@ export default { .finally(() => hide()); }, removeBatch() { - const ids = this.selectionList.map((item) => item.airId); + const ids = this.selectionList.map((item) => item.ambientAirId); const hide = this.$message.loading("请求中..", 0); removeBatchAir(ids) .then((res) => { diff --git a/src/views/atmosphere/air/dict/api-relate.vue b/src/views/atmosphere/air/dict/api-relate.vue index e7632ac..ad00f8e 100644 --- a/src/views/atmosphere/air/dict/api-relate.vue +++ b/src/views/atmosphere/air/dict/api-relate.vue @@ -3,7 +3,7 @@ + + + @@ -42,7 +45,7 @@ { if (res.data.code == 0) { @@ -253,7 +261,7 @@ export default { /* 删除单个 */ remove(row) { const hide = this.$message.loading('请求中..', 0); - removeAqiRelate(row.id).then((res) => { + removeAqiRelate(row.airAqiRelateInfoDictId).then((res) => { hide(); if (res.data.code === 0) { this.$message.success(res.data.msg); @@ -269,7 +277,7 @@ export default { /* 批量删除 */ removeBatch() { const hide = this.$message.loading('请求中..', 0); - const ids = this.selectionList.map((item) => item.id); + const ids = this.selectionList.map((item) => item.airAqiRelateInfoDictId); removeBatchAqiRelate(ids).then((res) => { if (res.data.code === 0) { this.$message.success(res.data.msg); diff --git a/src/views/atmosphere/air/dict/indicator-iaqi.vue b/src/views/atmosphere/air/dict/indicator-iaqi.vue index 4049bba..17b30a7 100644 --- a/src/views/atmosphere/air/dict/indicator-iaqi.vue +++ b/src/views/atmosphere/air/dict/indicator-iaqi.vue @@ -16,9 +16,12 @@ :label-col="{ md: { span: 6 }, sm: { span: 24 } }" :wrapper-col="{ md: { span: 18 }, sm: { span: 24 } }" > - - - + @@ -107,16 +110,19 @@ export default { // title: "年份", // dataIndex: "year", // }, - {title: "空气质量分指数",dataIndex: "iaqi",}, {title: "so2 24小时平均", dataIndex: "so2TwentyFourHour",}, + {title: "空气质量分指数",dataIndex: "iaqi",}, + {title: "so2 24小时平均", dataIndex: "so2TwentyFourHour",}, {title: "so2 1小时平均",dataIndex: "so2OneHour",}, {title: "no2 24小时平均",dataIndex: "no2TwentyFourHour",}, {title: "no2 1小时平均",dataIndex: "no2OneHour",}, {title: "pm10 24小时平均",dataIndex: "pm10TwentyFourHour",}, - {title: "pm25 24小时平均",dataIndex: "pm25TwentyFourHour",}, {title: "co 24小时平均",dataIndex: "coTwentyFourHour",}, {title: "co 1小时平均",dataIndex: "coOneHour",}, - {title: "o3 8小时平均", dataIndex: "o3EightHour",}, {title: "o3 1小时平均", dataIndex: "o3OneHour",}, + + {title: "o3 8小时滑动平均", dataIndex: "o3EightHour",}, + {title: "pm25 24小时平均",dataIndex: "pm25TwentyFourHour",}, + { title: "操作", key: "action", diff --git a/src/views/atmosphere/air/dict/place.vue b/src/views/atmosphere/air/dict/place.vue index 7bf2b38..0e12f24 100644 --- a/src/views/atmosphere/air/dict/place.vue +++ b/src/views/atmosphere/air/dict/place.vue @@ -19,13 +19,24 @@ - + + + + + + + + + + + + @@ -107,11 +118,10 @@ export default { selection: [], // 表格列配置 columns: [ - { - title: "点位名称", - dataIndex: "place", - sorter: true, - }, + {title: "点位名称",dataIndex: "place",sorter: true,}, + {title: "片区名称",dataIndex: "districtName",sorter: true,}, + {title: "属性",dataIndex: "attributes",sorter: true,}, + {title: "点位名称",dataIndex: "place",sorter: true,}, { title: "经度", dataIndex: "longitude", @@ -122,6 +132,9 @@ export default { dataIndex: "latitude", sorter: true, }, + {title: "点位所在功能区类别",dataIndex: "placeFunctionalAreaCategory",sorter: true,}, + {title: "具体地址",dataIndex: "addressDetails",sorter: true,}, + { title: "操作", key: "action", diff --git a/src/views/atmosphere/air/statistic/area-base.vue b/src/views/atmosphere/air/statistic/area-base.vue new file mode 100644 index 0000000..0f9282f --- /dev/null +++ b/src/views/atmosphere/air/statistic/area-base.vue @@ -0,0 +1,265 @@ + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/area.vue b/src/views/atmosphere/air/statistic/area.vue new file mode 100644 index 0000000..2fa4846 --- /dev/null +++ b/src/views/atmosphere/air/statistic/area.vue @@ -0,0 +1,294 @@ + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/city-county-place.vue b/src/views/atmosphere/air/statistic/city-county-place.vue new file mode 100644 index 0000000..efbe850 --- /dev/null +++ b/src/views/atmosphere/air/statistic/city-county-place.vue @@ -0,0 +1,308 @@ + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/index.vue b/src/views/atmosphere/air/statistic/index.vue index ba30c5b..8507c9e 100644 --- a/src/views/atmosphere/air/statistic/index.vue +++ b/src/views/atmosphere/air/statistic/index.vue @@ -5,9 +5,18 @@ - - + + + + + + + + + + + @@ -21,15 +30,18 @@ */ import BaseStatistic from "./base.vue"; import AvgStatistic from "./avg"; + import CityCountyPlace from "./city-county-place"; + import AreaBase from "./area-base"; export default { name: 'StatisticAirIndex', components: { - BaseStatistic,AvgStatistic + // eslint-disable-next-line vue/no-unused-components + BaseStatistic,AvgStatistic,CityCountyPlace,AreaBase }, data() { return { - activeKey: 'avg' + activeKey: 'area' }; }, diff --git a/src/views/sound/road/dict/place.vue b/src/views/sound/road/dict/place.vue index b2efb8e..93375e1 100644 --- a/src/views/sound/road/dict/place.vue +++ b/src/views/sound/road/dict/place.vue @@ -1,6 +1,36 @@