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
f3fbbb84
Commit
f3fbbb84
authored
Jun 04, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
a645ed84
05c94b84
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
242 additions
and
54 deletions
+242
-54
.beagle.yml
.beagle.yml
+2
-2
build/conf.yaml
build/conf.yaml
+3
-3
build/dockerfile
build/dockerfile
+2
-1
src/pages/user/user_info.vue
src/pages/user/user_info.vue
+235
-48
No files found.
.beagle.yml
View file @
f3fbbb84
...
@@ -31,7 +31,7 @@ pipeline:
...
@@ -31,7 +31,7 @@ pipeline:
image
:
registry.cn-qingdao.aliyuncs.com/wod-devops/docker:1.0
image
:
registry.cn-qingdao.aliyuncs.com/wod-devops/docker:1.0
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
base
:
registry.cn-qingdao.aliyuncs.com/wod
/nginx:1.15.9-alpine
base
:
registry.cn-qingdao.aliyuncs.com/wod
-devops/ui-base:2.0.0
repo
:
apaas/apaas-v3-ui
repo
:
apaas/apaas-v3-ui
version
:
1.0.0
version
:
1.0.0
channel
:
alpha
channel
:
alpha
...
@@ -42,7 +42,7 @@ pipeline:
...
@@ -42,7 +42,7 @@ pipeline:
image
:
registry.cn-qingdao.aliyuncs.com/wod-devops/docker:1.0
image
:
registry.cn-qingdao.aliyuncs.com/wod-devops/docker:1.0
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
base
:
registry.cn-qingdao.aliyuncs.com/wod
/nginx:1.15.9-alpine
base
:
registry.cn-qingdao.aliyuncs.com/wod
-devops/ui-base:2.0.0
repo
:
apaas/apaas-v3-ui
repo
:
apaas/apaas-v3-ui
version
:
1.0.0
version
:
1.0.0
registry
:
hub.wodcloud.com
registry
:
hub.wodcloud.com
...
...
build/conf.yaml
View file @
f3fbbb84
index
:
/awecloud/ui/
index
:
/apaas/ui/
login
:
/awecloud/dex/login
login
:
/iam/login/#/login
logout
:
/awecloud/dex/logout
logout
:
/iam/api/logout
\ No newline at end of file
\ No newline at end of file
build/dockerfile
View file @
f3fbbb84
FROM
{{ BASEIMAGE }}
FROM
{{ BASEIMAGE }}
MAINTAINER
{{ AUTHOR }}
MAINTAINER
{{ AUTHOR }}
LABEL
Author={{ AUTHOR }} Name={{ PROJECT }} Version={{ VERSION }}
LABEL
Author={{ AUTHOR }} Name={{ PROJECT }} Version={{ VERSION }}
ADD
./dist /usr/share/nginx/html
ADD
./dist /www
\ No newline at end of file
ADD
./build/conf.yaml /www/conf.yaml
\ No newline at end of file
src/pages/user/user_info.vue
View file @
f3fbbb84
...
@@ -9,53 +9,109 @@
...
@@ -9,53 +9,109 @@
<el-tab-pane
label=
"个人信息详情"
name=
"0"
></el-tab-pane>
<el-tab-pane
label=
"个人信息详情"
name=
"0"
></el-tab-pane>
<el-tab-pane
label=
"业务系统详情"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"业务系统详情"
name=
"1"
></el-tab-pane>
</el-tabs>
</el-tabs>
<el-form
ref=
"form"
:model=
"form"
>
<div
v-if=
"activeName == '0'"
>
<el-form-item
class=
"info_item"
>
<el-form
ref=
"form"
:model=
"form"
>
<p>
账号:
</p>
<el-form-item
class=
"info_item"
>
<el-input
v-model=
"form.accountNo"
></el-input>
<p>
账号:
</p>
</el-form-item>
<el-input
v-model=
"form.accountNo"
></el-input>
<el-form-item
class=
"info_item info_item_right_btn"
>
</el-form-item>
<p>
密码:
</p>
<el-form-item
class=
"info_item info_item_right_btn"
>
<el-input
v-model=
"form.password"
></el-input>
<p>
密码:
</p>
<el-button
class=
"option_btn"
@
click=
"changePassword"
>
修改密码
</el-button>
<el-input
v-model=
"form.password"
></el-input>
</el-form-item>
<el-button
class=
"option_btn"
@
click=
"changePassword"
>
修改密码
</el-button>
<el-form-item
class=
"info_item"
>
</el-form-item>
<p>
昵称:
</p>
<el-form-item
class=
"info_item"
>
<el-input
v-model=
"form.nickname"
></el-input>
<p>
昵称:
</p>
</el-form-item>
<el-input
v-model=
"form.nickname"
></el-input>
<el-form-item
class=
"info_item"
>
</el-form-item>
<p>
头像:
</p>
<el-form-item
class=
"info_item"
>
<upload-file
<p>
头像:
</p>
:multiple=
"false"
<upload-file
:max=
"1"
:multiple=
"false"
type=
"cropper"
:max=
"1"
:readOnly=
"false"
type=
"cropper"
:list=
"imgList"
:readOnly=
"false"
@
getNewList=
"getNewList"
:list=
"imgList"
></upload-file>
@
getNewList=
"getNewList"
</el-form-item>
></upload-file>
<el-form-item
class=
"info_item"
>
</el-form-item>
<p>
联系人:
</p>
<el-form-item
class=
"info_item"
>
<el-input
v-model=
"form.contactPerson"
></el-input>
<p>
联系人:
</p>
</el-form-item>
<el-input
v-model=
"form.contactPerson"
></el-input>
<el-form-item
class=
"info_item"
>
</el-form-item>
<p>
手机号:
</p>
<el-form-item
class=
"info_item"
>
<el-input
v-model=
"form.phone"
></el-input>
<p>
手机号:
</p>
</el-form-item>
<el-input
v-model=
"form.phone"
></el-input>
<el-form-item
class=
"info_item"
>
</el-form-item>
<p>
邮箱:
</p>
<el-form-item
class=
"info_item"
>
<el-input
v-model=
"form.email"
></el-input>
<p>
邮箱:
</p>
</el-form-item>
<el-input
v-model=
"form.email"
></el-input>
<el-form-item
class=
"info_item"
>
</el-form-item>
<p>
组织机构:
</p>
<el-form-item
class=
"info_item"
>
<el-input
v-model=
"form.organization"
></el-input>
<p>
组织机构:
</p>
</el-form-item>
<el-input
v-model=
"form.organization"
></el-input>
<el-form-item
class=
"info_item info_item_right_btn"
>
</el-form-item>
<p>
当前角色:
</p>
<el-form-item
class=
"info_item info_item_right_btn"
>
<el-input
v-model=
"form.role"
></el-input>
<p>
当前角色:
</p>
<el-button
class=
"option_btn"
@
click=
"upLevel"
>
升级为开发者
</el-button>
<el-input
v-model=
"form.role"
></el-input>
</el-form-item>
<el-button
class=
"option_btn"
@
click=
"upLevel"
>
升级为开发者
</el-button>
</el-form>
</el-form-item>
</el-form>
</div>
<div
v-if=
"activeName == '1'"
>
<el-form
ref=
"formBusiness"
:model=
"formBusiness"
>
<el-form-item
class=
"info_item"
>
<p>
业务系统名:
</p>
<el-input
v-model=
"formBusiness.businessSystemName"
></el-input>
</el-form-item>
<el-form-item
class=
"info_item"
>
<p>
域名:
</p>
<el-input
v-model=
"formBusiness.domainName"
></el-input>
</el-form-item>
<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>
<el-input
v-if=
"whiteAddShow"
class=
"ip_input"
v-model=
"newIpWhite"
@
keyup.enter.native=
"watchKeyboardWhite"
></el-input>
<el-button
class=
"add_ip"
@
click=
"addIp('white')"
icon=
"el-icon-plus"
>
增加
</el-button>
</div>
</el-form-item>
<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>
<el-input
v-if=
"blackAddShow"
class=
"ip_input"
v-model=
"newIpBlack"
@
keyup.enter.native=
"watchKeyboardBlack"
></el-input>
<el-button
class=
"add_ip"
@
click=
"addIp('black')"
icon=
"el-icon-plus"
>
增加
</el-button>
</div>
</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-button
class=
"option_btn"
@
click=
"copyKey"
>
复制
</el-button>
<el-button
class=
"option_btn_gray"
@
click=
"upLevel"
>
重置
</el-button>
</el-form-item>
<el-form-item
class=
"info_item"
>
<p>
描述:
</p>
<el-input
type=
"textarea"
:rows=
"2"
v-model=
"formBusiness.description"
></el-input>
</el-form-item>
</el-form>
</div>
<div
class=
"btn_footer"
>
<div
class=
"btn_footer"
>
<el-button
class=
"previous"
@
click=
"previous"
>
取消
</el-button>
<el-button
class=
"previous"
@
click=
"previous"
>
取消
</el-button>
<el-button
class=
"registe"
@
click=
"registe"
>
修改
</el-button>
<el-button
class=
"registe"
@
click=
"registe"
>
修改
</el-button>
...
@@ -112,6 +168,32 @@ export default {
...
@@ -112,6 +168,32 @@ export default {
role
:
""
role
:
""
},
},
imgList
:
[],
imgList
:
[],
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
"
}
],
key
:
""
,
description
:
""
},
whiteAddShow
:
false
,
blackAddShow
:
false
,
newIpWhite
:
""
,
newIpBlack
:
""
,
diaPassWord
:
false
diaPassWord
:
false
}),
}),
mounted
()
{
mounted
()
{
...
@@ -135,6 +217,50 @@ export default {
...
@@ -135,6 +217,50 @@ export default {
submitChangePwd
()
{},
submitChangePwd
()
{},
upLevel
()
{
upLevel
()
{
this
.
diaPassWord
=
true
;
this
.
diaPassWord
=
true
;
},
copyKey
()
{
this
.
$refs
.
keys
.
select
();
document
.
execCommand
(
"
Copy
"
);
this
.
$message
({
message
:
"
复制成功
"
,
type
:
"
success
"
});
},
delIp
(
ip
,
type
)
{
console
.
log
(
ip
,
type
);
},
addIp
(
type
)
{
if
(
type
==
"
white
"
)
{
this
.
whiteAddShow
?
this
.
$message
({
message
:
"
请按回车完善本次ip填写
"
,
type
:
"
error
"
})
:
(
this
.
whiteAddShow
=
true
);
}
else
if
(
type
==
"
black
"
)
{
this
.
blackAddShow
?
this
.
$message
({
message
:
"
请按回车完善本次ip填写
"
,
type
:
"
error
"
})
:
(
this
.
blackAddShow
=
true
);
}
},
watchKeyboardWhite
()
{
let
self
=
this
;
if
(
self
.
newIpWhite
!=
""
)
{
self
.
formBusiness
.
ip_white
.
push
({
ip
:
self
.
newIpWhite
,
id
:
0
});
self
.
whiteAddShow
=
false
;
self
.
newIpWhite
=
""
;
}
},
watchKeyboardBlack
()
{
let
self
=
this
;
if
(
self
.
newIpBlack
!=
""
)
{
self
.
formBusiness
.
ip_black
.
push
({
ip
:
self
.
newIpBlack
,
id
:
0
});
self
.
blackAddShow
=
false
;
self
.
newIpBlack
=
""
;
}
}
}
}
}
};
};
...
@@ -147,7 +273,7 @@ export default {
...
@@ -147,7 +273,7 @@ export default {
.btn_footer
{
.btn_footer
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
margin
:
4
0px
20px
10px
;
margin
:
6
0px
20px
10px
;
}
}
.previous
{
.previous
{
width
:
100px
;
width
:
100px
;
...
@@ -165,6 +291,12 @@ export default {
...
@@ -165,6 +291,12 @@ export default {
border-radius
:
8px
;
border-radius
:
8px
;
color
:
#f8f9fd
;
color
:
#f8f9fd
;
}
}
.option_btn_gray
{
width
:
124px
;
background-color
:
#e3e5ef
;
border-radius
:
8px
;
color
:
#0f2683
;
}
.info_item
{
.info_item
{
width
:
70%
;
width
:
70%
;
min-width
:
600px
;
min-width
:
600px
;
...
@@ -191,12 +323,60 @@ export default {
...
@@ -191,12 +323,60 @@ export default {
justify-content
:
flex-end
;
justify-content
:
flex-end
;
margin
:
20px
0
0
;
margin
:
20px
0
0
;
}
}
.ip_block
{
border-radius
:
8px
;
border
:
solid
1px
#e3e5ef
;
padding
:
10px
0
0
10px
;
line-height
:
24px
;
}
.ip_item
{
display
:
inline-block
;
position
:
relative
;
background-color
:
#e6ebfe
;
border-radius
:
4px
;
color
:
#0f2683
;
font-size
:
12px
;
line-height
:
24px
;
padding
:
0
26px
0
8px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
}
.ip_del
{
position
:
absolute
;
right
:
8px
;
top
:
6px
;
font-size
:
14px
;
color
:
#6573ae
;
cursor
:
pointer
;
}
.ip_del
:hover
{
color
:
#e56600
;
}
.add_ip
{
background-color
:
#495feb
;
border-radius
:
4px
;
color
:
#f8f9fd
;
font-size
:
12px
;
line-height
:
24px
;
padding
:
0
8px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
}
.ip_input
{
width
:
110px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
}
</
style
>
</
style
>
<
style
>
<
style
>
.info_item_right_btn
.el-input
{
.info_item_right_btn
.el-input
{
width
:
calc
(
100%
-
140px
);
width
:
calc
(
100%
-
140px
);
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.info_item_right_btn_2
.el-input
{
width
:
calc
(
100%
-
280px
);
margin-right
:
10px
;
}
.info_block
.el-dialog__wrapper
{
.info_block
.el-dialog__wrapper
{
padding-left
:
180px
;
padding-left
:
180px
;
}
}
...
@@ -209,4 +389,11 @@ export default {
...
@@ -209,4 +389,11 @@ export default {
.info_block
.el-dialog__body
{
.info_block
.el-dialog__body
{
padding
:
15px
20px
20px
;
padding
:
15px
20px
20px
;
}
}
.ip_input
.el-input__inner
{
border-radius
:
4px
;
padding
:
0
8px
;
font-size
:
12px
;
line-height
:
24px
;
height
:
24px
;
}
</
style
>
</
style
>
\ No newline at end of file
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