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
fb5bd4e4
提交
fb5bd4e4
authored
3月 26, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
e215b284
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
77 行增加
和
58 行删除
+77
-58
monthIncome.vue
src/components/monthIncome.vue
+1
-1
monthIncomeTrend.vue
src/components/monthIncomeTrend.vue
+9
-3
paymentStructure.vue
src/components/paymentStructure.vue
+11
-3
weekIncome.vue
src/components/weekIncome.vue
+47
-46
yearIncome.vue
src/components/yearIncome.vue
+2
-3
index.vue
src/pages/home/index.vue
+6
-2
index.js
src/store/index.js
+1
-0
没有找到文件。
src/components/monthIncome.vue
浏览文件 @
fb5bd4e4
...
...
@@ -56,7 +56,7 @@ export default {
// ],
data
:
seriesData
,
coordinateSystem
:
'polar'
,
roundCap
:
true
,
//
roundCap: true,
itemStyle
:
{
color
:
'#34A6D2'
}
}
]
...
...
src/components/monthIncomeTrend.vue
浏览文件 @
fb5bd4e4
...
...
@@ -41,14 +41,20 @@ export default {
tooltip
:
{
trigger
:
'axis'
,
axisPointer
:
{}
},
dataset
:
{
source
:
this
.
dataset
.
source
},
legend
:
{
top
:
'bottom'
,
// top: 'bottom',
bottom
:
'10px'
,
itemWidth
:
13
,
itemHeight
:
13
,
icon
:
'rect'
,
textStyle
:
{
color
:
'#fff'
,
fontSize
:
16
}
},
yAxis
:
{
type
:
'value'
,
splitLine
:
{
show
:
false
}
},
xAxis
:
{
type
:
'category'
,
axisTick
:
{
show
:
false
},
axisLine
:
{
show
:
false
}
},
yAxis
:
{
type
:
'value'
,
splitLine
:
{
show
:
false
},
axisLabel
:
{
color
:
'#0A7199'
}
},
xAxis
:
{
type
:
'category'
,
axisTick
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisLabel
:
{
color
:
'#0A7199'
}
},
series
:
this
.
dataset
.
series
}
}
...
...
src/components/paymentStructure.vue
浏览文件 @
fb5bd4e4
...
...
@@ -19,12 +19,20 @@ export default {
option
()
{
return
{
tooltip
:
{
trigger
:
'item'
},
legend
:
{
orient
:
'vertical'
,
left
:
'left'
,
top
:
'middle'
,
textStyle
:
{
color
:
'#fff'
}
},
legend
:
{
orient
:
'vertical'
,
right
:
0
,
top
:
'middle'
,
itemWidth
:
14
,
itemHeight
:
14
,
icon
:
'rect'
,
textStyle
:
{
color
:
'#fff'
,
fontSize
:
16
}
},
series
:
[
{
type
:
'pie'
,
data
:
this
.
dataset
,
emphasis
:
{
itemStyle
:
{
shadowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
}
}
label
:
{
alignTo
:
'labelLine'
,
color
:
'#fff'
}
,
data
:
this
.
dataset
}
]
}
...
...
src/components/we
k
kIncome.vue
→
src/components/we
e
kIncome.vue
浏览文件 @
fb5bd4e4
...
...
@@ -5,69 +5,70 @@
<
script
>
import
*
as
api
from
'@/api/index'
export
default
{
name
:
'Month
lyIncome
'
,
name
:
'Month
IncomeTrend
'
,
data
()
{
return
{
loading
:
false
,
response
:
{
sell_data
:
[]
}
response
:
[]
}
},
computed
:
{
option
()
{
const
axisData
=
[]
const
seriesData
=
[]
this
.
response
.
sell_data
.
forEach
(
item
=>
{
axisData
.
push
(
item
.
project_name
)
seriesData
.
push
({
value
:
item
.
pay_money
,
name
:
item
.
project_name
})
dataset
()
{
const
dimensions
=
[]
const
source
=
{}
const
series
=
[]
this
.
response
.
forEach
(
item
=>
{
if
(
!
dimensions
.
includes
(
item
.
week
))
{
dimensions
.
push
(
item
.
week
)
}
console
.
log
(
item
.
week
)
if
(
!
source
[
item
.
project_name
])
{
source
[
item
.
project_name
]
=
[]
const
temp
=
{
type
:
'bar'
,
name
:
item
.
project_name
,
stack
:
'total'
,
barWidth
:
20
}
if
([
'当前周预测'
,
'T+1'
,
'T+2'
].
includes
(
item
.
week
))
{
console
.
log
(
temp
)
temp
.
itemStyle
=
{
color
:
'transparent'
,
borderWidth
:
1
,
borderColor
:
'#000'
}
}
series
.
push
(
temp
)
}
source
[
item
.
project_name
].
push
(
item
.
pay_money
)
})
const
option
=
{
tooltip
:
{
trigger
:
'axis'
},
grid
:
{
left
:
0
,
top
:
0
,
right
:
0
,
bottom
:
0
},
angleAxis
:
{
show
:
false
source
.
product
=
dimensions
return
{
dimensions
,
source
,
series
}
},
radiusAxis
:
{
type
:
'category'
,
// data: ['sofia', 'kelley'],
data
:
axisData
,
z
:
10
,
axisLine
:
{
show
:
false
option
()
{
return
{
tooltip
:
{
trigger
:
'axis'
,
axisPointer
:
{}
},
dataset
:
{
source
:
this
.
dataset
.
source
},
legend
:
{
show
:
false
,
bottom
:
'10px'
,
itemWidth
:
13
,
itemHeight
:
13
,
icon
:
'rect'
,
textStyle
:
{
color
:
'#fff'
,
fontSize
:
16
}
},
axisTick
:
{
show
:
false
}
yAxis
:
{
type
:
'value'
,
splitLine
:
{
show
:
false
},
axisLabel
:
{
color
:
'#0A7199'
,
formatter
:
value
=>
value
/
10000
}
},
textStyle
:
{
color
:
'#fff'
xAxis
:
{
type
:
'category'
,
axisTick
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisLabel
:
{
color
:
'#0A7199'
}
},
polar
:
{},
series
:
[
{
type
:
'bar'
,
barWidth
:
10
,
barCategoryGap
:
'0%'
,
// data: [
// { value: 100, itemStyle: { color: '#34A6D2' } },
// { value: 200, itemStyle: { color: '#34A6D2' } }
// ],
data
:
seriesData
,
coordinateSystem
:
'polar'
,
roundCap
:
true
,
itemStyle
:
{
color
:
'#34A6D2'
}
}
]
series
:
this
.
dataset
.
series
}
return
option
}
},
methods
:
{
getData
()
{
this
.
loading
=
true
api
.
get
MonthIncome
()
.
get
PayMoneyByWeek
()
.
then
(
response
=>
{
this
.
response
=
response
})
...
...
@@ -84,6 +85,6 @@ export default {
<
style
scoped
>
.chart
{
height
:
2
00px
;
height
:
3
00px
;
}
</
style
>
src/components/yearIncome.vue
浏览文件 @
fb5bd4e4
...
...
@@ -33,14 +33,13 @@ export default {
orient
:
'vertical'
,
left
:
'200px'
,
top
:
'middle'
,
itemWidth
:
1
3
,
itemHeight
:
1
3
,
itemWidth
:
1
4
,
itemHeight
:
1
4
,
icon
:
'rect'
,
textStyle
:
{
color
:
'#fff'
,
fontSize
:
16
,
padding
:
[
0
,
0
,
0
,
12
]
}
},
series
:
[
{
name
:
'年度总营收'
,
type
:
'pie'
,
radius
:
[
'60%'
,
'90%'
],
width
:
160
,
...
...
src/pages/home/index.vue
浏览文件 @
fb5bd4e4
<
template
>
<div>
<month-dashboard
style=
"margin-bottom: 24px"
></month-dashboard>
<card>
<week-income></week-income>
</card>
<card
title=
"各项目月度营收"
>
<month-income></month-income>
</card>
...
...
@@ -45,9 +48,9 @@ import YearIncome from '@/components/yearIncome'
import
ProjectRanking
from
'@/components/projectRanking'
// 各月营收走势
import
MonthIncomeTrend
from
'@/components/monthIncomeTrend'
// 缴费结构
import
PaymentStructure
from
'@/components/PaymentStructure'
import
WeekIncome
from
'@/components/weekIncome'
export
default
{
name
:
'Index'
,
...
...
@@ -61,7 +64,8 @@ export default {
YearIncome
,
ProjectRanking
,
MonthIncomeTrend
,
PaymentStructure
PaymentStructure
,
WeekIncome
},
data
()
{
return
{}
...
...
src/store/index.js
浏览文件 @
fb5bd4e4
...
...
@@ -6,6 +6,7 @@ Vue.use(Vuex)
const
store
=
new
Vuex
.
Store
({
state
:
{
colors
:
{
sofia
:
'#FC654B'
,
kelley
:
'#34A6D2'
,
ciis
:
'#EFB1AE'
,
cu
:
'#F9BD73'
,
shms
:
'#9892F0'
},
user
:
{},
isLogin
:
false
,
isIos
:
/iphone|ipad|ipod/i
.
test
(
navigator
.
userAgent
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论