Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-chart-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-chart-show-h5
Commits
57a55ac3
提交
57a55ac3
authored
4月 14, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
0b450b62
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
28 行增加
和
14 行删除
+28
-14
card.vue
src/components/card.vue
+14
-2
monthIncomeTrend.vue
src/components/monthIncomeTrend.vue
+4
-4
weekIncome.vue
src/components/weekIncome.vue
+4
-5
yearIncome.vue
src/components/yearIncome.vue
+4
-3
index.vue
src/pages/home/index.vue
+2
-0
没有找到文件。
src/components/card.vue
浏览文件 @
57a55ac3
<
template
>
<div
class=
"card"
>
<div
class=
"card-inner"
>
<div
class=
"card-hd"
v-if=
"title"
>
{{
title
}}
</div>
<div
class=
"card-hd"
v-if=
"title"
>
<h2
class=
"title"
>
{{
title
}}
</h2>
<div
class=
"aside"
><slot
name=
"aside"
></slot></div>
</div>
<div
class=
"card-bd"
>
<slot></slot>
</div>
...
...
@@ -47,11 +50,20 @@ export default {
overflow
:
hidden
;
}
.card-hd
{
padding
:
13px
13px
;
display
:
flex
;
align-items
:
center
;
padding
:
10px
13px
5px
;
}
.card-hd
.title
{
flex
:
1
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#f3f3f3
;
}
.card-hd
.aside
{
font-size
:
12px
;
color
:
#0a7199
;
}
.card-bd
{
flex
:
1
;
margin
:
0
13px
;
...
...
src/components/monthIncomeTrend.vue
浏览文件 @
57a55ac3
...
...
@@ -91,11 +91,11 @@ export default {
},
option
()
{
return
{
title
:
{
text
:
'单位:万'
,
textStyle
:
{
fontSize
:
12
,
color
:
'#0A7199'
},
padding
:
0
},
// title: { text: '单位:万', right: 0
, textStyle: { fontSize: 12, color: '#0A7199' }, padding: 0 },
// tooltip: { trigger: 'axis', axisPointer: { type: 'none' } },
grid
:
{
left
:
'left'
,
top
:
40
,
right
:
0
,
bottom
:
40
,
containLabel
:
true
},
grid
:
{
left
:
'left'
,
top
:
10
,
right
:
0
,
bottom
:
25
,
containLabel
:
true
},
legend
:
{
bottom
:
'10px'
,
bottom
:
0
,
itemWidth
:
10
,
itemHeight
:
10
,
icon
:
'rect'
,
...
...
@@ -115,7 +115,7 @@ export default {
type
:
'category'
,
axisTick
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisLabel
:
{
color
:
'#0A7199'
},
axisLabel
:
{
color
:
'#0A7199'
,
interval
:
0
},
data
:
this
.
dataset
.
axis
},
series
:
[...
this
.
dataset
.
series
,
this
.
totalBar
]
...
...
src/components/weekIncome.vue
浏览文件 @
57a55ac3
...
...
@@ -95,16 +95,15 @@ export default {
},
option
()
{
return
{
title
:
{
text
:
'单位:万'
,
textStyle
:
{
fontSize
:
12
,
color
:
'#0A7199'
},
padding
:
0
},
//
title: { text: '单位:万', textStyle: { fontSize: 12, color: '#0A7199' }, padding: 0 },
// tooltip: { trigger: 'axis', axisPointer: { type: 'none' } },
grid
:
{
left
:
'left'
,
top
:
40
,
right
:
0
,
bottom
:
40
,
containLabel
:
true
},
grid
:
{
left
:
'left'
,
top
:
10
,
right
:
0
,
bottom
:
15
,
containLabel
:
true
},
legend
:
{
bottom
:
'10px'
,
bottom
:
0
,
itemWidth
:
10
,
itemHeight
:
10
,
icon
:
'rect'
,
textStyle
:
{
color
:
'#F3F3F3'
}
// data: this.dataset.legend
},
yAxis
:
{
type
:
'value'
,
...
...
@@ -120,7 +119,7 @@ export default {
type
:
'category'
,
axisTick
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisLabel
:
{
color
:
'#0A7199'
,
rotate
:
45
},
axisLabel
:
{
color
:
'#0A7199'
,
interval
:
0
,
rotate
:
45
},
data
:
this
.
dataset
.
axis
},
series
:
[...
this
.
dataset
.
series
,
this
.
totalBar
]
...
...
src/components/yearIncome.vue
浏览文件 @
57a55ac3
...
...
@@ -41,7 +41,7 @@ export default {
text
:
`{value|
${(
total
/
10000
).
toFixed
(
2
)}
万}`
,
top
:
'center'
,
textStyle
:
{
rich
:
{
value
:
{
color
:
'#fff'
,
fontSize
:
1
6
,
width
:
this
.
height
-
2
0
,
align
:
'center'
}
}
rich
:
{
value
:
{
color
:
'#fff'
,
fontSize
:
1
5
,
width
:
this
.
height
-
3
0
,
align
:
'center'
}
}
}
},
tooltip
:
{
trigger
:
'item'
},
...
...
@@ -58,8 +58,8 @@ export default {
series
:
[
{
type
:
'pie'
,
radius
:
[
'
60%'
,
'9
0%'
],
left
:
'0'
,
radius
:
[
'
70%'
,
'10
0%'
],
left
:
0
,
width
:
this
.
height
-
20
,
stillShowZeroSum
:
false
,
avoidLabelOverlap
:
false
,
...
...
@@ -74,6 +74,7 @@ export default {
}
},
labelLine
:
{
show
:
false
},
emphasis
:
{
scale
:
false
},
data
}
]
...
...
src/pages/home/index.vue
浏览文件 @
57a55ac3
...
...
@@ -11,6 +11,7 @@
<swiper-slide>
<div
class=
"h100"
>
<card
title=
"项目营收走势及预测(本周)"
>
<template
#
aside
>
单位:万
</
template
>
<week-income></week-income>
</card>
<card
title=
"项目线上投入产出比(本月)"
>
...
...
@@ -27,6 +28,7 @@
<project-ranking></project-ranking>
</card>
<card
title=
"营收走势(本年度)"
>
<
template
#
aside
>
单位:万
</
template
>
<month-income-trend></month-income-trend>
</card>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论