| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- import axiosApi from '../AxiosApi.js'
- const apiList = {
- getAllList: {
- method: 'POST',
- url: `/authority/productionresource/all`
- },
- getList: {
- method: 'POST',
- url: `/authority/productionresource/getList`
- },
- page: {
- method: 'POST',
- url: `/authority/productionresource/page`
- },
- getBusinessList: {
- method: 'POST',
- url: `/authority/productionresource/getList`
- },
- save: {
- method: 'POST',
- url: `/authority/productionresource`
- },
- update: {
- method: 'POST',
- url: `/authority/productionresource/update`
- },
- remove: {
- method: 'DELETE',
- url: `/authority/productionresource`
- },
- removeMore: {
- method: 'POST',
- url: `/authority/productionresource/delete`
- },
- updateStatus: {
- method: 'POST',
- url: `/authority/productionresource/updateStatus`
- }
- }
- export default {
- getList (data) {
- return axiosApi({
- ...apiList.getList,
- data
- })
- },
- getAllList(data) {
- return axiosApi({
- ...apiList.getAllList,
- data
- })
- },
- page (data) {
- return axiosApi({
- ...apiList.page,
- data
- })
- },
- save (data) {
- return axiosApi({
- ...apiList.save,
- data
- })
- },
- update (data) {
- return axiosApi({
- ...apiList.update,
- data
- })
- },
- remove (data) {
- return axiosApi({
- ...apiList.remove,
- data
- })
- },
- removeMore (data) {
- return axiosApi({
- ...apiList.removeMore,
- data
- })
- },
- updateStatus (data) {
- return axiosApi({
- ...apiList.updateStatus,
- data
- })
- },
- detail (id) {
- return axiosApi({
- method: 'GET',
- url: `/authority/productionresource/${id}`
- })
- }
- }
|