mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
Merge remote-tracking branch 'origin/dev0731' into dev0731
This commit is contained in:
@@ -102,6 +102,7 @@ const queryComments = function (pageSize) {
|
||||
const majorTypes = function () {
|
||||
return ajax.get('/xboe/m/boe/cases/majorTypes');
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情新*/
|
||||
const details = function (id, addView) {
|
||||
|
||||
@@ -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}¤t=${current}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按父ID查询列表
|
||||
@@ -24,5 +35,6 @@ const list = function(sysResType, parentId) {
|
||||
|
||||
export default {
|
||||
tree,
|
||||
list
|
||||
}
|
||||
list,
|
||||
treeList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user