Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
94865b4f
Commit
94865b4f
authored
Jun 23, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人档案
parent
6773d688
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
29 deletions
+15
-29
src/pages/user/user_info.vue
src/pages/user/user_info.vue
+14
-28
src/request/api/user.js
src/request/api/user.js
+1
-1
No files found.
src/pages/user/user_info.vue
View file @
94865b4f
...
...
@@ -73,9 +73,9 @@
<el-form-item
class=
"info_item"
>
<p>
IP(白名单):
</p>
<div
class=
"ip_block"
>
<div
v-for=
"item in formBusiness.ip_white"
:key=
"item
.id
"
class=
"ip_item"
>
{{
item
.
ip
}}
<i
class=
"el-icon-close ip_del"
@
click=
"delIp(item
.ip
, 'white')"
></i>
<div
v-for=
"item in formBusiness.ip_white"
:key=
"item"
class=
"ip_item"
>
{{
item
}}
<i
class=
"el-icon-close ip_del"
@
click=
"delIp(item, 'white')"
></i>
</div>
<el-input
v-if=
"whiteAddShow"
...
...
@@ -89,9 +89,9 @@
<el-form-item
class=
"info_item"
>
<p>
IP(黑名单):
</p>
<div
class=
"ip_block"
>
<div
v-for=
"item in formBusiness.ip_black"
:key=
"item
.id
"
class=
"ip_item"
>
{{
item
.
ip
}}
<i
class=
"el-icon-close ip_del"
@
click=
"delIp(item
.ip
, 'black')"
></i>
<div
v-for=
"item in formBusiness.ip_black"
:key=
"item"
class=
"ip_item"
>
{{
item
}}
<i
class=
"el-icon-close ip_del"
@
click=
"delIp(item, 'black')"
></i>
</div>
<el-input
v-if=
"blackAddShow"
...
...
@@ -104,7 +104,7 @@
</el-form-item>
<el-form-item
class=
"info_item info_item_right_btn_2"
>
<p>
密钥:
</p>
<el-input
ref=
"keys"
v-model=
"formBusiness.key"
></el-input>
<el-input
ref=
"keys"
v-model=
"formBusiness.key"
:disabled=
"true"
></el-input>
<el-button
class=
"option_btn"
@
click=
"copyKey"
>
复制
</el-button>
<el-button
class=
"option_btn_gray"
@
click=
"resetKey"
>
重置
</el-button>
</el-form-item>
...
...
@@ -198,22 +198,8 @@ export default {
formBusiness
:
{
businessSystemName
:
""
,
domainName
:
""
,
ip_white
:
[
{
ip
:
"
255.255.255.255
"
,
id
:
"
123789244
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
123576744
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
123467866874
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
1226783544
"
}
],
ip_black
:
[
{
ip
:
"
255.255.255.255
"
,
id
:
"
12773844
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
12561344
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
1235672344
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
12342314
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
12386444
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
12783544
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
121678344
"
},
{
ip
:
"
255.255.255.255
"
,
id
:
"
127678344
"
}
],
ip_white
:
[],
ip_black
:
[],
key
:
""
,
description
:
""
},
...
...
@@ -328,7 +314,7 @@ export default {
origin_password
:
this
.
form
.
passwordOld
,
new_password
:
this
.
form
.
passwordNew
}
}
}
;
this
.
$api
.
user
.
editUserPassword
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
...
...
@@ -365,12 +351,12 @@ export default {
this
.
$api
.
authority
.
updateLevel
().
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
"
重置密钥
成功
"
,
message
:
"
申请升级开发者
成功
"
,
type
:
"
success
"
});
}
else
{
this
.
$message
({
message
:
"
重置密钥
失败
"
,
message
:
"
申请升级开发者
失败
"
,
type
:
"
error
"
});
}
...
...
@@ -407,7 +393,7 @@ export default {
watchKeyboardWhite
()
{
let
self
=
this
;
if
(
self
.
newIpWhite
!=
""
)
{
self
.
formBusiness
.
ip_white
.
push
(
{
ip
:
self
.
newIpWhite
,
id
:
0
}
);
self
.
formBusiness
.
ip_white
.
push
(
self
.
newIpWhite
);
self
.
whiteAddShow
=
false
;
self
.
newIpWhite
=
""
;
}
...
...
@@ -415,7 +401,7 @@ export default {
watchKeyboardBlack
()
{
let
self
=
this
;
if
(
self
.
newIpBlack
!=
""
)
{
self
.
formBusiness
.
ip_black
.
push
(
{
ip
:
self
.
newIpBlack
,
id
:
0
}
);
self
.
formBusiness
.
ip_black
.
push
(
self
.
newIpBlack
);
self
.
blackAddShow
=
false
;
self
.
newIpBlack
=
""
;
}
...
...
src/request/api/user.js
View file @
94865b4f
...
...
@@ -44,7 +44,7 @@ const user = {
return
axios
.
get
(
`/apaas/backmgt/user/detail/
${
params
.
id
}
`
);
},
editUserPassword
(
params
)
{
return
axios
.
post
(
`/apaas/backmgt/user/password/
${
params
.
id
}
`
,
params
.
form
);
return
axios
.
post
(
`/apaas/backmgt/user/password/
${
params
.
id
}
`
,
qs
.
stringify
(
params
.
form
)
);
},
}
...
...
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