增删改查
This commit is contained in:
@@ -1,7 +1,55 @@
|
||||
// import axios from 'axios';
|
||||
const pageBillUrl = '/ecology/sound/road/bill/page';
|
||||
import axios from 'axios';
|
||||
// ----------------------列表-----------------------
|
||||
const pageBillUrl = '/collect/sound/road/bill/page';
|
||||
// 添加
|
||||
const saveRoadSoundBill = function (data) {
|
||||
return axios.post("/collect/sound/road/bill",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeRoadSoundBill = function (id) {
|
||||
return axios.delete(`/collect/sound/road/bill/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchRoadSoundBill = function (ids) {
|
||||
return axios.delete("/collect/sound/road/bill/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateRoadSoundBill = function (data) {
|
||||
return axios.put("/collect/sound/road/bill",data)
|
||||
}
|
||||
|
||||
// -------------------------数据---------------------
|
||||
const pageRoadSoundUrl = '/collect/sound/road/page';
|
||||
// 添加
|
||||
const saveRoadSound = function (data) {
|
||||
return axios.post("/collect/sound/road",data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const removeRoadSound = function (id) {
|
||||
return axios.delete(`/collect/sound/road/${id}`,)
|
||||
}
|
||||
// 批量删除
|
||||
const removeBatchRoadSound = function (ids) {
|
||||
return axios.delete("/collect/sound/road/batch",{data:ids})
|
||||
}
|
||||
|
||||
// 修改
|
||||
const updateRoadSound = function (data) {
|
||||
return axios.put("/collect/sound/road",data)
|
||||
}
|
||||
export {
|
||||
pageBillUrl,
|
||||
saveRoadSoundBill,
|
||||
removeRoadSoundBill,
|
||||
updateRoadSoundBill,
|
||||
removeBatchRoadSoundBill,
|
||||
pageRoadSoundUrl,
|
||||
saveRoadSound,
|
||||
removeRoadSound,
|
||||
updateRoadSound,
|
||||
removeBatchRoadSound
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user