You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
|
6 years ago
|
/**
|
||
|
|
* 组织管理 server层
|
||
|
|
* @author dexiang.jiang
|
||
|
|
* @date 2020/06/07 16:14
|
||
|
|
*/
|
||
|
|
|
||
|
|
import http from '../CommonHttp'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 查询大区列表
|
||
|
|
* @param params
|
||
|
|
* @param call
|
||
|
|
* @returns {Promise<any>}
|
||
|
|
*/
|
||
|
|
export function getOrganizationRegionList(params, call, errorCallback) {
|
||
|
|
return http.get('/organization/region/list', params).then(call).catch(errorCallback)
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 修改大区
|
||
|
|
* @param params
|
||
|
|
* @param call
|
||
|
|
* @returns {Promise<any>}
|
||
|
|
*/
|
||
|
|
export function postOrganizationRegionModify(params, call, errorCallback) {
|
||
|
|
return http.post('/organization/region/modify', params).then(call).catch(errorCallback)
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 添加大区
|
||
|
|
* @param params
|
||
|
|
* @param call
|
||
|
|
* @returns {Promise<any>}
|
||
|
|
*/
|
||
|
|
export function postOrganizationRegionAdd(params, call, errorCallback) {
|
||
|
|
return http.post('/organization/region/add', params).then(call).catch(errorCallback)
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 删除
|
||
|
|
* @param params
|
||
|
|
* @param call
|
||
|
|
* @returns {Promise<any>}
|
||
|
|
*/
|
||
|
|
export function postOrganizationRemoveId(params, call, errorCallback) {
|
||
|
|
return http.post('/organization/remove/id', params).then(call).catch(errorCallback)
|
||
|
|
}
|
||
|
|
|
||
|
|
export default {
|
||
|
|
getOrganizationRegionList,
|
||
|
|
postOrganizationRegionModify,
|
||
|
|
postOrganizationRegionAdd,
|
||
|
|
postOrganizationRemoveId
|
||
|
|
}
|