73 lines
1.7 KiB
JavaScript
73 lines
1.7 KiB
JavaScript
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,
|
|
|
|
|
|
}
|