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
921f0cac
Commit
921f0cac
authored
Apr 12, 2021
by
温海元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some Capital files like Index
parent
6db13a48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
69 deletions
+0
-69
Index.vue
src/views/index/Index.vue
+0
-69
No files found.
src/views/index/Index.vue
deleted
100644 → 0
View file @
6db13a48
<
template
>
<div
class=
"main"
>
<div
class=
"container"
>
<h3
class=
"title"
>
QA测试平台
</h3>
<el-select
v-model=
"namespace"
placeholder=
"请选择环境"
@
change=
"handleSelectChange"
style=
"width: 100%; margin-top: 20px"
>
<el-option
v-for=
"item in nsOptions"
:key=
"item.key"
:label=
"item.desc"
:value=
"item.key"
></el-option>
</el-select>
<el-button
type=
"primary"
style=
"width: 100%; margin-top: 40px;"
@
click=
"login"
>
登录
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
getNamespaceList
}
from
'
@/api/getXyqbData/
'
export
default
{
data
()
{
return
{
namespace
:
''
,
nsOptions
:
[]
}
},
methods
:
{
// 给store.state.env赋值
handleSelectChange
()
{
window
.
sessionStorage
.
setItem
(
'
env
'
,
this
.
namespace
)
},
login
()
{
if
(
this
.
namespace
===
''
)
{
return
this
.
$message
.
error
(
'
请先选择环境
'
)
}
this
.
$router
.
push
(
'
/main
'
)
},
getNamespaceList
()
{
getNamespaceList
().
then
((
resp
)
=>
{
this
.
nsOptions
=
resp
.
data
.
data
})
}
},
created
()
{
this
.
getNamespaceList
()
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.main {
position: fixed;
height: 100%;
width: 100%;
// background-color: #2d3a4b;
background-image: url('../../assets/image/quant.png');
background-size: contain;
.container {
height: 300px;
width: 400px;
margin: 200px auto;
padding: 20px;
}
}
.title {
text-align: center;
font-size: 26px;
color: #ffffff;
}
.area {
margin-top: 40px;
}
</
style
>
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