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

26 lines
663 B
JavaScript
Raw Permalink 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 {*} 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
}