mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
28
api/system/organiza.js
Normal file
28
api/system/organiza.js
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user