Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-learning-report
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-learning-report
提交
302c9b72
提交
302c9b72
编写于
11月 11, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图表
上级
171c7cb0
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
312 行增加
和
96 行删除
+312
-96
common-header.vue
components/common/common-header.vue
+54
-22
common-loading.vue
components/common/common-loading.vue
+4
-4
common-swiper-item.vue
components/common/common-swiper-item.vue
+118
-9
common-tabs.vue
components/common/common-tabs.vue
+87
-9
common-title.vue
components/common/common-title.vue
+18
-47
index.vue
pages/index.vue
+31
-5
未找到文件。
components/common/common-header.vue
浏览文件 @
302c9b72
<!--
头部
组件 -->
<!--
Tabs
组件 -->
<
template
>
<
template
>
<section
class=
"common-header"
:style=
"
{'background-color': bgColor}">
<div
class=
"common-header"
>
<img
src=
""
@
click=
"back"
/>
<span
class=
"left"
>
<span></span>
<img
src=
"../../assets/images/left-array-black.png"
@
click=
"back"
/>
</section>
</span>
<span
class=
"center"
>
{{
title
}}
</span>
<span
v-show=
"needRightBtn"
class=
"right"
>
<!--
<img
src=
"../../assets/images/left-array-black.png"
@
click=
"back"
/>
-->
</span>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
{
props
:
{
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'项目名称'
default
:
"标题内容标题内容标题内容标题"
},
},
bgColor
:
{
needRightBtn
:
{
type
:
String
,
type
:
Boolean
,
default
:
'#fff'
default
:
true
}
}
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{}
if
(
true
)
{
}
this
.
$router
.
history
(
-
1
);
};
}
else
{
this
.
$rocNative
.
back
();
}
}
},
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/assets/style/mixin'
;
@import
'@/assets/style/global'
;
.common-header
{
.common-header
{
margin-top
:
px2rem
(
60px
);
padding-top
:
50px
;
display
:
flex
;
width
:
100%
;
height
:
44px
;
line-height
:
44px
;
flex-direction
:
row
nowrap
;
align-content
:
center
;
align-items
:
center
;
text-align
:
center
;
justify-content
:
center
;
/* 水平居中 */
span
{
display
:
block
;
}
.left
{
box-sizing
:
border-box
;
text-align
:
left
;
padding-top
:
10px
;
padding-left
:
15px
;
// height: 44px;
// line-height: 44px;
width
:
60px
;
}
.center
{
flex
:
1
;
font-size
:
17px
;
font-weight
:
700
;
color
:
#030303
;
}
.right
{
width
:
60px
;
}
img
{
width
:
20px
;
height
:
20px
;
}
}
}
</
style
>
</
style
>
components/common/common-loading.vue
浏览文件 @
302c9b72
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"common-loader loader--style3"
title=
"2"
>
<div
class=
"common-loader loader--style3"
title=
"2"
>
<div
class=
"loader-mask"
></div>
<div
class=
"loader-mask"
></div>
<svg
version=
"1.1"
id=
"loader-1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
<svg
version=
"1.1"
id=
"loader-1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
width=
"
40"
height=
"4
0"
viewBox=
"0 0 60 60"
style=
"enable-background:new 0 0 80 80;"
xml:space=
"preserve"
>
width=
"
80"
height=
"8
0"
viewBox=
"0 0 60 60"
style=
"enable-background:new 0 0 80 80;"
xml:space=
"preserve"
>
<path
fill=
"#000"
d=
"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"
>
<path
fill=
"#000"
d=
"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"
>
<animateTransform
attributeType=
"xml"
<animateTransform
attributeType=
"xml"
attributeName=
"transform"
attributeName=
"transform"
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/assets/style/mixin'
;
//
@import '@/assets/style/mixin';
.common-loader
{
.common-loader
{
&
-mask
{
&
-mask
{
position
:
fixed
;
position
:
fixed
;
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
}
}
svg
{
svg
{
position
:
absolute
;
position
:
absolute
;
top
:
px2rem
(
280px
)
;
top
:
280px
;
left
:
px2rem
(
172px
)
;
left
:
172px
;
z-index
:
101
;
z-index
:
101
;
}
}
}
}
...
...
components/common/common-swiper-item.vue
浏览文件 @
302c9b72
<!-- Swipter的子组件 -->
<!-- Swipter的子组件 -->
<
template
>
<
template
>
<section
class=
"common-swiper-item"
>
<section
class=
"common-swiper-item"
>
<article
class=
"middle"
>
<div
class=
"title"
>
<span>
获证率
</span>
<span>
<img
src=
"../../assets/images/left-array-black.png"
/>
</span>
</div>
<div
class=
"ratio"
>
<span>
21.6%
</span>
</div>
<div
class=
"statics"
>
<span>
已获人数 5678
</span>
<span>
应参与人数 5678
</span>
</div>
</article>
<article
class=
"mini"
>
<div
class=
"item"
>
<div
class=
"wrapper"
>
<span>
<div
class=
"desc"
>
人员参与率
</div>
<div
class=
"ratio"
>
21.6%
</div>
</span>
<img
src=
"../../assets/images/left-array-black.png"
/>
</div>
<span
class=
"desc-num"
>
已获人数 5678
</span>
<span
class=
"desc-num"
>
应参与人数 5678
</span>
</div>
<div
class=
"item"
>
<div
class=
"wrapper"
>
<span>
<div
class=
"desc"
>
人员参与率
</div>
<div
class=
"ratio"
>
21.6%
</div>
</span>
<img
src=
"../../assets/images/left-array-black.png"
/>
</div>
<span
class=
"desc-num"
>
已获人数 5678
</span>
<span
class=
"desc-num"
>
应参与人数 5678
</span>
</div>
<!--
<div
class=
"item"
></div>
<div
class=
"item"
></div>
-->
</article>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -9,19 +49,88 @@ export default {
...
@@ -9,19 +49,88 @@ export default {
props
:
{
props
:
{
itemData
:
{
itemData
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[
{}
]
}
}
},
},
methods
:
{
methods
:
{}
};
},
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/assets/style/mixin'
;
@import
'@/assets/style/global'
;
.common-swiper-item
{
.common-swiper-item
{
margin-top
:
0
;
display
:
block
;
.middle
{
display
:
block
;
box-sizing
:
border-box
;
// width: 100%;
height
:
120px
;
margin
:
5px
15px
;
// width: 345px;
height
:
128px
;
padding
:
20px
15px
;
background
:
#b4d4ce
;
box-shadow
:
0px
5px
10px
0px
rgba
(
68
,
146
,
132
,
0
.1
);
border-radius
:
6px
;
border
:
1px
solid
rgba
(
180
,
212
,
206
,
1
);
.ratio
{
margin-bottom
:
10px
;
// height: 80px;
span
{
color
:
#449284
;
font-size
:
29px
;
}
}
.title
,
.statics
{
display
:
flex
;
justify-content
:
space-between
;
span
{
color
:
#449284
;
font-size
:
14px
;
}
}
}
.mini
{
display
:
block
;
margin
:
9px
15px
;
.item
{
display
:
inline-block
;
width
:
138px
;
height
:
105px
;
padding
:
15px
;
background
:
#000
;
border-radius
:
6px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
box-shadow
:
0px
5px
15px
0px
rgba
(
0
,
0
,
0
,
0
.04
);
border
:
1px
solid
rgba
(
231
,
232
,
233
,
1
);
.wrapper
{
display
:
flex
;
justify-content
:
space-between
;
padding-bottom
:
10px
;
.desc
{
color
:
#676869
;
font-size
:
12px
;
font-weight
:
700
;
padding-bottom
:
2px
;
}
.ratio
{
color
:
#449284
;
font-size
:
21px
;
font-weight
:
700
;
}
img
{
width
:
30px
;
height
:
30px
;
}
}
.desc-num
{
display
:
block
;
height
:
22px
;
line-height
:
22px
;
color
:
#979899
;
font-size
:
12px
;
}
}
}
}
}
</
style
>
</
style
>
components/common/common-tabs.vue
浏览文件 @
302c9b72
<!-- Tabs组件 -->
<!-- Tabs组件 -->
<
template
>
<
template
>
<section
class=
"common-tabs"
>
<div
class=
"common-tabs-wrapper"
>
dd
<section
class=
"common-tabs"
>
</section>
<span
v-for=
"(item, index) in tapList"
:class=
"
{'active': index === cIndex}"
:key="index"
@click="clickTab(index)"
>
{{
item
}}
</span>
</section>
<span
class=
"over"
></span>
<span
class=
"border"
></span>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
return
{
cIndex
:
0
};
},
props
:
{
props
:
{
tapList
:
{
tapList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[
"总体概况"
,
"人群分析"
,
"课程分析"
,
"考试分析"
,
"考试分析"
]
}
}
},
},
methods
:
{
methods
:
{
clickTab
(
index
)
{
},
this
.
cIndex
=
index
;
}
this
.
$emit
(
"tabClicked"
,
index
);
}
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/assets/style/mixin'
;
// article {
@import
'@/assets/style/global'
;
// height: 36px;
// margin-bottom: -4px;
// }
.common-tabs-wrapper
{
position
:
relative
;
top
:
0
;
left
:
0
;
z-index
:
1
;
.over
{
display
:
block
;
position
:
absolute
;
bottom
:
0px
;
left
:
0
;
width
:
100%
;
height
:
6px
;
z-index
:
2
;
background
:
#fff
;
// border-bottom: 1px solid red;
}
.border
{
display
:
block
;
width
:
100%
;
height
:
1px
;
bottom
:
-5px
;
left
:
0
;
// padding-top: 6px;
border-bottom
:
1px
solid
#F0F1F2
;
position
:
absolute
;
z-index
:
2
;
}
}
.common-tabs
{
.common-tabs
{
white-space
:
nowrap
;
overflow-x
:
auto
;
height
:
30px
;
padding-bottom
:
6px
;
span
{
display
:
inline-block
;
height
:
30px
;
line-height
:
30px
;
font-size
:
13px
;
font-weight
:
700
;
margin
:
0
6px
;
color
:
#979899
;
background
:
#f0f1f2
;
padding
:
0
12px
;
border-radius
:
30px
;
&
:first-child
{
margin-left
:
15px
;
}
&
.active
{
color
:
#449284
;
background
:
#e3efed
;
}
}
margin-top
:
0
;
margin-top
:
0
;
}
}
</
style
>
</
style
>
components/common/common-title.vue
浏览文件 @
302c9b72
<!-- Tabs组件 -->
<!-- Tabs组件 -->
<
template
>
<
template
>
<div
class=
"common-header"
>
<section
class=
"common-title"
>
<span
class=
"left"
>
<span
class=
"left"
>
{{
title
}}
</span>
<img
src=
"../../assets/images/left-array-black.png"
@
click=
"back"
/>
<span
v-if=
"needRightBtn"
></span>
</span>
</section>
<span
class=
"center"
>
{{
title
}}
</span>
<span
v-show=
"needRightBtn"
class=
"right"
>
<img
src=
"../../assets/images/left-array-black.png"
@
click=
"back"
/>
</span>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
{
props
:
{
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
"
标题内容标题内容标题内容标题
"
default
:
"
证书分布情况
"
},
},
needRightBtn
:
{
needRightBtn
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
tru
e
default
:
fals
e
}
}
},
},
methods
:
{
methods
:
{}
back
()
{}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
// @import '@/assets/style/mixin';
.common-title
{
// @import '@/assets/style/global';
margin
:
30px
15px
15px
;
// .common-header {
// display: flex;
// justify-content: center; /* 水平居中 */
// text-align: center;
// }
.common-header
{
display
:
flex
;
width
:
100%
;
height
:
44px
;
line-height
:
44px
;
flex-direction
:
row
nowrap
;
align-content
:
center
;
align-items
:
center
;
text-align
:
center
;
justify-content
:
center
;
/* 水平居中 */
span
{
span
{
display
:
block
;
display
:
inline-block
;
}
&
.left
{
.left
{
// width: 216px;
width
:
60px
;
height
:
18px
;
}
font-size
:
18px
;
.center
{
line-height
:
18px
;
flex
:
1
;
font-weight
:
700
;
font-size
:
17px
;
color
:
rgba
(
55
,
56
,
57
,
1
);
color
:
#030303
;
}
}
.right
{
width
:
60px
;
}
img
{
width
:
20px
;
height
:
20px
;
}
}
}
}
</
style
>
</
style
>
pages/index.vue
浏览文件 @
302c9b72
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<!--
<h1>
nuxt-ssr
</h1>
-->
<CommonHeader></CommonHeader>
<!--
<CommonTitle></CommonTitle>
-->
<!--
<CommonLoading></CommonLoading>
-->
<!--
<CommonTaps></CommonTaps>
-->
<CommonSwiperItem></CommonSwiperItem>
<CommonTitle></CommonTitle>
<CommonTitle></CommonTitle>
<!--
<ve-line
:data=
"chartData"
></ve-line>
-->
<ve-pie
:data=
"chartData"
:settings=
"chartSetting"
:echarts=
"echartsSettings"
:height=
"chartHeight"
></ve-pie>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
VeLine
from
'v-charts/lib/line'
import
VePie
from
'v-charts/lib/pie'
import
CommonHeader
from
'../components/common/common-header'
import
CommonTitle
from
'../components/common/common-title'
import
CommonTitle
from
'../components/common/common-title'
import
CommonLoading
from
'../components/common/common-loading'
import
CommonTaps
from
'../components/common/common-tabs'
import
CommonSwiperItem
from
'../components/common/common-swiper-item'
export
default
{
export
default
{
components
:
{
CommonHeader
,
CommonTitle
,
VePie
,
CommonLoading
,
CommonTaps
,
CommonSwiperItem
,
},
data
()
{
data
()
{
return
{
return
{
chartData
:
{
chartData
:
{
...
@@ -23,7 +41,16 @@ export default {
...
@@ -23,7 +41,16 @@ export default {
{
'date'
:
'01-05'
,
'PV'
:
3123
},
{
'date'
:
'01-05'
,
'PV'
:
3123
},
{
'date'
:
'01-06'
,
'PV'
:
7123
}
{
'date'
:
'01-06'
,
'PV'
:
7123
}
]
]
}
},
chartSetting
:
{
width
:
'1000'
,
height
:
'800'
},
echartsSettings
:
{
},
chartWidth
:
'1000px'
,
chartHeight
:
'1000px'
}
}
},
},
async
asyncData
()
{
async
asyncData
()
{
...
@@ -31,7 +58,6 @@ export default {
...
@@ -31,7 +58,6 @@ export default {
}
}
},
},
components
:
{
CommonTitle
,
VeLine
},
created
()
{
created
()
{
// this.$store.dispatch('searchHospital', { name: '测试' });
// this.$store.dispatch('searchHospital', { name: '测试' });
},
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录