菜单管理

This commit is contained in:
Vergil
2020-03-27 10:32:27 +08:00
parent 8432ac298e
commit ba367fa90e
2 changed files with 54 additions and 12 deletions

View File

@@ -111,7 +111,7 @@ export function submitAdd(name) {
})
}
// 查询二级模块分给那些角色
export function searchJS(name) {
export function getRoleTitle() {
return request({
url: '',
method: 'post',
@@ -119,12 +119,25 @@ export function searchJS(name) {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '3',
name: ` select 角色功能,title from
name: ` select distinct title from
基础表_模块信息 inner join 基础表_角色模块信息 on 基础表_角色模块信息.id = 基础表_模块信息.id
inner join 菜单系统模块_项目角色 on 基础表_角色模块信息.角色编号 = 菜单系统模块_项目角色.角色编号
order by title`,
param: `模块名称=${name}`
order by title`
}
})
}
export function getRoleNameasd(name) {
return request({
url: '',
method: 'post',
data: {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '3',
name: ` select distinct 角色功能 from
基础表_模块信息 inner join 基础表_角色模块信息 on 基础表_角色模块信息.id = 基础表_模块信息.id
inner join 菜单系统模块_项目角色 on 基础表_角色模块信息.角色编号 = 菜单系统模块_项目角色.角色编号
where title=\'${name}\'`
}
})
}