Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform-ui
Commits
1b0199ea
Commit
1b0199ea
authored
Aug 27, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c6e18d10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
24 deletions
+32
-24
EnvDetail.vue
src/views/docker/EnvDetail.vue
+2
-0
Aside.vue
src/views/layout/leftAside/Aside.vue
+2
-3
Login.vue
src/views/login/Login.vue
+28
-21
No files found.
src/views/docker/EnvDetail.vue
View file @
1b0199ea
...
@@ -414,6 +414,8 @@ export default {
...
@@ -414,6 +414,8 @@ export default {
const
serviceList
=
resp
.
data
.
data
const
serviceList
=
resp
.
data
.
data
this
.
array2Object
(
serviceList
)
this
.
array2Object
(
serviceList
)
tLoading
.
close
()
tLoading
.
close
()
}).
catch
(()
=>
{
tLoading
.
close
()
})
})
},
},
// 刷新,重新获取服务列表
// 刷新,重新获取服务列表
...
...
src/views/layout/leftAside/Aside.vue
View file @
1b0199ea
<
template
>
<
template
>
<div
style=
"height: 100%"
>
<div
style=
"height: 100%"
>
<div
class=
"head"
>
<div
class=
"head"
>
<
img
src=
"../../../assets/image/QA.png"
alt
/
>
<
!--
<img
src=
"../../../assets/image/QA.png"
alt
/>
--
>
<span>
测试平台
</span>
<span>
测试平台
</span>
</div>
</div>
<!--
<div
<!--
<div
...
@@ -155,9 +155,8 @@ export default {
...
@@ -155,9 +155,8 @@ export default {
margin: 10px 0px 0px 10px;
margin: 10px 0px 0px 10px;
}
}
> span {
> span {
font-size: 2
2
px;
font-size: 2
0
px;
color: #ffffff;
color: #ffffff;
margin-left: 15px;
}
}
}
}
...
...
src/views/login/Login.vue
View file @
1b0199ea
<
template
>
<
template
>
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"container"
>
<div
class=
"container"
>
<h3
class=
"title"
>
测试平台
</h3>
<div
class=
"loginForm"
>
<el-form
style=
"margin-left:50px"
:model=
"loginForm"
:rules=
"loginRules"
ref=
"loginFormRef"
>
<h3
class=
"title"
>
测试平台
</h3>
<el-form-item
prop=
"username"
class=
"input-style"
>
<el-form
:model=
"loginForm"
:rules=
"loginRules"
ref=
"loginFormRef"
>
<el-input
v-model=
"loginForm.username"
placeholder=
"请输入用户名"
prefix-icon=
"el-icon-user-solid"
></el-input>
<el-form-item
prop=
"username"
class=
"input-style"
>
</el-form-item>
<el-input
v-model=
"loginForm.username"
placeholder=
"请输入用户名"
prefix-icon=
"el-icon-user-solid"
></el-input>
<el-form-item
prop=
"password"
class=
"input-style"
>
</el-form-item>
<el-input
type=
"password"
@
keyup.enter.native=
"login"
v-model=
"loginForm.password"
placeholder=
"请输入用户名"
prefix-icon=
"el-icon-unlock"
show-password
></el-input>
<el-form-item
prop=
"password"
class=
"input-style"
>
</el-form-item>
<el-input
type=
"password"
@
keyup.enter.native=
"login"
v-model=
"loginForm.password"
placeholder=
"请输入用户名"
prefix-icon=
"el-icon-unlock"
show-password
></el-input>
<el-form-item
class=
"input-style"
prop=
"namespace"
>
</el-form-item>
<el-select
v-model=
"loginForm.namespace"
filterable
placeholder=
"请选择环境"
@
change=
"handleSelectChange"
style=
"width: 100%;"
>
<el-form-item
class=
"input-style"
prop=
"namespace"
>
<el-option
v-for=
"item in nsOptions"
:key=
"item.name"
:label=
"item.name"
:value=
"item.name"
></el-option>
<el-select
v-model=
"loginForm.namespace"
filterable
placeholder=
"请选择环境"
@
change=
"handleSelectChange"
style=
"width: 100%;"
>
</el-select>
<el-option
v-for=
"item in nsOptions"
:key=
"item.name"
:label=
"item.name"
:value=
"item.name"
></el-option>
</el-form-item>
</el-select>
<el-form-item
class=
"input-style"
>
</el-form-item>
<el-button
type=
"primary"
style=
"width: 100%; margin-top: 20px;"
@
click=
"login"
>
登录
</el-button>
<el-form-item
class=
"input-style"
>
</el-form-item>
<el-button
type=
"primary"
style=
"width: 100%; margin-top: 20px;"
@
click=
"login"
>
登录
</el-button>
</el-form>
</el-form-item>
</el-form>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -73,7 +75,7 @@ export default {
...
@@ -73,7 +75,7 @@ export default {
})
})
},
},
getNamespaceList
()
{
getNamespaceList
()
{
getNamespaceList
({
env
:
'
all
'
}).
then
((
resp
)
=>
{
getNamespaceList
({
env
:
'
all
'
}).
then
((
resp
)
=>
{
this
.
nsOptions
=
resp
.
data
.
data
this
.
nsOptions
=
resp
.
data
.
data
})
})
}
}
...
@@ -95,10 +97,15 @@ export default {
...
@@ -95,10 +97,15 @@ export default {
.container {
.container {
height: 300px;
height: 300px;
width: 400px;
width: 400px;
margin: 2
0
0px auto;
margin: 2
6
0px auto;
padding: 20px;
//
padding: 20px;
}
}
}
}
.loginForm {
padding: 20px;
background: rgba(50, 54, 59, 0.43);
box-shadow: 8px 5px 5px 0px rgb(36, 41, 41);
}
.title {
.title {
text-align: center;
text-align: center;
font-size: 26px;
font-size: 26px;
...
...
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