[代码完善](v2.5): v2.5 beta 菜单管理、部门管理,列表和弹窗数据懒加载

1、菜单管理表格,弹窗数据懒加载
2、部门管理表格,弹窗数据懒加载
3、角色管理,菜单分配数据懒加载
4、用户管理,左侧部门数据懒加载

2.5 Beta 详情:https://www.ydyno.com/archives/1225.html
This commit is contained in:
ZhengJie
2020-05-10 20:44:05 +08:00
parent 8393f74046
commit 38429e6f93
8 changed files with 378 additions and 67 deletions

View File

@@ -1,4 +1,5 @@
import request from '@/utils/request'
import qs from 'qs'
export function getDepts(params) {
return request({
@@ -8,6 +9,16 @@ export function getDepts(params) {
})
}
export function getSuperior(ids) {
const params = {
ids: ids
}
return request({
url: 'api/dept/superior?' + qs.stringify(params, { indices: false }),
method: 'get'
})
}
export function add(data) {
return request({
url: 'api/dept',
@@ -32,4 +43,4 @@ export function edit(data) {
})
}
export default { add, edit, del, getDepts }
export default { add, edit, del, getDepts, getSuperior }