噪声新增、修复

This commit is contained in:
weicw
2021-10-02 08:41:32 +08:00
parent 1c6338d61a
commit dffbbb2763
12 changed files with 1144 additions and 341 deletions

View File

@@ -53,6 +53,7 @@ const updateFunctionNoise = function (data) {
// -------------------------统计---------------------
const pageFunctionNoiseStatisticUrl = '/sound/function/noise/statistic';
const pageFunctionNoiseStatisticAvgUrl = '/sound/function/noise/statistic/avg';
const getHistoryyears = function () {
return axios.get("/sound/function/noise/history-year")
}
@@ -85,6 +86,7 @@ export {
getGisBase,
getGisArea,
listAllFunctionNoiseUrl,
listAllFunctionNoise
listAllFunctionNoise,
pageFunctionNoiseStatisticAvgUrl
}

View File

@@ -0,0 +1,41 @@
import axios from 'axios';
const baseUri = "/sound/zone/noiseSource";
const listAllUrl = baseUri + "";
// 添加
const saveSource = function (data) {
return axios.post("/sound/zone/noiseSource",data)
}
// 删除
const removeSource = function (id) {
return axios.delete(`/sound/zone/noiseSource/${id}`,)
}
// 批量删除
const removeBatchSource = function (ids) {
return axios.delete("/sound/zone/noiseSource/batch",{data:ids})
}
// 修改
const updateSource = function (data) {
return axios.put("/sound/zone/noiseSource",data)
}
const getColumnOptions = function(column){
return axios.get("/sound/zone/noiseSource/options",{params:{column}})
}
const copyBatchSource = function (data){
return axios.post("/sound/zone/noiseSource/copyBatch",data)
}
export {
listAllUrl,
saveSource,
updateSource,
removeBatchSource,
removeSource,
getColumnOptions,
copyBatchSource
}

View File

@@ -53,6 +53,7 @@ const updateZoneNoise = function (data) {
// -------------------------统计---------------------
const pageZoneNoiseStatisticUrl = '/sound/zone/noise/statistic';
const statisticLevelDistributionUrl = '/sound/zone/noise/statistic/levelDistribution';
const statisticSourceUrl = '/sound/zone/noise/statistic/source';
const statisticYearUrl = '/sound/zone/noise/statistic/year';
const getHistoryyears = function () {
@@ -80,6 +81,7 @@ export {
getColumnOptions,
statisticSourceUrl,
statisticYearUrl,
listALlZoneNoise
listALlZoneNoise,
statisticLevelDistributionUrl
}