Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cxsfjx_project_echarts
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
cxsfjx_project_echarts
Commits
f71b7a56
提交
f71b7a56
authored
11月 16, 2021
作者:
Your Name
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(创新示范): 导航栏增加年度切换
上级
c130b9f6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
111 行增加
和
50 行删除
+111
-50
head.vue
src/layout/head.vue
+111
-40
index.vue
src/views/dataCenter/army/model/StrongArmy/index.vue
+0
-10
没有找到文件。
src/layout/head.vue
浏览文件 @
f71b7a56
...
@@ -41,32 +41,49 @@
...
@@ -41,32 +41,49 @@
</el-row>
</el-row>
<!-- 行动轨迹记录 -->
<!-- 行动轨迹记录 -->
<div
v-if=
"curRouteHistoy.length > 0"
class=
"proceed-record"
>
<el-row
v-if=
"curRouteHistoy.length > 0"
class=
"proceed-record"
>
<el-row
class=
"pointer"
@
click=
"$router.go(-1)"
align=
"middle"
>
<el-col
class=
"nav-history"
:span=
"18"
>
<el-icon><ArrowLeftBold
/></el-icon>
<el-row
class=
"pointer"
@
click=
"$router.go(-1)"
align=
"middle"
>
返回
<el-icon><ArrowLeftBold
/></el-icon>
<el-divider
direction=
"vertical"
></el-divider>
返回
</el-row>
<el-divider
direction=
"vertical"
></el-divider>
</el-row>
<el-row>
<div
<el-col
class=
"nav-history-item"
:span=
"18"
>
v-for=
"(item, index) in curRouteHistoy"
<div
:key=
"item"
v-for=
"(item, index) in curRouteHistoy"
class=
"proceed-item"
:key=
"item"
:class=
"
{
class=
"proceed-item"
'lignht-color': index === curRouteHistoy.length - 1,
:class=
"
{
}"
'lignht-color': index === curRouteHistoy.length - 1,
@click="toPage(item)"
}"
>
@click="toPage(item)"
<el-icon
>
v-if=
"index > 0"
<el-icon
:color=
"index === curRouteHistoy.length - 1 ? '#409EFC' : ''"
v-if=
"index > 0"
><CaretRight
:color=
"index === curRouteHistoy.length - 1 ? '#409EFC' : ''"
/></el-icon>
><CaretRight
{{
item
.
label
}}
/></el-icon>
{{
item
.
label
}}
</div>
</el-col>
</el-col>
<!-- 年度 -->
<el-col
class=
"year-items"
>
<div
class=
"years"
align=
"middle"
>
<span
v-for=
"(item, index) in years"
:key=
"item"
:class=
"
{
active: index === curYearIndex,
}"
@click="yearHandle(index)"
>
{{
item
}}
年
</span
>
</div>
</div>
</el-
row
>
</el-
col
>
</
div
>
</
el-row
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -90,6 +107,8 @@ export default defineComponent({
...
@@ -90,6 +107,8 @@ export default defineComponent({
activeIndex
:
0
,
activeIndex
:
0
,
secondIndex
:
0
,
secondIndex
:
0
,
curRouteHistoy
:
[],
curRouteHistoy
:
[],
years
:
[
2019
,
2020
,
"2021上半"
],
curYearIndex
:
2
,
};
};
},
},
created
()
{},
created
()
{},
...
@@ -125,6 +144,9 @@ export default defineComponent({
...
@@ -125,6 +144,9 @@ export default defineComponent({
},
},
},
},
methods
:
{
methods
:
{
yearHandle
(
index
:
number
)
{
this
.
curYearIndex
=
index
;
},
navClick
(
item
:
{},
index
:
number
)
{
navClick
(
item
:
{},
index
:
number
)
{
// const { link, children = [] } = item;
// const { link, children = [] } = item;
// this.activeIndex = index;
// this.activeIndex = index;
...
@@ -145,10 +167,10 @@ export default defineComponent({
...
@@ -145,10 +167,10 @@ export default defineComponent({
});
});
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.pointer
{
.pointer
{
cursor
:
pointer
;
cursor
:
pointer
;
&
:hover
{
&
:hover
{
color
:
#4198ff
color
:
#4198ff
;
}
}
}
}
.app-head-warpper
{
.app-head-warpper
{
...
@@ -213,27 +235,76 @@ export default defineComponent({
...
@@ -213,27 +235,76 @@ export default defineComponent({
// 行动轨迹记录
// 行动轨迹记录
.proceed-record
{
.proceed-record
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
padding
:
0
20px
;
// padding: 0 20px;
background
:
#fff
;
border-radius
:
5px
;
border-radius
:
5px
;
height
:
40px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-size
:
14px
;
font-size
:
14px
;
height
:
40px
;
color
:
#999
;
color
:
#999
;
.proceed-item
{
.nav-history
{
color
:
#999
;
padding-left
:
10px
;
width
:
100%
;
background
:
#fff
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
cursor
:
pointer
;
height
:
40px
;
margin-left
:
5px
;
border-radius
:
5px
;
cursor
:
pointer
;
overflow
:
hidden
;
&
:hover
{
box-shadow
:
2px
2px
10px
#eee
;
color
:
#4198ff
;
.nav-history-item
{
display
:
flex
;
height
:
100%
;
.proceed-item
{
color
:
#999
;
display
:
flex
;
align-items
:
center
;
cursor
:
pointer
;
margin-left
:
5px
;
cursor
:
pointer
;
&
:hover
{
color
:
#4198ff
;
}
.el-icon
{
margin-right
:
2px
;
}
}
}
}
.el-icon
{
}
margin-right
:
2px
;
.year-items
{
display
:
flex
;
width
:
100%
;
margin-left
:
16px
;
border-radius
:
5px
;
overflow
:
hidden
;
flex
:
1
;
height
:
40px
;
background
:
#fff
;
box-shadow
:
2px
2px
10px
#eee
;
.years
{
display
:
flex
;
align-items
:
center
;
height
:
40px
;
flex
:
1
;
overflow
:
hidden
;
span
{
width
:
100%
;
display
:
flex
;
align-items
:
center
;
padding
:
0
12px
;
font-size
:
12px
;
height
:
inherit
;
color
:
#949494
;
justify-content
:
center
;
cursor
:
pointer
;
}
.active
{
background-color
:
#4198ff
;
color
:
#fff
;
}
}
}
}
}
...
...
src/views/dataCenter/army/model/StrongArmy/index.vue
浏览文件 @
f71b7a56
...
@@ -15,16 +15,6 @@
...
@@ -15,16 +15,6 @@
>
{{
item
}}
年
</span
>
{{
item
}}
年
</span
>
>
</div>
</div>
<!--
<el-select
v-model=
"value"
size=
"small"
placeholder=
"Select"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
-->
</el-row>
</el-row>
</div>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论