Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
潘自豪 Rambo Pan
shld-databoard-ui
Commits
b910bbdc
Commit
b910bbdc
authored
Sep 21, 2023
by
潘自豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营业额数据
parent
f137b7d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
58 deletions
+79
-58
turnover-detail.vue
src/module/databoard/databoard/turnover-detail.vue
+79
-58
No files found.
src/module/databoard/databoard/turnover-detail.vue
View file @
b910bbdc
<
template
>
<
template
>
<div
class=
"turnover-detail"
>
<div
class=
"turnover-detail"
>
<div
class=
"card-board"
>
<div
class=
"card-board"
>
<contrast-card
v-for=
"(data,key) in currentData.head"
style=
"height: 100%;width: 20%;"
:class=
"
{'selectCard': key}"
<contrast-card
v-for=
"(data,key) in currentData.head"
style=
"height: 100%;width: 20%;"
:class=
"
{'selectCard': key}"
@click.native="selectLegend(key)">
@click.native="selectLegend(key)">
<title-content-mark
style=
"color: #369afa;float: left;width: 40%;font-size: 18px"
<title-content-mark
style=
"color: #369afa;float: left;width: 40%;font-size: 18px"
:title-style=
"
{'font-weight': 'bold'}" :title="key" :content="data.amount" isBold/>
:title-style=
"
{'font-weight': 'bold'}" :title="key" :content="data.amount" isBold/>
...
@@ -118,7 +119,7 @@ export default {
...
@@ -118,7 +119,7 @@ export default {
currentBtn
:
"day"
,
currentBtn
:
"day"
,
currentLegend
:
'汽运(元)'
,
currentLegend
:
'汽运(元)'
,
currentCard
:
'营业额'
,
currentCard
:
'营业额'
,
chartOption
:{
chartOption
:
{
legend
:
{
legend
:
{
textStyle
:
{
textStyle
:
{
color
:
'white'
color
:
'white'
...
@@ -202,7 +203,7 @@ export default {
...
@@ -202,7 +203,7 @@ export default {
},
},
watch
:
{},
watch
:
{},
methods
:
{
methods
:
{
back
(){
back
()
{
this
.
$router
.
push
({
path
:
'/'
});
this
.
$router
.
push
({
path
:
'/'
});
},
},
resizeChart
()
{
resizeChart
()
{
...
@@ -253,10 +254,28 @@ export default {
...
@@ -253,10 +254,28 @@ export default {
case
'铁运营业额'
:
case
'铁运营业额'
:
name
=
"铁运(元)"
;
name
=
"铁运(元)"
;
break
;
break
;
case
'汽运成本'
:
name
=
"汽运(元)"
;
break
;
case
'水运成本'
:
name
=
"水运(元)"
;
break
;
case
'铁运成本'
:
name
=
"铁运(元)"
;
break
;
case
'汽运毛利'
:
name
=
"汽运(元)"
;
break
;
case
'水运毛利'
:
name
=
"水运(元)"
;
break
;
case
'铁运毛利'
:
name
=
"铁运(元)"
;
break
;
default
:
default
:
break
;
break
;
}
}
console
.
log
(
name
)
if
(
name
)
{
if
(
name
)
{
this
.
chart
.
dispatchAction
({
this
.
chart
.
dispatchAction
({
type
:
'legendInverseSelect'
type
:
'legendInverseSelect'
...
@@ -271,7 +290,7 @@ export default {
...
@@ -271,7 +290,7 @@ export default {
this
.
chartOption
.
series
[
3
].
data
=
[];
this
.
chartOption
.
series
[
3
].
data
=
[];
}
}
this
.
currentLegend
=
name
;
this
.
currentLegend
=
name
;
this
.
currentCard
=
data
.
title
;
this
.
currentCard
=
title
;
this
.
chart
.
setOption
(
this
.
chartOption
);
this
.
chart
.
setOption
(
this
.
chartOption
);
},
},
...
@@ -345,11 +364,12 @@ input[type="button"] {
...
@@ -345,11 +364,12 @@ input[type="button"] {
background-color
:
#1234a1
;
background-color
:
#1234a1
;
}
}
input
[
type
=
"button"
]
:hover
{
input
[
type
=
"button"
]
:hover
{
color
:
#1234a1
!important
;
color
:
#1234a1
!important
;
background-color
:
#00c8d6
!important
;
background-color
:
#00c8d6
!important
;
}
}
.selectedBtn
{
.selectedBtn
{
color
:
#1234a1
!important
;
color
:
#1234a1
!important
;
background-color
:
#00c8d6
!important
;
background-color
:
#00c8d6
!important
;
}
}
...
@@ -358,7 +378,8 @@ input[type="button"]:hover{
...
@@ -358,7 +378,8 @@ input[type="button"]:hover{
color
:
#00c8d6
;
color
:
#00c8d6
;
background-color
:
#1234a1
;
background-color
:
#1234a1
;
}
}
.selectCard
{
.selectCard
{
background-color
:
var
(
--card-background-select-color
)
!important
;
background-color
:
var
(
--card-background-select-color
)
!important
;
}
}
</
style
>
</
style
>
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