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
257efd23
Commit
257efd23
authored
Aug 30, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录首页更换及其他小优化
parent
ab2fa617
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
14 deletions
+16
-14
index.js
src/router/index.js
+3
-3
header.js
src/store/modules/header.js
+3
-3
DevEnv.vue
src/views/docker/DevEnv.vue
+1
-1
TestEnv.vue
src/views/docker/TestEnv.vue
+1
-1
LoginWhiteList.vue
src/views/effect/LoginWhiteList.vue
+1
-1
AsideTitle.vue
src/views/layout/rightMain/AsideTitle.vue
+1
-1
Login.vue
src/views/login/Login.vue
+5
-3
Mock.vue
src/views/mock/Mock.vue
+1
-1
No files found.
src/router/index.js
View file @
257efd23
...
...
@@ -264,16 +264,16 @@ router.beforeEach(function(to, from, next) {
var
token
=
window
.
sessionStorage
.
getItem
(
'
token
'
)
if
(
token
!==
null
)
{
if
(
to
.
path
===
'
/login
'
)
{
next
(
'
/
main
'
)
next
(
'
/
index/list
'
)
NProgress
.
done
()
// 结束Progress
}
else
if
(
to
.
path
===
'
/
main
'
)
{
}
else
if
(
to
.
path
===
'
/
index/list
'
)
{
next
()
}
else
{
var
menuList
=
window
.
sessionStorage
.
getItem
(
'
menuList
'
)
if
(
menuList
.
indexOf
(
to
.
path
)
>
-
1
)
{
next
()
}
else
{
next
(
'
/
main
'
)
next
(
'
/
index/list
'
)
NProgress
.
done
()
// 结束Progress
}
}
...
...
src/store/modules/header.js
View file @
257efd23
...
...
@@ -3,12 +3,12 @@ const state = {
isCollapse
:
false
,
// 是否收缩左侧导航栏 false为展开 true为收缩
asideTitle
:
[
{
title
:
'
主页
'
,
path
:
'
/
main
'
,
title
:
'
导航页面列表
'
,
path
:
'
/
index/list
'
,
activeIndex
:
0
}
],
// 存储点击左侧导航栏后的导航名,作为标题显示头
crumbs
:
[
'
测试平台
'
,
'
主页
'
],
// 存储面包屑
crumbs
:
[
'
测试平台
'
,
'
导航页面列表
'
],
// 存储面包屑
activeIndex
:
0
,
// 当前活跃的标题下标
count
:
0
// 下标增值变量
}
...
...
src/views/docker/DevEnv.vue
View file @
257efd23
...
...
@@ -30,7 +30,7 @@
</div>
<!-- 同步MQ对话框 -->
<el-dialog
title=
"同步MQ"
:visible.sync=
"mqSyncDialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<el-dialog
title=
"同步MQ"
:visible.sync=
"mqSyncDialogVisible"
width=
"50%"
>
<el-form
ref=
"mqDataForm"
label-position=
"left"
label-width=
"130px"
style=
"width: 95%; margin-left:20px;"
>
<el-form-item
label=
"Namespace名称"
>
<el-input
v-model=
"namespace"
:disabled=
"true"
/>
...
...
src/views/docker/TestEnv.vue
View file @
257efd23
...
...
@@ -30,7 +30,7 @@
</div>
<!-- 同步MQ对话框 -->
<el-dialog
title=
"同步MQ"
:visible.sync=
"mqSyncDialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
<el-dialog
title=
"同步MQ"
:visible.sync=
"mqSyncDialogVisible"
width=
"50%"
>
<el-form
ref=
"mqDataForm"
label-position=
"left"
label-width=
"130px"
style=
"width: 95%; margin-left:20px;"
>
<el-form-item
label=
"Namespace名称"
>
<el-input
v-model=
"namespace"
:disabled=
"true"
/>
...
...
src/views/effect/LoginWhiteList.vue
View file @
257efd23
...
...
@@ -60,7 +60,7 @@ export default {
pageSize
:
10
},
loginInfoList
:
[],
totalNum
:
''
,
totalNum
:
0
,
whiteListType
:
[
{
label
:
'
设备维度
'
,
...
...
src/views/layout/rightMain/AsideTitle.vue
View file @
257efd23
...
...
@@ -8,7 +8,7 @@
:class=
"
{title: true, active: (active === item.activeIndex)?true:false, marginR: (index != getAsideTitle.length - 1)}"
@click="toUrl(item.path, item.activeIndex)"
@close="closeTag(item.title, item.activeIndex)"
:closable="(item.title == '
主页
')? false : true"
:closable="(item.title == '
导航页面列表
')? false : true"
>
{{
item
.
title
}}
</el-tag>
...
...
src/views/login/Login.vue
View file @
257efd23
...
...
@@ -65,7 +65,9 @@ export default {
}
else
{
// 将token放到Application中
window
.
sessionStorage
.
setItem
(
'
token
'
,
resp
.
data
.
data
.
token
)
this
.
$router
.
push
(
'
/main
'
)
// 设置当前选中的菜单
window
.
sessionStorage
.
setItem
(
'
activePath
'
,
'
/index/list
'
)
this
.
$router
.
push
(
'
/index/list
'
)
}
})
.
catch
((
error
)
=>
{
...
...
@@ -103,8 +105,8 @@ export default {
}
.loginForm {
padding: 20px;
background: rgba(
38, 41, 46
, 0.43);
box-shadow:
6px 5px 5
px 0px rgb(36, 41, 41);
background: rgba(
48, 49, 51
, 0.43);
box-shadow:
4px 4px 4
px 0px rgb(36, 41, 41);
}
.title {
text-align: center;
...
...
src/views/mock/Mock.vue
View file @
257efd23
...
...
@@ -215,7 +215,7 @@ export default {
},
successJson
:
''
,
failJson
:
''
,
totalNum
:
''
totalNum
:
0
}
},
components
:
{
...
...
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