Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
scanmanage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
yyh
scanmanage
Commits
0d81da2e
提交
0d81da2e
authored
9月 17, 2021
作者:
zwh
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'zwh' 到 'master'
zwh 查看合并请求
!2
上级
f1cb05cf
ba2ac92f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
99 行增加
和
67 行删除
+99
-67
layout.vue
src/views/layout.vue
+99
-67
没有找到文件。
src/views/layout.vue
浏览文件 @
0d81da2e
...
...
@@ -2,12 +2,8 @@
<div
class=
"layout"
>
<div
class=
"header"
>
<div
class=
"header-left"
>
<div
class=
"title"
>
信创扫描助手
</div>
<div
class=
"time"
>
当前时间
{{
123
}}
</div>
<div
class=
"title"
>
信创扫描助手
</div>
<div
class=
"time"
>
当前时间
{{
time
}}
</div>
</div>
<div
class=
"header-right"
>
<div
class=
"header-img"
></div>
...
...
@@ -18,14 +14,22 @@
</div>
<div
class=
"contain-all"
>
<div
class=
"left-bar"
>
<div
class=
"chose-list"
:class=
"nowRouter=='/home'?'check':''"
@
click=
"jumRouter('/home')"
>
<div
class=
"img-content"
>
<div
class=
"chose-list"
:class=
"nowRouter == '/home' ? 'check' : ''"
@
click=
"jumRouter('/home')"
>
<div
class=
"img-content"
>
<div
class=
"img-home"
></div>
</div>
<div
class=
"list-name"
>
首页
</div>
</div>
<div
class=
"chose-list"
:class=
"nowRouter=='/account'?'check':''"
@
click=
"jumRouter('/account')"
>
<div
class=
"img-content"
>
<div
class=
"chose-list"
:class=
"nowRouter == '/account' ? 'check' : ''"
@
click=
"jumRouter('/account')"
>
<div
class=
"img-content"
>
<div
class=
"img-user"
></div>
</div>
<div
class=
"list-name"
>
用户信息
</div>
...
...
@@ -44,109 +48,139 @@ export default {
components
:
{},
data
()
{
return
{
nowRouter
:
'home'
nowRouter
:
"home"
,
time
:
null
,
timer
:
null
,
};
},
watch
:{
watch
:
{
"$route.path"
:
{
handler
(
newName
,
oldName
)
{
// console.log(newName);
this
.
nowRouter
=
newName
// console.log(newName);
this
.
nowRouter
=
newName
;
},
immediate
:
true
}
immediate
:
true
,
},
},
created
()
{
this
.
timer
=
setInterval
(()
=>
{
this
.
time
=
this
.
getTime
()
},
1000
);
},
destroyed
(){
clearInterval
(
this
.
timer
)
},
methods
:
{
logout
(){
this
.
$router
.
push
(
'/login'
)
logout
()
{
this
.
$router
.
push
(
"/login"
);
localStorage
.
clear
();
},
jumRouter
(
router
){
this
.
$router
.
push
(
router
)
}
jumRouter
(
router
)
{
this
.
$router
.
push
(
router
);
},
getTime
()
{
let
now
=
new
Date
();
let
year
=
now
.
getFullYear
();
let
month
=
now
.
getMonth
()
+
1
;
let
day
=
now
.
getDate
();
let
hh
=
now
.
getHours
();
let
mm
=
now
.
getMinutes
();
let
ss
=
now
.
getSeconds
();
let
clock
=
year
+
"-"
;
if
(
month
<
10
)
clock
+=
"0"
;
clock
+=
month
+
"-"
;
if
(
day
<
10
)
clock
+=
"0"
;
clock
+=
day
+
" "
;
if
(
hh
<
10
)
clock
+=
"0"
;
clock
+=
hh
+
":"
;
if
(
mm
<
10
)
clock
+=
"0"
;
clock
+=
mm
+
":"
;
if
(
ss
<
10
)
clock
+=
"0"
;
clock
+=
ss
;
return
clock
;
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.layout{
.layout
{
width: 100%;
height: 100%;
background: #
EDEFF
8;
.header{
background: #
edeff
8;
.header
{
height: 80px;
background: #
FFFFFF
;
background: #
ffffff
;
box-shadow: 0px 2px 8px 0px rgba(11, 30, 119, 0.1);
display: flex;
justify-content: space-between;
line-height: 80px;
.header-left{
.header-left
{
display: flex;
.title{
.title
{
width: 220px;
height: 80px;
line-height: 80px;
font-family: "DFPLiJinHeiW8";
color: #
FFFFFF
;
color: #
ffffff
;
line-height: 80px;
font-size: 28px;
text-align: center;
letter-spacing: 1px;
background: #4658
AD
;
background: #4658
ad
;
margin-right: 20px;
}
.time{
.time
{
font-size: 18px;
font-family: "AlibabaPuHuiTi-Regular";
color: #646464
color: #646464
;
}
}
.header-right{
.header-right
{
display: flex;
align-items: center;
margin-right: 20px;
height: 80px;
.header-img{
.header-img
{
width: 30px;
height: 30px;
background-image: url(
'../assets/img/admin.png'
);
background-image: url(
"../assets/img/admin.png"
);
background-size: 100% 100%;
background-repeat: no-repeat;
margin-right: 12px;
}
.username{
.username
{
font-size: 18px;
font-family: "AlibabaPuHuiTi-Regular";
color: #646464;
// line-height: 25px;
}
.blue-line{
.blue-line
{
width: 2px;
height: 36px;
background: #4658
AD
;
background: #4658
ad
;
margin: 0 30px;
}
.login-out{
.login-out
{
font-size: 18px;
font-family: "AlibabaPuHuiTi-Regular";
color: #
F
96635;
color: #
f
96635;
cursor: pointer;
// line-height: 25px;
// line-height: 25px;
}
}
}
.contain-all{
height:calc(100% - 80px);
.contain-all
{
height:
calc(100% - 80px);
width: 100%;
display: flex;
.left-bar{
.left-bar
{
width: 220px;
height: 100%;
box-sizing: border-box;
padding-top: 40px;
background-color: #fff;
.chose-list{
.chose-list
{
display: flex;
width: 100%;
margin-bottom: 20px;
...
...
@@ -155,53 +189,51 @@ export default {
box-sizing: border-box;
padding-left: 40px;
cursor: pointer;
&:hover{
background: #EDEFF8;
color: #4658AD;
.img-content{
background: #4176F0;
&:hover {
background: #edeff8;
color: #4658ad;
.img-content {
background: #4176f0;
}
}
}
.img-content{
.img-content {
width: 32px;
height: 32px;
background: #
C3C2C
2;
background: #
c3c2c
2;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
margin-right: 12px;
}
.img-home{
.img-home
{
width: 20px;
height: 18px;
background-image: url(
'../assets/img/home.png'
);
background-image: url(
"../assets/img/home.png"
);
background-size: 100% 100%;
background-repeat: no-repeat;
}
.img-user{
.img-user
{
width: 20px;
height: 18px;
background-image: url(
'../assets/img/img-user.png'
);
background-image: url(
"../assets/img/img-user.png"
);
background-size: 100% 100%;
background-repeat: no-repeat;
}
.list-name{
.list-name
{
font-size: 20px;
color: #747
C
93;
color: #747
c
93;
}
}
.check{
background: #
EDEFF
8;
color: #4658
AD
;
.img-content{
background: #4176F
0;
.check
{
background: #
edeff
8;
color: #4658
ad
;
.img-content
{
background: #4176f
0;
}
}
}
.right-center{
.right-center
{
width: calc(100% - 220px);
height: 100%;
box-sizing: border-box;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论