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
844439d1
Commit
844439d1
authored
May 25, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码
parent
824e58ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
index.vue
src/views/admin/user/index.vue
+10
-1
No files found.
src/views/admin/user/index.vue
View file @
844439d1
...
...
@@ -49,6 +49,9 @@
<el-form-item
v-if=
"dialogStatus == 'create'"
label=
"密码"
placeholder=
"请输入密码"
prop=
"password"
>
<el-input
type=
"password"
v-model=
"form.password"
></el-input>
</el-form-item>
<el-form-item
v-if=
"dialogStatus == 'update'"
label=
"密码"
placeholder=
"请输入密码"
>
<el-input
type=
"password"
v-model=
"form.passwordEdit"
></el-input>
</el-form-item>
<el-form-item
label=
"性别"
>
<el-select
class=
"filter-item"
v-model=
"form.sex"
placeholder=
"请选择"
>
<el-option
v-for=
"item in sexOptions"
:key=
"item"
:label=
"item"
:value=
"item"
>
</el-option>
...
...
@@ -128,6 +131,7 @@ export default {
zoneId
:
undefined
,
companyId
:
undefined
,
password
:
undefined
,
passwordEdit
:
undefined
,
description
:
undefined
,
dataLimit
:
[],
members
:
[],
...
...
@@ -365,13 +369,18 @@ export default {
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
dialogFormVisible
=
false
;
if
(
this
.
form
.
passwordEdit
){
this
.
form
.
password
=
this
.
form
.
passwordEdit
;
this
.
form
.
passwordEdit
=
undefined
;
}
else
{
this
.
form
.
password
=
undefined
;
}
putObj
(
this
.
form
.
id
,
this
.
form
).
then
(()
=>
{
this
.
dialogFormVisible
=
false
;
this
.
getList
();
this
.
$notify
({
title
:
'成功'
,
message
:
'
创建
成功'
,
message
:
'
编辑
成功'
,
type
:
'success'
,
duration
:
2000
});
...
...
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