Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
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
other-project
frontend
Commits
4965553f
Commit
4965553f
authored
Feb 05, 2020
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理增删改查功能完成
parent
db31f240
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
user.vue
src/views/modules/api/sys/user.vue
+5
-4
No files found.
src/views/modules/api/sys/user.vue
View file @
4965553f
...
...
@@ -154,7 +154,7 @@
// 删除
deleteHandle
(
id
)
{
var
userIds
=
id
?
[
id
]
:
this
.
dataListSelections
.
map
(
item
=>
{
return
item
.
userI
d
return
item
.
i
d
})
this
.
$confirm
(
`确定对[id=
${
userIds
.
join
(
','
)}
]进行[
${
id
?
'删除'
:
'批量删除'
}
]操作?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -166,7 +166,9 @@
method
:
'post'
,
data
:
this
.
$http
.
adornData
(
userIds
,
false
)
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
200
)
{
if
(
data
){
this
.
$message
.
error
(
data
.
message
);
}
else
{
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
,
...
...
@@ -175,9 +177,8 @@
this
.
getDataList
()
}
})
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}).
catch
(()
=>
{})
}
...
...
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