trunk/pc4mobx/organization/apis/resource.js

73 lines
2.0 KiB
JavaScript
Raw Normal View History

2022-06-20 17:08:10 +08:00
import {
WeaTools
} from 'ecCom'
export const getSearchList = (params) => {
2022-06-21 18:39:50 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/listPage', 'GET', params);
2022-06-20 17:08:10 +08:00
}
export const deleteTableData = (params) => {
return fetch('/api/bs/hrmorganization/scheme/deleteByIds', {
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const getAdvanceSearchCondition = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/scheme/getSearchCondition', 'GET', params);
}
export const add = (params) => {
2022-06-21 18:39:50 +08:00
return fetch('/api/bs/hrmorganization/hrmresource/saveBaseForm', {
2022-06-20 17:08:10 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const edit = (params) => {
return fetch('/api/bs/hrmorganization/scheme/updateScheme', {
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const updateForbiddenTag = (params) => {
return fetch('/api/bs/hrmorganization/scheme/updateForbiddenTagById', {
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const getSchemeForm = (params) => {
2022-06-21 18:39:50 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/getSaveForm', 'GET', params);
2022-06-20 17:08:10 +08:00
}
export const getHasRight = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/scheme/getTableBtn', 'GET', params);
2022-06-21 18:39:50 +08:00
}
export const editResource = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/updateForm', 'POST', params);
}
export const getResourceExtendForm = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/hrmresource/getBaseForm', 'GET', params);
}