mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
26 lines
663 B
JavaScript
26 lines
663 B
JavaScript
/**资源归属*/
|
||
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
|
||
} |