Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
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
hooloo
web
soss
Commits
cc3409dc
Commit
cc3409dc
authored
Jun 04, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改角色状态
parent
5a0d77f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/api/system/role.js
+1
-1
src/views/system/role/index.vue
+7
-1
No files found.
src/api/system/role.js
View file @
cc3409dc
...
@@ -51,7 +51,7 @@ export function changeRoleStatus(roleId, status) {
...
@@ -51,7 +51,7 @@ export function changeRoleStatus(roleId, status) {
status
status
}
}
return
request
({
return
request
({
url
:
'/system/
status
'
,
url
:
'/system/
role/changeStatus/
'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
...
...
src/views/system/role/index.vue
View file @
cc3409dc
...
@@ -87,6 +87,12 @@
...
@@ -87,6 +87,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"人员数量"
prop=
"userCount"
align=
"center"
/>
<el-table-column
label=
"人员数量"
prop=
"userCount"
align=
"center"
/>
<el-table-column
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.status=='0'"
>
启用
</span>
<span
v-if=
"scope.row.status!='0'"
>
停用
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createTime"
align=
"center"
/>
<el-table-column
label=
"创建时间"
prop=
"createTime"
align=
"center"
/>
<el-table-column
<el-table-column
label=
"操作"
label=
"操作"
...
@@ -487,7 +493,7 @@ export default {
...
@@ -487,7 +493,7 @@ export default {
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
roleIds
=
row
.
roleId
||
this
.
ids
;
const
roleIds
=
row
.
roleId
||
this
.
ids
;
this
.
$modal
this
.
$modal
.
confirm
(
'是否确认删除角色
编号为"'
+
roleIds
+
'"的数据项?'
)
.
confirm
(
'是否确认删除角色
名称为"'
+
row
.
roleName
+
'"的数据项?'
)
.
then
(
function
()
{
.
then
(
function
()
{
return
delRole
(
roleIds
);
return
delRole
(
roleIds
);
})
})
...
...
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