案例和课程edit treeList

This commit is contained in:
joshen@zcwytd.com
2023-08-02 18:29:20 +08:00
parent 8b6f366c6a
commit 7cb325c38d
3 changed files with 38 additions and 15 deletions

View File

@@ -2,6 +2,7 @@
* 分类
*/
import ajax from '@/utils/xajax.js'
import request from '../unionAjax.js';
/**
* 提取全量树形结构数据
@@ -11,6 +12,16 @@ import ajax from '@/utils/xajax.js'
const tree = function(sysResType) {
return ajax.get(`/xboe/type/tree-list?sysResType=${sysResType}&status=1`);
}
/**
*
* @param {*} sysResType [1]
* @param {*} pid [字典类别码]
* @param {*} current [1当前页码]
* @returns
*/
const treeList = function(sysResType,pid,current) {
return request.get('/infrasApi',`/dict/page?type=${sysResType}&pid=${pid}&current=${current}`);
}
/**
* 按父ID查询列表
@@ -24,5 +35,6 @@ const list = function(sysResType, parentId) {
export default {
tree,
list
}
list,
treeList
}