酸雨统计
This commit is contained in:
@@ -49,8 +49,7 @@ const updateAcidRain = function (data) {
|
||||
|
||||
// -------------------------统计---------------------
|
||||
const pageAcidRainStatisticUrl = '/acidRain/acidRain/statistic';
|
||||
const statisticSourceUrl = '/acidRain/acidRain/statistic/source';
|
||||
const statisticYearUrl = '/acidRain/acidRain/statistic/year';
|
||||
|
||||
const getHistoryyears = function () {
|
||||
return axios.get("/acidRain/acidRain/history-year")
|
||||
}
|
||||
@@ -58,6 +57,10 @@ const getColumnOptions = function(column){
|
||||
return axios.get("/acidRain/acidRain/options",{params:{column}})
|
||||
}
|
||||
|
||||
const statisticCity = "/acidRain/acidRain/statistic/city"
|
||||
const statisticCounty = "/acidRain/acidRain/statistic/county"
|
||||
const statisticIon = "/acidRain/acidRain/statistic/ion"
|
||||
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveAcidRainBill,
|
||||
@@ -74,7 +77,7 @@ export {
|
||||
pageAcidRainStatisticUrl,
|
||||
getHistoryyears,
|
||||
getColumnOptions,
|
||||
statisticSourceUrl,
|
||||
statisticYearUrl
|
||||
|
||||
statisticCity,
|
||||
statisticIon,
|
||||
statisticCounty
|
||||
}
|
||||
|
||||
@@ -1,32 +1,39 @@
|
||||
import axios from 'axios';
|
||||
const baseUri = "/ambientAir/airPlaceBasicInfoDict";
|
||||
const baseUri = "/acidRain/acidRainPlaceBaseInfoDict";
|
||||
const listAllUrl = baseUri + "";
|
||||
|
||||
// 添加
|
||||
const savePlace = function (data) {
|
||||
return axios.post("/ambientAir/airPlaceBasicInfoDict",data)
|
||||
return axios.post("/acidRain/acidRainPlaceBaseInfoDict",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removePlace = function (id) {
|
||||
return axios.delete(`/ambientAir/airPlaceBasicInfoDict/${id}`,)
|
||||
return axios.delete(`/acidRain/acidRainPlaceBaseInfoDict/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchPlace = function (ids) {
|
||||
return axios.delete("/ambientAir/airPlaceBasicInfoDict/batch",{data:ids})
|
||||
return axios.delete("/acidRain/acidRainPlaceBaseInfoDict/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updatePlace = function (data) {
|
||||
return axios.put("/ambientAir/airPlaceBasicInfoDict",data)
|
||||
return axios.put("/acidRain/acidRainPlaceBaseInfoDict",data)
|
||||
}
|
||||
|
||||
|
||||
const copyBatchPlace = function (data){
|
||||
return axios.post("/acidRain/acidRainPlaceBaseInfoDict/copyBatch",data)
|
||||
}
|
||||
const getColumnOptions = function(column){
|
||||
return axios.get("/acidRain/acidRainPlaceBaseInfoDict/options",{params:{column}})
|
||||
}
|
||||
export {
|
||||
listAllUrl,
|
||||
savePlace,
|
||||
updatePlace,
|
||||
removeBatchPlace,
|
||||
removePlace
|
||||
removePlace,
|
||||
copyBatchPlace,
|
||||
getColumnOptions
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user