diff --git a/src/api/ecology/air.js b/src/api/ecology/air.js new file mode 100644 index 0000000..ff486ba --- /dev/null +++ b/src/api/ecology/air.js @@ -0,0 +1,72 @@ +import axios from 'axios'; +// ----------------------列表----------------------- +const pageBillUrl = '/ambientAir/ambientAirBill/page'; +// 添加 +const saveAirBill = function (data) { + return axios.post("/ambientAir/ambientAirBill/importBatch",data) +} + +// 删除 +const removeAirBill = function (id) { + return axios.delete(`/ambientAir/ambientAirBill/${id}`,) +} +// 批量删除 +const removeBatchAirBill = function (ids) { + return axios.delete("/ambientAir/ambientAirBill/batch",{data:ids}) +} + +// 修改 +const updateAirBill = function (data) { + return axios.put("/ambientAir/ambientAirBill",data) +} +// 审核 +const verifyAirBill = function (data) { + return axios.put("/ambientAir/ambientAirBill/verify",data); +} +const getAirBill = function (id) { + return axios.get(`/ambientAir/ambientAirBill/${id}`) +} +// -------------------------数据--------------------- +const pageAirUrl = '/ambientAir/ambientAir/page'; +// 添加 +const saveAir = function (data) { + return axios.post("/ambientAir/ambientAir",data) +} + +// 删除 +const removeAir = function (id) { + return axios.delete(`/ambientAir/ambientAir/${id}`,) +} +// 批量删除 +const removeBatchAir = function (ids) { + return axios.delete("/ambientAir/ambientAir/batch",{data:ids}) +} + +// 修改 +const updateAir = function (data) { + return axios.put("/ambientAir/ambientAir",data) +} + +// -------------------------统计--------------------- + +const getColumnOptions = function(column){ + return axios.get("/ambientAir/ambientAir/options",{params:{column}}) +} + +export { + pageBillUrl, + saveAirBill, + removeAirBill, + updateAirBill, + removeBatchAirBill, + verifyAirBill, + getAirBill, + pageAirUrl, + saveAir, + removeAir, + updateAir, + removeBatchAir, + getColumnOptions, + + +} diff --git a/src/views/atmosphere/air/collect/air-bill.vue b/src/views/atmosphere/air/collect/air-bill.vue new file mode 100644 index 0000000..3a79ab5 --- /dev/null +++ b/src/views/atmosphere/air/collect/air-bill.vue @@ -0,0 +1,392 @@ + + + + + + + + + + + 市级 + 县级 + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 批量删除 + + + + + + + + + + {{ text || ' ' }} + + + + + + + + + + + + + {{ $util.toDateString(text,'yyyy-MM-dd') || ' ' }} + + + + + + + 已审核 + 未审核 + + + + + + 查看 + + + 审核 + + + 撤回 + + + + 删除 + + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/collect/air.vue b/src/views/atmosphere/air/collect/air.vue new file mode 100644 index 0000000..7c86cb7 --- /dev/null +++ b/src/views/atmosphere/air/collect/air.vue @@ -0,0 +1,690 @@ + + + + + + + + + + {{ item.label }} + + + + + + + {{ item.label }} + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 新增 + + 删除 + + + + + + {{text}} + {{text}} + {{text}} + {{text}} + {{text}} + {{text}} + + + + + 修改 + + 删除 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/collect/index.vue b/src/views/atmosphere/air/collect/index.vue new file mode 100644 index 0000000..02ceef2 --- /dev/null +++ b/src/views/atmosphere/air/collect/index.vue @@ -0,0 +1,165 @@ + + + + + + + 数据导入 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/collect/utils.js b/src/views/atmosphere/air/collect/utils.js new file mode 100644 index 0000000..fe7cc98 --- /dev/null +++ b/src/views/atmosphere/air/collect/utils.js @@ -0,0 +1,67 @@ +export default { + toCityObjData(excelData) { + const result = excelData.map(item => { + const row = { + city: item[0], + monitorTime: item[1], + so2: Number(item[2]) || null, + no2: Number(item[3]) || null, + pm10: Number(item[4]) || null, + co: Number(item[5]) || null, + o3: Number(item[6]) || null, + pm25: Number(item[7]) || null, + aqi: Number(item[8]) || null, + primaryPollutant: item[9], + aqiLevel: item[10], + airQualityStatus: item[11], + remark: item[12] + } + return row; + + }) + return result; + }, + toAreaObjData(excelData) { + const result = excelData.map(item => { + const row = { + place: item[0], + monitorTime: item[1], + airQualityStatus: item[2], + aqiLevel: item[3], + aqi: Number(item[4]) || null, + primaryPollutant: item[5], + so2: Number(item[6]) || null, + no2: Number(item[7]) || null, + pm10: Number(item[8]) || null, + c0: Number(item[9]) || null, + o3: Number(item[10]) || null, + pm25: Number(item[11]) || null, + remark: item[12] + } + return row; + }) + return result; + }, + toStationObjData(excelData) { + const result = excelData.map(item => { + const row = { + city: item[0], + place: item[1], + monitorTime: item[2], + so2: Number(item[3]) || null, + no2: Number(item[5]) || null, + pm10: Number(item[7]) || null, + co: Number(item[9]) || null, + o3: Number(item[12]) || null, + pm25: Number(item[14]) || null, + aqi: Number(item[16]) || null, + primaryPollutant: item[17], + aqiLevel: item[18], + airQualityStatus: item[19], + remark: item[21], + } + return row; + }) + return result; + }, +} \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/average.vue b/src/views/atmosphere/air/statistic/average.vue new file mode 100644 index 0000000..3abe54f --- /dev/null +++ b/src/views/atmosphere/air/statistic/average.vue @@ -0,0 +1,213 @@ + + + + + + + + + + {{ item.label }} + + + + + + + 查询 + + 导出Excel + + + + + + + (data = d.data)" + > + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/base.vue b/src/views/atmosphere/air/statistic/base.vue new file mode 100644 index 0000000..a97c692 --- /dev/null +++ b/src/views/atmosphere/air/statistic/base.vue @@ -0,0 +1,477 @@ + + + + + + + + + + {{ item.label }} + + + + + + + {{ item.label }} + + + + + + + + {{ item.label }} + + + + + + + 查询 + 重置 + 导出Excel + + + + + + + (data = d.data)" + > + + {{text}} + {{text}} + {{text}} + {{text}} + {{text}} + {{text}} + + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/index.vue b/src/views/atmosphere/air/statistic/index.vue new file mode 100644 index 0000000..a7a8b60 --- /dev/null +++ b/src/views/atmosphere/air/statistic/index.vue @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/source.vue b/src/views/atmosphere/air/statistic/source.vue new file mode 100644 index 0000000..e974462 --- /dev/null +++ b/src/views/atmosphere/air/statistic/source.vue @@ -0,0 +1,195 @@ + + + + + + + + + + {{ item.label }} + + + + + + + 查询 + + 导出Excel + + + + + + + (data = d.data)" + > + + + + + + + + + \ No newline at end of file diff --git a/src/views/atmosphere/air/statistic/year.vue b/src/views/atmosphere/air/statistic/year.vue new file mode 100644 index 0000000..2d4b011 --- /dev/null +++ b/src/views/atmosphere/air/statistic/year.vue @@ -0,0 +1,224 @@ + + + + + + + + + + {{ item.label }} + + + + + + + {{ item.label }} + + + + + + + 查询 + + 导出Excel + + + + + + + (data = d.data)" + > + + + + + + + + + \ No newline at end of file diff --git a/src/views/sound/road/collect/index.vue b/src/views/sound/road/collect/index.vue index 53d3bcc..4126bd2 100644 --- a/src/views/sound/road/collect/index.vue +++ b/src/views/sound/road/collect/index.vue @@ -8,14 +8,7 @@ :showUploadList="false" accept=".xls,.xlsx,.csv" > - 市级导入 - - - 县级导入 + 数据导入