85 lines
1.3 KiB
JavaScript
85 lines
1.3 KiB
JavaScript
import { axios } from '@/utils/request'
|
|
/**
|
|
* 获取机构树
|
|
*
|
|
* @author yubaoshan
|
|
* @date 2020/4/26 12:08
|
|
*/
|
|
export function getOrgTree(parameter) {
|
|
return axios({
|
|
url: '/business/org/tree',
|
|
method: 'post',
|
|
data: parameter
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取机构列表
|
|
*
|
|
* @author yubaoshan
|
|
* @date 2020/5/11 12:59
|
|
*/
|
|
export function getOrgList(parameter) {
|
|
return axios({
|
|
url: '/business/org/list',
|
|
method: 'post',
|
|
data: parameter
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取机构列表
|
|
*
|
|
* @author yubaoshan
|
|
* @date 2020/5/11 16:17
|
|
*/
|
|
export function getOrgPage(parameter) {
|
|
return axios({
|
|
url: '/business/org/page',
|
|
method: 'post',
|
|
data: parameter
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 新增机构
|
|
*
|
|
* @author yubaoshan
|
|
* @date 2020/5/11 13:56
|
|
*/
|
|
export function sysOrgAdd(parameter) {
|
|
return axios({
|
|
url: '/business/org/add',
|
|
method: 'post',
|
|
data: parameter
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 编辑机构
|
|
*
|
|
* @author yubaoshan
|
|
* @date 2020/5/11 13:56
|
|
*/
|
|
export function sysOrgEdit(parameter) {
|
|
return axios({
|
|
url: '/business/org/edit',
|
|
method: 'post',
|
|
data: parameter
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除机构
|
|
*
|
|
* @author yubaoshan
|
|
* @date 2020/5/11 12:59
|
|
*/
|
|
export function sysOrgDelete(parameter) {
|
|
return axios({
|
|
url: '/business/org/delete',
|
|
method: 'post',
|
|
data: parameter
|
|
})
|
|
}
|