mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
26
api/modules/resowner.js
Normal file
26
api/modules/resowner.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/**资源归属*/
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
|
||||
/**
|
||||
* 按体系目录提取全量树形结构数据
|
||||
* 包含数据全
|
||||
* @param {*} catalog 体系目录 1:组织体系目录 2:培训体系目录
|
||||
*/
|
||||
const tree = function(catalog) {
|
||||
return ajax.get(`/xboe/resowner/tree-list?catalog=${catalog}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按体系目录查询列表
|
||||
* @param {*} parentId 上级ID 根目录为 -1
|
||||
* @param {*} catalog 体系目录 1:组织体系目录 2:培训体系目录
|
||||
* @returns
|
||||
*/
|
||||
const list = function(catalog, parentId) {
|
||||
return ajax.get(`/xboe/resowner/list?catalog=${catalog}&parentId=${parentId}`);
|
||||
}
|
||||
export default {
|
||||
tree,
|
||||
list
|
||||
}
|
||||
Reference in New Issue
Block a user