trunk/pc4mobx/organization/apis/sequence.js

69 lines
1.8 KiB
JavaScript
Raw Normal View History

2022-05-12 14:57:36 +08:00
import {
WeaTools
} from 'ecCom'
export const getSearchList = (params) => {
2022-05-13 16:56:52 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/sequence/getSequenceTable', 'GET', params);
2022-05-12 14:57:36 +08:00
}
export const deleteTableData = (params) => {
2022-05-13 16:56:52 +08:00
return fetch('/api/bs/hrmorganization/sequence/deleteByIds', {
2022-05-12 14:57:36 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const getAdvanceSearchCondition = (params) => {
2022-05-13 16:56:52 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/sequence/getSearchCondition', 'GET', params);
2022-05-12 14:57:36 +08:00
}
export const add = (params) => {
2022-05-13 16:56:52 +08:00
return fetch('/api/bs/hrmorganization/sequence/saveSequence', {
2022-05-12 14:57:36 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-05-13 16:56:52 +08:00
export const edit = (params) => {
return fetch('/api/bs/hrmorganization/sequence/updateSequence', {
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-05-12 14:57:36 +08:00
export const updateForbiddenTag = (params) => {
2022-05-13 16:56:52 +08:00
return fetch('/api/bs/hrmorganization/sequence/updateForbiddenTagById', {
2022-05-12 14:57:36 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-05-13 16:56:52 +08:00
export const getSequenceForm = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/sequence/getSequenceForm', 'GET', params);
2022-05-12 14:57:36 +08:00
}
export const getTabInfo = (params) => {
2022-05-13 16:56:52 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/sequence/getTabInfo', 'GET', params);
2022-05-12 14:57:36 +08:00
}
export const getHasRight = (params) => {
2022-05-13 16:56:52 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/sequence/getHasRight', 'GET', params);
2022-05-12 14:57:36 +08:00
}