Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
seeta-device
/
deviceManage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ec81db90
authored
Sep 27, 2021
by
温丽香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed账户
1 parent
f473041e
Pipeline
#4720
passed
in 2 minutes 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
8 deletions
src/views/Account/index.vue
src/views/Account/index.vue
View file @
ec81db9
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
<div
slot=
"body"
class=
"popup-body"
>
<div
slot=
"body"
class=
"popup-body"
>
<st-form
<st-form
label-width=
"90px"
label-width=
"90px"
style=
"height: 440px"
ref=
"form"
ref=
"form"
:model=
"form"
:model=
"form"
:rules=
"rules"
>
:rules=
"rules"
>
...
@@ -92,6 +93,17 @@
...
@@ -92,6 +93,17 @@
<st-form-item
v-if=
"submitType === 'edit'"
:label=
"'新密码:'"
prop=
"new_passwordd"
>
<st-form-item
v-if=
"submitType === 'edit'"
:label=
"'新密码:'"
prop=
"new_passwordd"
>
<st-input
v-model=
"form.new_passwordd"
type=
"password"
></st-input>
<st-input
v-model=
"form.new_passwordd"
type=
"password"
></st-input>
</st-form-item>
</st-form-item>
<st-form-item
:label=
"'备注:'"
>
<st-input
type=
"textarea"
placeholder=
"请输入"
v-model=
"form.description"
maxlength=
"100"
show-word-limit
>
</st-input>
</st-form-item>
</st-form>
</st-form>
</div>
</div>
<div
slot=
"footer"
class=
"popup-footer flex right"
>
<div
slot=
"footer"
class=
"popup-footer flex right"
>
...
@@ -141,7 +153,14 @@ export default {
...
@@ -141,7 +153,14 @@ export default {
},
},
{
{
label
:
'角色'
,
label
:
'角色'
,
render
:
'role'
render
:
row
=>
{
switch
(
row
.
role
)
{
case
'operator'
:
return
'操作员'
case
'admin'
:
return
'管理员'
case
'watcher'
:
return
'观察员'
default
:
return
''
}
}
},
},
{
{
label
:
'邮箱'
,
label
:
'邮箱'
,
...
@@ -157,9 +176,7 @@ export default {
...
@@ -157,9 +176,7 @@ export default {
},
},
{
{
label
:
'备注'
,
label
:
'备注'
,
render
:
()
=>
{
render
:
'description'
return
'-'
}
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
...
@@ -206,9 +223,8 @@ export default {
...
@@ -206,9 +223,8 @@ export default {
switch
(
this
.
submitType
)
{
switch
(
this
.
submitType
)
{
case
'create'
:
case
'create'
:
submitForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
submitForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
delete
submitForm
.
email
delete
submitForm
.
confirmPwd
delete
submitForm
.
confirmPwd
submitForm
.
creater
=
'admin'
submitForm
.
creater
=
browserStorage
.
getItem
(
'username'
)
res
=
await
createUser
(
submitForm
)
res
=
await
createUser
(
submitForm
)
if
(
res
&&
res
.
data
&&
res
.
data
.
code
===
0
)
{
if
(
res
&&
res
.
data
&&
res
.
data
.
code
===
0
)
{
this
.
getData
()
this
.
getData
()
...
@@ -217,9 +233,8 @@ export default {
...
@@ -217,9 +233,8 @@ export default {
break
break
case
'edit'
:
case
'edit'
:
submitForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
submitForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
delete
submitForm
.
email
delete
submitForm
.
confirmPwd
delete
submitForm
.
confirmPwd
submitForm
.
creater
=
'admin'
submitForm
.
creater
=
browserStorage
.
getItem
(
'username'
)
res
=
await
editUser
(
submitForm
)
res
=
await
editUser
(
submitForm
)
if
(
res
&&
res
.
data
&&
res
.
data
.
code
===
0
)
{
if
(
res
&&
res
.
data
&&
res
.
data
.
code
===
0
)
{
this
.
getData
()
this
.
getData
()
...
@@ -270,6 +285,23 @@ export default {
...
@@ -270,6 +285,23 @@ export default {
</
script
>
</
script
>
<
style
lang=
"sass"
scoped
>
<
style
lang=
"sass"
scoped
>
.update-dialog
::v-deep
input
&
::placeholder
font-size
:
14px
font-family
:
PingFangSC-Regular
,
PingFang
SC
font-weight
:
400
color
:
#999999
::v-deep
.el-input__inner
,
::v-deep
.el-textarea
,
::v-deep
.el-textarea__inner
font-size
:
14px
font-family
:
PingFangSC-Regular
,
PingFang
SC
font-weight
:
400
color
:
#333
&
::placeholder
font-size
:
14px
font-family
:
PingFangSC-Regular
,
PingFang
SC
font-weight
:
400
color
:
#999999
.popup-body
.popup-body
::v-deep
.el-form-item
::v-deep
.el-form-item
height
:
32px
height
:
32px
...
...
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