江河导入
This commit is contained in:
@@ -1,80 +1,80 @@
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/sound/zone/noise/bill/page';
|
||||
const pageBillUrl = '/surfaceWaterSection/surfaceWaterSectionBill/page';
|
||||
// 添加
|
||||
const saveZoneNoiseBill = function (data) {
|
||||
return axios.post("/sound/zone/noise/bill",data)
|
||||
const saveRiverBill = function (data) {
|
||||
return axios.post("/surfaceWaterSection/surfaceWaterSectionBill/importBatch",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeZoneNoiseBill = function (id) {
|
||||
return axios.delete(`/sound/zone/noise/bill/${id}`,)
|
||||
const removeRiverBill = function (id) {
|
||||
return axios.delete(`/surfaceWaterSection/surfaceWaterSectionBill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchZoneNoiseBill = function (ids) {
|
||||
return axios.delete("/sound/zone/noise/bill/batch",{data:ids})
|
||||
const removeBatchRiverBill = function (ids) {
|
||||
return axios.delete("/surfaceWaterSection/surfaceWaterSectionBill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateZoneNoiseBill = function (data) {
|
||||
return axios.put("/sound/zone/noise/bill",data)
|
||||
const updateRiverBill = function (data) {
|
||||
return axios.put("/surfaceWaterSection/surfaceWaterSectionBill",data)
|
||||
}
|
||||
// 审核
|
||||
const verifyZoneNoiseBill = function (data) {
|
||||
return axios.put("/sound/zone/noise/bill/verify",data);
|
||||
const verifyRiverBill = function (data) {
|
||||
return axios.put("/surfaceWaterSection/surfaceWaterSectionBill/verify",data);
|
||||
}
|
||||
const getZoneNoiseBill = function (id) {
|
||||
return axios.get(`/sound/zone/noise/bill/${id}`)
|
||||
const getRiverBill = function (id) {
|
||||
return axios.get(`/surfaceWaterSection/surfaceWaterSectionBill/${id}`)
|
||||
}
|
||||
// -------------------------数据---------------------
|
||||
const pageZoneNoiseUrl = '/sound/zone/noise/page';
|
||||
const pageRiverUrl = '/surfaceWaterSection/surfaceWaterSection/page';
|
||||
// 添加
|
||||
const saveZoneNoise = function (data) {
|
||||
return axios.post("/sound/zone/noise",data)
|
||||
const saveRiver = function (data) {
|
||||
return axios.post("/surfaceWaterSection/surfaceWaterSection",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeZoneNoise = function (id) {
|
||||
return axios.delete(`/sound/zone/noise/${id}`,)
|
||||
const removeRiver = function (id) {
|
||||
return axios.delete(`/surfaceWaterSection/surfaceWaterSection/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchZoneNoise = function (ids) {
|
||||
return axios.delete("/sound/zone/noise/batch",{data:ids})
|
||||
const removeBatchRiver = function (ids) {
|
||||
return axios.delete("/surfaceWaterSection/surfaceWaterSection/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateZoneNoise = function (data) {
|
||||
return axios.put("/sound/zone/noise",data)
|
||||
const updateRiver = function (data) {
|
||||
return axios.put("/surfaceWaterSection/surfaceWaterSection",data)
|
||||
}
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageZoneNoiseStatisticUrl = '/sound/zone/noise/statistic';
|
||||
const statisticSourceUrl = '/sound/zone/noise/statistic/source';
|
||||
const statisticYearUrl = '/sound/zone/noise/statistic/year';
|
||||
const pageRiverStatisticUrl = '/surfaceWaterSection/surfaceWaterSection/statistic';
|
||||
const statisticSourceUrl = '/surfaceWaterSection/surfaceWaterSection/statistic/source';
|
||||
const statisticYearUrl = '/surfaceWaterSection/surfaceWaterSection/statistic/year';
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/sound/zone/noise/history-year")
|
||||
return axios.get("/surfaceWaterSection/surfaceWaterSection/history-year")
|
||||
}
|
||||
const getColumnOptions = function(column){
|
||||
return axios.get("/sound/zone/noise/options",{params:{column}})
|
||||
return axios.get("/surfaceWaterSection/surfaceWaterSection/options",{params:{column}})
|
||||
}
|
||||
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveZoneNoiseBill,
|
||||
removeZoneNoiseBill,
|
||||
updateZoneNoiseBill,
|
||||
removeBatchZoneNoiseBill,
|
||||
verifyZoneNoiseBill,
|
||||
getZoneNoiseBill,
|
||||
pageZoneNoiseUrl,
|
||||
saveZoneNoise,
|
||||
removeZoneNoise,
|
||||
updateZoneNoise,
|
||||
removeBatchZoneNoise,
|
||||
pageZoneNoiseStatisticUrl,
|
||||
saveRiverBill,
|
||||
removeRiverBill,
|
||||
updateRiverBill,
|
||||
removeBatchRiverBill,
|
||||
verifyRiverBill,
|
||||
getRiverBill,
|
||||
pageRiverUrl,
|
||||
saveRiver,
|
||||
removeRiver,
|
||||
updateRiver,
|
||||
removeBatchRiver,
|
||||
pageRiverStatisticUrl,
|
||||
getHistoryyears,
|
||||
getColumnOptions,
|
||||
statisticSourceUrl,
|
||||
statisticYearUrl
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user