Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 328622c3
authored
Aug 11, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加同比、环比
1 parent
d72730cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
src/views/crowdfunding/CrowdfundLeft.vue
src/views/crowdfunding/components/GlDemension.vue
src/views/crowdfunding/CrowdfundLeft.vue
View file @
328622c
...
...
@@ -19,11 +19,11 @@
<div
class=
"ratio"
>
<div
class=
"ratio-left"
>
周同比
<span
class=
"positive"
>
12%
</span>
<span
class=
"positive"
>
{{
toPercent
(
tb
)
}}
</span>
</div>
<div
class=
"ratio-right"
>
日环比
<span
class=
"negative"
>
-7%
</span>
<span
class=
"negative"
>
{{
toPercent
(
hb
)
}}
</span>
</div>
</div>
<BarChart
ref=
"amountChartRef"
domId=
"amountChart"
:dataList
.
sync=
"dataList.amountDataList"
:colorList=
"color.amountColorList"
:tooltipFormatterObj=
"tooltips.outputvalueTooltip"
></BarChart>
...
...
@@ -79,6 +79,8 @@ export default {
},
data
()
{
return
{
tb
:
''
,
hb
:
''
,
outputvalue
:
''
,
orderNum
:
''
,
activityNum
:
''
,
...
...
@@ -119,6 +121,8 @@ export default {
async
getAllOverview
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getAllOverview
()
const
_data
=
_result
.
data
.
dataList
[
0
]
this
.
tb
=
_data
.
tb
this
.
hb
=
_data
.
hb
this
.
outputvalue
=
_data
.
outputvalue
this
.
orderNum
=
_data
.
orderNum
this
.
activityNum
=
_data
.
activityNum
...
...
src/views/crowdfunding/components/GlDemension.vue
View file @
328622c
...
...
@@ -90,7 +90,9 @@ export default {
})
},
mounted
()
{},
mounted
()
{
console
.
log
(
this
,
'thid'
);
},
methods
:
{
async
getGLOverview
(
Month
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment