Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_web_vue3
Commits
65ae3a6c
Commit
65ae3a6c
authored
Feb 18, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色模块数据权限功能完善
parent
0b1d0535
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
295 additions
and
142 deletions
+295
-142
index.ts
src/api/role/index.ts
+16
-1
index.vue
src/views/system/role/index.vue
+279
-141
No files found.
src/api/role/index.ts
View file @
65ae3a6c
...
...
@@ -16,7 +16,6 @@ export function getRolePage(
params
:
queryParams
,
});
}
/**
* 获取角色下拉数据
*
...
...
@@ -32,6 +31,15 @@ export function getRoleOptions(
});
}
/** 角色数据权限*/
export
function
dataScope
(
data
)
{
return
request
({
url
:
"/system/role/dataScope"
,
method
:
"put"
,
data
,
headers
:
{},
});
}
/**
* 获取角色的菜单ID集合
*
...
...
@@ -114,6 +122,13 @@ export function roleMenuTreeSelectMC(roleId: any) {
method
:
"get"
,
});
}
/** 根据角色ID查询部门树结构*/
export
function
roleDeptTreeSelect
(
roleId
:
any
,
menuId
:
any
)
{
return
request
({
url
:
"/system/dept/roleDeptTreeSelect/"
+
roleId
+
"/"
+
menuId
,
method
:
"get"
,
});
}
/**
* 查询角色详细
*
...
...
src/views/system/role/index.vue
View file @
65ae3a6c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment