Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
authority
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5100a810
authored
Sep 18, 2018
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
role删除接口
1 parent
4cc488d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/views/customer/role/index.vue
src/views/customer/role/index.vue
View file @
5100a81
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<
script
>
<
script
>
import
{
RoleCreate
,
RoleDetail
,
UserDetail
}
from
'@/components/index'
import
{
RoleCreate
,
RoleDetail
,
UserDetail
}
from
'@/components/index'
// 接口
// 接口
import
{
getRoleList
}
from
'@/api/api'
import
{
getRoleList
,
deleteRoleById
}
from
'@/api/api'
import
{
roleCreateStructure
,
userRoleDetailColumn
,
userRoleDetailConsole
}
from
'@/common/commonConst'
import
{
roleCreateStructure
,
userRoleDetailColumn
,
userRoleDetailConsole
}
from
'@/common/commonConst'
export
default
{
export
default
{
name
:
'role'
,
name
:
'role'
,
...
@@ -132,6 +132,8 @@ export default {
...
@@ -132,6 +132,8 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
// 删除角色,根据返回的code值来判断是否删除成功
this
.
deleteRole
(
rows
[
index
].
id
)
rows
.
splice
(
index
,
1
)
rows
.
splice
(
index
,
1
)
this
.
message
(
'删除成功'
,
'success'
)
this
.
message
(
'删除成功'
,
'success'
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -162,6 +164,14 @@ export default {
...
@@ -162,6 +164,14 @@ export default {
console
.
log
(
err
)
console
.
log
(
err
)
})
})
},
},
// 删除角色
deleteRole
(
params
)
{
deleteRoleById
.
req
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
},
// 接口请求-end---------------------------------------
// 接口请求-end---------------------------------------
// 新增用户到页面
// 新增用户到页面
aaaddRole
(
data
)
{
aaaddRole
(
data
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment