Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
2d63e7a0
Commit
2d63e7a0
authored
Sep 10, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d155bde6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
48 deletions
+90
-48
ActualRateChange.vue
...odule/DataAnalysis/components/Echart/ActualRateChange.vue
+13
-5
ActualRateColumnar.vue
...ule/DataAnalysis/components/Echart/ActualRateColumnar.vue
+13
-5
ChangeProportion.vue
...odule/DataAnalysis/components/Echart/ChangeProportion.vue
+23
-21
IncomeChange.vue
...ialModule/DataAnalysis/components/Echart/IncomeChange.vue
+14
-6
WoolRateChange.vue
...lModule/DataAnalysis/components/Echart/WoolRateChange.vue
+14
-6
WoolRateColumnar.vue
...odule/DataAnalysis/components/Echart/WoolRateColumnar.vue
+13
-5
No files found.
src/components/FinancialModule/DataAnalysis/components/Echart/ActualRateChange.vue
View file @
2d63e7a0
<
template
>
<div
class=
"echartsBox"
>
<div
class=
"titleBox row"
>
<h3>
月度实际利
率变化趋势图 %
(折线图)
</h3>
<h3>
月度实际利
润变化趋势图
(折线图)
</h3>
<div
style=
"margin-left: 20px;"
>
...
...
@@ -67,8 +67,13 @@ export default {
type
:
'line'
,
showSymbol
:
true
,
smooth
:
true
,
symbolSize
:
1
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
y
.
ProfitRate
.
toFixed
(
2
)})
// 绑定实时数据数组
symbolSize
:
5
,
label
:
{
show
:
true
,
position
:
'top'
,
// 在顶部显示
formatter
:
'{c}w'
// 格式化金额,{c} 代表数据值
},
data
:
x
.
DetailList
.
map
(
y
=>
{
return
(
y
.
Profit
/
10000
).
toFixed
(
2
)})
// 绑定实时数据数组
}
datas
.
push
(
obj
)
if
(
indexs
>
10
){
...
...
@@ -131,7 +136,9 @@ export default {
axisLabel
:
{
textStyle
:
{
color
:
"#969696"
}
},
formatter
:
'{value}w'
,
margin
:
20
// 标签距离y轴的距离为20
},
splitLine
:{
show
:
true
,
...
...
@@ -153,7 +160,8 @@ export default {
},
dataZoom
:
[
{
type
:
'inside'
type
:
'inside'
,
disabled
:
true
}
],
series
:
datas
...
...
src/components/FinancialModule/DataAnalysis/components/Echart/ActualRateColumnar.vue
View file @
2d63e7a0
<
template
>
<div
class=
"echartsBox"
>
<div
class=
"titleBox row"
>
<h3>
月度实际利
率变化趋势图 %
(柱状图)
</h3>
<h3>
月度实际利
润变化趋势图
(柱状图)
</h3>
<div
style=
"margin-left: 20px;"
>
...
...
@@ -65,11 +65,16 @@ export default {
let
obj
=
{
name
:
Name
,
type
:
'bar'
,
label
:
{
show
:
true
,
position
:
'top'
,
// 在顶部显示
formatter
:
'{c}w'
// 格式化金额,{c} 代表数据值
},
itemStyle
:{
barBorderRadius
:
5
,
},
barWidth
:
5
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
y
.
ProfitRate
.
toFixed
(
2
)})
// 绑定实时数据数组
barWidth
:
30
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
(
y
.
Profit
/
10000
)
.
toFixed
(
2
)})
// 绑定实时数据数组
}
datas
.
push
(
obj
)
if
(
indexs
>
10
){
...
...
@@ -132,7 +137,9 @@ export default {
axisLabel
:
{
textStyle
:
{
color
:
"#969696"
}
},
formatter
:
'{value}w'
,
margin
:
50
// 标签距离y轴的距离为20
},
splitLine
:{
show
:
true
,
...
...
@@ -154,7 +161,8 @@ export default {
},
dataZoom
:
[
{
type
:
'inside'
type
:
'inside'
,
disabled
:
true
}
],
series
:
datas
...
...
src/components/FinancialModule/DataAnalysis/components/Echart/ChangeProportion.vue
View file @
2d63e7a0
<
template
>
<div
class=
"echartsBox"
>
<div
class=
"titleBox text-center row"
>
<h3>
各费用项
收入占比变化趋势图 %
</h3>
<h3>
各费用项
变化趋势图
</h3>
<div
style=
"margin-left: 20px;"
>
...
...
@@ -40,12 +40,12 @@ export default {
},
CostDatas
:
[],
incomeTitles
:[
{
Name
:
'机票
/收入'
,
value
:
'JiPiaoRate
'
,
ID
:
2
},
{
Name
:
'房费
/收入'
,
value
:
'RommFeeRat
e'
,
ID
:
4
},
{
Name
:
'车费
/收入'
,
value
:
'CarFeeRat
e'
,
ID
:
6
},
{
Name
:
'餐费
/收入'
,
value
:
'MealFeeRat
e'
,
ID
:
8
},
{
Name
:
'门票
/收入'
,
value
:
'TicketFeeRat
e'
,
ID
:
10
},
{
Name
:
'签证
/收入'
,
value
:
'VisaFeeRat
e'
,
ID
:
12
},
{
Name
:
'机票
'
,
value
:
'JiPiao
'
,
ID
:
2
},
{
Name
:
'房费
'
,
value
:
'RoomFe
e'
,
ID
:
4
},
{
Name
:
'车费
'
,
value
:
'CarFe
e'
,
ID
:
6
},
{
Name
:
'餐费
'
,
value
:
'MealFe
e'
,
ID
:
8
},
{
Name
:
'门票
'
,
value
:
'TicketFe
e'
,
ID
:
10
},
{
Name
:
'签证
'
,
value
:
'VisaFe
e'
,
ID
:
12
},
],
}
},
...
...
@@ -93,34 +93,34 @@ export default {
if
(
filter
){
this
.
CostDatas
.
forEach
((
x
,
indexs
)
=>
{
if
(
indexs
==
0
){
x
.
name
=
'机票
/收入
'
x
.
name
=
'机票'
this
.
CostAnalysisData
.
forEach
(
z
=>
{
x
.
data
.
push
(
z
[
'JiPiaoRate'
]
)
x
.
data
.
push
(
(
z
[
'JiPiao'
]
/
10000
).
toFixed
(
2
)
)
})
}
else
if
(
indexs
==
1
){
x
.
name
=
'房费
/收入
'
x
.
name
=
'房费'
this
.
CostAnalysisData
.
forEach
(
z
=>
{
x
.
data
.
push
(
z
[
'RommFeeRate'
]
)
x
.
data
.
push
(
(
z
[
'RoomFee'
]
/
10000
).
toFixed
(
2
)
)
})
}
else
if
(
indexs
==
2
){
x
.
name
=
'车费
/收入
'
x
.
name
=
'车费'
this
.
CostAnalysisData
.
forEach
(
z
=>
{
x
.
data
.
push
(
z
[
'CarFeeRate'
]
)
x
.
data
.
push
(
(
z
[
'CarFee'
]
/
10000
).
toFixed
(
2
)
)
})
}
else
if
(
indexs
==
3
){
x
.
name
=
'餐费
/收入
'
x
.
name
=
'餐费'
this
.
CostAnalysisData
.
forEach
(
z
=>
{
x
.
data
.
push
(
z
[
'MealFeeRate'
]
)
x
.
data
.
push
(
(
z
[
'MealFee'
]
/
10000
).
toFixed
(
2
)
)
})
}
else
if
(
indexs
==
4
){
x
.
name
=
'门票
/收入
'
x
.
name
=
'门票'
this
.
CostAnalysisData
.
forEach
(
z
=>
{
x
.
data
.
push
(
z
[
'TicketFeeRate'
]
)
x
.
data
.
push
(
(
z
[
'TicketFee'
]
/
10000
).
toFixed
(
2
)
)
})
}
else
if
(
indexs
==
5
){
x
.
name
=
'签证
/收入
'
x
.
name
=
'签证'
this
.
CostAnalysisData
.
forEach
(
z
=>
{
x
.
data
.
push
(
z
[
'VisaFeeRate'
]
)
x
.
data
.
push
(
(
z
[
'VisaFee'
]
/
10000
).
toFixed
(
2
)
)
})
}
// if(indexs>4){
...
...
@@ -201,7 +201,8 @@ export default {
axisLabel
:
{
textStyle
:
{
color
:
"#969696"
}
},
formatter
:
'{value}w'
},
splitLine
:{
show
:
true
,
...
...
@@ -214,7 +215,8 @@ export default {
],
dataZoom
:
[
{
type
:
'inside'
type
:
'inside'
,
disabled
:
true
}
],
series
:
datas
...
...
src/components/FinancialModule/DataAnalysis/components/Echart/IncomeChange.vue
View file @
2d63e7a0
<
template
>
<div
class=
"echartsBox"
>
<div
class=
"titleBox row"
>
<h3>
月度收入变化趋势图
%
</h3>
<h3>
月度收入变化趋势图
</h3>
<div
style=
"margin-left: 20px;"
>
...
...
@@ -67,8 +67,13 @@ export default {
type
:
'line'
,
showSymbol
:
true
,
smooth
:
true
,
symbolSize
:
1
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
y
.
IncomeRate
.
toFixed
(
2
)})
// 绑定实时数据数组
symbolSize
:
5
,
label
:
{
show
:
true
,
position
:
'top'
,
// 在顶部显示
formatter
:
'{c}w'
// 格式化金额,{c} 代表数据值
},
data
:
x
.
DetailList
.
map
(
y
=>
{
return
(
y
.
Income
/
10000
).
toFixed
(
2
)})
// 绑定实时数据数组
}
datas
.
push
(
obj
)
if
(
indexs
>
10
){
...
...
@@ -131,7 +136,9 @@ export default {
axisLabel
:
{
textStyle
:
{
color
:
"#969696"
}
},
formatter
:
'{value}w'
,
margin
:
20
// 标签距离y轴的距离为20
},
splitLine
:{
show
:
true
,
...
...
@@ -149,11 +156,12 @@ export default {
type
:
'dashed'
,
color
:
"#ddd"
}
}
}
,
},
dataZoom
:
[
{
type
:
'inside'
type
:
'inside'
,
disabled
:
true
}
],
series
:
datas
...
...
src/components/FinancialModule/DataAnalysis/components/Echart/WoolRateChange.vue
View file @
2d63e7a0
<
template
>
<div
class=
"echartsBox"
>
<div
class=
"titleBox row"
>
<h3>
月度毛利
率变化趋势图 %
(折线图)
</h3>
<h3>
月度毛利
变化趋势图
(折线图)
</h3>
<div
style=
"margin-left: 20px;"
>
...
...
@@ -66,9 +66,14 @@ export default {
name
:
Name
,
type
:
'line'
,
showSymbol
:
true
,
smooth
:
true
,
symbolSize
:
1
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
y
.
MaoLiRate
.
toFixed
(
2
)})
// 绑定实时数据数组
smooth
:
true
,
symbolSize
:
5
,
label
:
{
show
:
true
,
position
:
'top'
,
// 在顶部显示
formatter
:
'{c}w'
// 格式化金额,{c} 代表数据值
},
data
:
x
.
DetailList
.
map
(
y
=>
{
return
(
y
.
MaoLi
/
10000
).
toFixed
(
2
)})
// 绑定实时数据数组
}
datas
.
push
(
obj
)
if
(
indexs
>
10
){
...
...
@@ -131,7 +136,9 @@ export default {
axisLabel
:
{
textStyle
:
{
color
:
"#969696"
}
},
formatter
:
'{value}w'
,
margin
:
20
// 标签距离y轴的距离为20
},
splitLine
:{
show
:
true
,
...
...
@@ -153,7 +160,8 @@ export default {
},
dataZoom
:
[
{
type
:
'inside'
type
:
'inside'
,
disabled
:
true
}
],
series
:
datas
...
...
src/components/FinancialModule/DataAnalysis/components/Echart/WoolRateColumnar.vue
View file @
2d63e7a0
<
template
>
<div
class=
"echartsBox"
>
<div
class=
"titleBox row"
>
<h3>
月度毛利
率变化趋势图 %
(柱状图)
</h3>
<h3>
月度毛利
变化趋势图
(柱状图)
</h3>
<div
style=
"margin-left: 20px;"
>
...
...
@@ -65,11 +65,16 @@ export default {
let
obj
=
{
name
:
Name
,
type
:
'bar'
,
label
:
{
show
:
true
,
position
:
'top'
,
// 在顶部显示
formatter
:
'{c}w'
// 格式化金额,{c} 代表数据值
},
itemStyle
:{
barBorderRadius
:
5
,
},
barWidth
:
5
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
y
.
MaoLiRate
.
toFixed
(
2
)})
// 绑定实时数据数组
barWidth
:
30
,
data
:
x
.
DetailList
.
map
(
y
=>
{
return
(
y
.
MaoLi
/
10000
)
.
toFixed
(
2
)})
// 绑定实时数据数组
}
datas
.
push
(
obj
)
if
(
indexs
>
10
){
...
...
@@ -132,7 +137,9 @@ export default {
axisLabel
:
{
textStyle
:
{
color
:
"#969696"
}
},
formatter
:
'{value}w'
,
margin
:
50
// 标签距离y轴的距离为20
},
splitLine
:{
show
:
true
,
...
...
@@ -154,7 +161,8 @@ export default {
},
dataZoom
:
[
{
type
:
'inside'
type
:
'inside'
,
disabled
:
true
}
],
series
:
datas
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment