Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
ca27ca0e
Commit
ca27ca0e
authored
Sep 25, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rgh
parent
cd4bf5cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
14 deletions
+35
-14
index.vue
src/views/admin/user/index.vue
+35
-14
No files found.
src/views/admin/user/index.vue
View file @
ca27ca0e
...
@@ -464,15 +464,27 @@
...
@@ -464,15 +464,27 @@
set
[
formName
].
validate
(
valid
=>
{
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
addObj
(
this
.
form
)
addObj
(
this
.
form
)
.
then
(()
=>
{
.
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
status
==
200
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
"添加成功"
,
type
:
'success'
,
duration
:
2000
});
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
response
.
message
,
type
:
'error'
,
duration
:
2000
});
}
this
.
dialogFormVisible
=
false
;
this
.
dialogFormVisible
=
false
;
this
.
getList
();
this
.
getList
();
this
.
$notify
({
title
:
'成功'
,
message
:
'创建成功'
,
type
:
'success'
,
duration
:
2000
});
})
})
}
else
{
}
else
{
return
false
;
return
false
;
...
@@ -510,16 +522,25 @@
...
@@ -510,16 +522,25 @@
}
else
{
}
else
{
this
.
form
.
password
=
undefined
;
this
.
form
.
password
=
undefined
;
}
}
putObj
(
this
.
form
.
id
,
this
.
form
).
then
(()
=>
{
putObj
(
this
.
form
.
id
,
this
.
form
).
then
(
response
=>
{
if
(
response
.
status
==
200
)
{
this
.
$notify
({
title
:
'成功'
,
message
:
'编辑成功'
,
type
:
'success'
,
duration
:
2000
});
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
response
.
message
,
type
:
'error'
,
duration
:
2000
});
}
this
.
dialogFormVisible
=
false
;
this
.
dialogFormVisible
=
false
;
this
.
getList
();
this
.
getList
();
this
.
form
.
password
=
undefined
;
this
.
form
.
password
=
undefined
;
this
.
$notify
({
title
:
'成功'
,
message
:
'编辑成功'
,
type
:
'success'
,
duration
:
2000
});
});
});
}
else
{
}
else
{
return
false
;
return
false
;
...
...
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