噪声新增、修复
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
41
src/api/ecology/noise/zone-noise-source.js
Normal file
41
src/api/ecology/noise/zone-noise-source.js
Normal 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
|
||||
|
||||
}
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user