Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-middle-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-middle-front
Commits
f8b8a311
Commit
f8b8a311
authored
Aug 20, 2025
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
做了角色管理做到了修改
parent
884357e6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
8 deletions
+38
-8
src/api/system/menu.js
+9
-2
src/api/system/role.js
+27
-4
src/views/system/menu/index.vue
+2
-2
src/views/system/role/index.vue
+0
-0
No files found.
src/api/system/menu.js
View file @
f8b8a311
...
@@ -57,4 +57,12 @@ export function delMenu(menuId) {
...
@@ -57,4 +57,12 @@ export function delMenu(menuId) {
url
:
'/system/menu/'
+
menuId
,
url
:
'/system/menu/'
+
menuId
,
method
:
'delete'
method
:
'delete'
})
})
}
}
\ No newline at end of file
export
function
getMenuList
(
data
)
{
return
request
({
url
:
'/user/api//sysMenu/tree/list'
,
method
:
'put'
,
data
:
data
})
}
src/api/system/role.js
View file @
f8b8a311
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 查询角色列表
// 查询角色列表
export
function
listRole
(
query
)
{
export
function
listRole
(
data
)
{
return
request
({
return
request
({
url
:
'/
system/role/list
'
,
url
:
'/
user/api/sysRole/page
'
,
method
:
'
ge
t'
,
method
:
'
pos
t'
,
params
:
query
data
:
data
})
})
}
}
...
@@ -117,3 +117,26 @@ export function deptTreeSelect(roleId) {
...
@@ -117,3 +117,26 @@ export function deptTreeSelect(roleId) {
method
:
'get'
method
:
'get'
})
})
}
}
// 编辑角色状态
export
function
roleStatusChange
(
roleBizId
,
status
)
{
return
request
({
url
:
`/user/api/sysRole/edit/status?roleBizId=
${
roleBizId
}
&status=
${
status
}
`
,
method
:
'patch'
})
}
// 查询角色详情
export
function
getRoleDetail
(
roleBizId
)
{
return
request
({
url
:
`/user/api/sysRole/detail?roleBizId=
${
roleBizId
}
`
,
method
:
'get'
})
}
// 修改角色
export
function
roleUpdate
(
data
)
{
return
request
({
url
:
'/user/api/sysRole/edit'
,
method
:
'put'
,
data
:
data
})
}
src/views/system/menu/index.vue
View file @
f8b8a311
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
>
新增
</el-button>
>
新增
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"info"
type=
"info"
plain
plain
icon=
"Sort"
icon=
"Sort"
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
</template>
</template>
<
script
setup
name=
"Menu"
>
<
script
setup
name=
"Menu"
>
import
{
addMenu
,
delMenu
,
getMenu
,
listMenu
,
updateMenu
}
from
"@/api/system/menu"
import
{
addMenu
,
delMenu
,
getMenu
,
listMenu
,
updateMenu
,
getMenuList
}
from
"@/api/system/menu"
import
SvgIcon
from
"@/components/SvgIcon"
import
SvgIcon
from
"@/components/SvgIcon"
import
IconSelect
from
"@/components/IconSelect"
import
IconSelect
from
"@/components/IconSelect"
...
...
src/views/system/role/index.vue
View file @
f8b8a311
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