Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
d2fa76ff
Commit
d2fa76ff
authored
Jun 07, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色管理修改
parent
7766bde5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
request.js
src/utils/request.js
+1
-1
index.vue
src/views/system/role/index.vue
+33
-17
No files found.
src/utils/request.js
View file @
d2fa76ff
...
...
@@ -108,7 +108,7 @@ service.interceptors.response.use(res => {
type
:
'error'
})
return
Promise
.
reject
(
new
Error
(
message
))
}
else
if
(
code
!==
200
&&
code
!==
'E004'
)
{
}
else
if
(
code
!==
200
&&
code
!==
'E004'
&&
code
!==
4006
)
{
Message
({
message
:
message
,
type
:
'error'
,
...
...
src/views/system/role/index.vue
View file @
d2fa76ff
...
...
@@ -77,15 +77,15 @@
<div
style=
"line-height: 35px"
class=
"mb12 font-small-bold"
>
角色管理列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"roleList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<
el-table-column
align=
"center"
prop=
"businessId"
>
<template
slot=
"header"
>
<div>
角色编号
</div
>
<div>
Role Number
</div
>
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
businessId
||
'-'
}}
</
template
>
<
/el-table-column
>
<
!--
<el-table-column
align=
"center"
prop=
"businessId"
>
--
>
<!--
<template
slot=
"header"
>
--
>
<!--
<div>
角色编号
</div>
--
>
<!--
<div>
Role Number
</div>
--
>
<!--
</
template
>
--
>
<!-- <template slot-scope="scope">--
>
<!-- {{ scope.row.businessId || '-' }}-->
<!-- </template>--
>
<
!-- </el-table-column>--
>
<el-table-column
align=
"center"
prop=
"roleName"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
角色名称
</div>
...
...
@@ -688,18 +688,34 @@ export default {
if
(
this
.
form
.
businessId
!==
undefined
)
{
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
()
updateRole
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
}
else
if
(
response
.
code
===
4006
)
{
this
.
confirmLoading
=
false
this
.
$message
({
type
:
'error'
,
message
:
response
.
message
})
}
})
}
else
{
this
.
form
.
menuIds
=
this
.
getMenuAllCheckedKeys
()
addRole
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
}
else
if
(
response
.
code
===
4006
)
{
this
.
confirmLoading
=
false
this
.
$message
({
type
:
'error'
,
message
:
response
.
message
})
}
})
}
}
...
...
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