Files
learning-system-mobile/api/system/organiza.js
2022-05-29 18:59:24 +08:00

29 lines
604 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import ajax from '@/utils/xajax.js'
/**
* 全量列表树,返回所有的机构树形数据,且机构数据项多
* @param {
* name 机构名称
* parentId 父节点ID
* } query
* @returns
*/
const treeList = function (query) {
return ajax.get('/xboe/org/tree-list', {params:query});
}
/**
* 按父节点ID查询机构列表适合构建动态机构树
* @param parentId 父节点ID 根目录为 -1
* @returns
*/
const listByParent = function (parentId) {
return ajax.get('/xboe/org/list-by-parent?parentId='+parentId);
}
export default {
treeList,
listByParent
}