解析空气
This commit is contained in:
72
src/api/ecology/air.js
Normal file
72
src/api/ecology/air.js
Normal file
@@ -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,
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user