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
f45962b2
Commit
f45962b2
authored
Oct 18, 2023
by
王礼鸿 Baimax Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单量占比饼图和柱状图修改万元为万吨
parent
9eadb3a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
order-proportion.vue
src/module/databoard/databoard/order-proportion.vue
+2
-2
index.vue
src/module/databoard/index.vue
+1
-1
No files found.
src/module/databoard/databoard/order-proportion.vue
View file @
f45962b2
...
...
@@ -40,7 +40,7 @@
<display-board
class=
"trade_left"
title=
"订单量占比"
title_size=
"large"
>
<winners-list
style=
"height: 96%;overflow: auto;"
id=
"ar_company_list"
:rows=
"currentDetailData"
:show-icon=
"false"
:columns-style=
"
{'title':{'width':'50%'},'订单量(万吨)':{'width':'30%'}}" :col-formatter="{'1':(v)=>v+'%'}"/>
</display-board>
<line-bar-chart
ref=
"chart"
style=
"width: 75%;height: 100%;"
:data=
"currentDetailData"
x=
"company"
y=
"value"
:title=
"chartTitle"
:formatter=
"formatter"
:line-formatter=
"lineFormatter"
bar-formatter=
"
{@value}万
元
"/>
<line-bar-chart
ref=
"chart"
style=
"width: 75%;height: 100%;"
:data=
"currentDetailData"
x=
"company"
y=
"value"
:title=
"chartTitle"
:formatter=
"formatter"
:line-formatter=
"lineFormatter"
bar-formatter=
"
{@value}万
吨
"/>
</div>
</div>
</
template
>
...
...
@@ -122,7 +122,7 @@ export default {
this
.
getDetailData
();
},
formatter
(
param
){
return
"订单量:<br>"
+
param
[
0
].
marker
+
param
[
0
].
name
+
":
\
t"
+
param
[
0
].
data
.
value
+
"万
元
<br> "
+
param
[
1
].
marker
+
"占比:"
+
param
[
1
].
data
.
proportion
+
"%"
;
return
"订单量:<br>"
+
param
[
0
].
marker
+
param
[
0
].
name
+
":
\
t"
+
param
[
0
].
data
.
value
+
"万
吨
<br> "
+
param
[
1
].
marker
+
"占比:"
+
param
[
1
].
data
.
proportion
+
"%"
;
},
lineFormatter
(
param
){
return
param
.
data
.
proportion
+
'%'
;
...
...
src/module/databoard/index.vue
View file @
f45962b2
...
...
@@ -581,7 +581,7 @@ export default {
this
.
getOrderBusinessCondition
();
},
pieDataValueFormatter
(
param
)
{
return
conver_amont
(
param
)
+
"万
元
"
;
return
conver_amont
(
param
)
+
"万
吨
"
;
},
pieDataFormatter
(
param
)
{
return
param
.
name
+
'
\
r
\
n'
+
this
.
pieDataValueFormatter
(
param
.
value
);
...
...
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