Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-chart-show-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-chart-show-pc
Commits
7309d050
提交
7309d050
authored
3月 30, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改样式
上级
403be5c2
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
21 行增加
和
7 行删除
+21
-7
monthCompleteRate.vue
src/components/chart/chart210323/monthCompleteRate.vue
+9
-2
monthIncome.vue
src/components/chart/chart210323/monthIncome.vue
+0
-1
monthRevenueTrend.vue
src/components/chart/chart210323/monthRevenueTrend.vue
+5
-1
nowIncome.vue
src/components/chart/chart210323/nowIncome.vue
+1
-1
weekRevenueForecast.vue
src/components/chart/chart210323/weekRevenueForecast.vue
+5
-1
chart-210323.vue
src/pages/chart/chart-210323.vue
+1
-1
没有找到文件。
src/components/chart/chart210323/monthCompleteRate.vue
浏览文件 @
7309d050
...
...
@@ -35,6 +35,7 @@ export default {
return
String
(
num
).
replace
(
/
\d{1,3}(?=(\d{3})
+
(\.
|$
))
/g
,
'$&,'
)
},
initChart
(
data
)
{
const
_this
=
this
this
.
option
=
{
legend
:
{
data
:
[
'收入'
,
'投入'
],
...
...
@@ -85,7 +86,10 @@ export default {
show
:
true
,
color
:
'#E59700'
,
position
:
'right'
,
fontSize
:
11
fontSize
:
11
,
formatter
:
function
(
value
)
{
return
_this
.
formatter
(
value
.
value
)
}
},
name
:
'收入'
,
type
:
'bar'
,
...
...
@@ -107,7 +111,10 @@ export default {
color
:
'#E59700'
,
show
:
true
,
position
:
'right'
,
fontSize
:
11
fontSize
:
11
,
formatter
:
function
(
value
)
{
return
_this
.
formatter
(
value
.
value
)
}
},
name
:
'投入'
,
type
:
'bar'
,
...
...
src/components/chart/chart210323/monthIncome.vue
浏览文件 @
7309d050
...
...
@@ -20,7 +20,6 @@ export default {
}
},
mounted
()
{
console
.
log
(
this
.
data
.
data
,
'=321'
)
this
.
initChart
()
},
methods
:
{
...
...
src/components/chart/chart210323/monthRevenueTrend.vue
浏览文件 @
7309d050
...
...
@@ -24,6 +24,9 @@ export default {
this
.
getData
()
},
methods
:
{
formatter
(
num
)
{
return
String
(
num
).
replace
(
/
\d{1,3}(?=(\d{3})
+
(\.
|$
))
/g
,
'$&,'
)
},
getData
()
{
action
.
Chart210323
.
getMonthRevenueTrend
().
then
(
res
=>
{
const
projectName
=
[]
...
...
@@ -51,6 +54,7 @@ export default {
xData
:
[],
yData
:
[]
}
const
_this
=
this
// 图表柱子上面的总数
const
totalNum
=
{}
// x轴数据
...
...
@@ -84,7 +88,7 @@ export default {
position
:
'top'
,
color
:
'#fff'
,
formatter
:
function
(
c
)
{
return
totalNum
[
c
.
name
]
return
_this
.
formatter
(
totalNum
[
c
.
name
])
}
}
cData
.
yData
.
push
(
bar
)
...
...
src/components/chart/chart210323/nowIncome.vue
浏览文件 @
7309d050
...
...
@@ -210,7 +210,7 @@ export default {
// margin: 0 auto;
.swiper-wrapper
{
.swiper-slide
{
//
padding-bottom: 15px;
padding-bottom
:
15px
;
width
:
auto
!
important
;
}
}
...
...
src/components/chart/chart210323/weekRevenueForecast.vue
浏览文件 @
7309d050
...
...
@@ -24,6 +24,9 @@ export default {
this
.
getData
()
},
methods
:
{
formatter
(
num
)
{
return
String
(
num
).
replace
(
/
\d{1,3}(?=(\d{3})
+
(\.
|$
))
/g
,
'$&,'
)
},
getData
()
{
action
.
Chart210323
.
getProjectPayWeek
().
then
(
res
=>
{
const
projectName
=
[]
...
...
@@ -51,6 +54,7 @@ export default {
xData
:
[],
yData
:
[]
}
const
_this
=
this
// 图表柱子上面的总数
const
totalNum
=
{}
// x轴数据
...
...
@@ -107,7 +111,7 @@ export default {
position
:
'top'
,
color
:
'#fff'
,
formatter
:
function
(
c
)
{
return
totalNum
[
c
.
name
]
return
_this
.
formatter
(
totalNum
[
c
.
name
])
}
}
// console.log(cData.yData, '-123')
...
...
src/pages/chart/chart-210323.vue
浏览文件 @
7309d050
...
...
@@ -41,7 +41,7 @@
</div>
</div>
<div
class=
"chart-c-t"
>
<card
title=
"
周营收平台走势及预测(万
)"
devClass=
'after-w'
>
<card
title=
"
项目营收走势及预测(本周
)"
devClass=
'after-w'
>
<week-revenue-forecast></week-revenue-forecast>
</card>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论