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
f1529c01
Commit
f1529c01
authored
Sep 22, 2023
by
王礼鸿 Baimax Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单量占比接口对接
龙虎榜占比
parent
92632d7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
winners-list.vue
src/module/databoard/components/card/winners-list.vue
+7
-1
order-proportion.vue
src/module/databoard/databoard/order-proportion.vue
+1
-1
turnover-detail.vue
src/module/databoard/databoard/turnover-detail.vue
+0
-2
No files found.
src/module/databoard/components/card/winners-list.vue
View file @
f1529c01
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<td
class=
"winner_span"
:style=
"columnsStyle['title']"
>
{{
row
.
title
}}
</td>
<td
class=
"winner_span"
:style=
"columnsStyle['title']"
>
{{
row
.
title
}}
</td>
<td
v-for=
"(col, idz) in row.column"
:key=
"idz"
:style=
"columnsStyle[col.key]"
>
<td
v-for=
"(col, idz) in row.column"
:key=
"idz"
:style=
"columnsStyle[col.key]"
>
<p
class=
"key_span"
>
{{
col
.
key
}}
</p>
<p
class=
"key_span"
>
{{
col
.
key
}}
</p>
<p
class=
"value_span"
:style=
"col.valStyle"
>
{{
col
.
value
}}
</p>
<p
class=
"value_span"
:style=
"col.valStyle"
>
{{
colFormatter
[
''
+
idz
]?
colFormatter
[
''
+
idz
](
col
.
value
):
col
.
value
}}
</p>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -38,6 +38,12 @@ export default {
...
@@ -38,6 +38,12 @@ export default {
{
title
:
'标题列'
,
column
:
[{
key
:
'字段'
,
value
:
'0'
}]}
{
title
:
'标题列'
,
column
:
[{
key
:
'字段'
,
value
:
'0'
}]}
];
];
}
}
},
colFormatter
:{
type
:
Object
,
default
:
function
(){
return
{};
}
}
}
},
},
data
()
{
data
()
{
...
...
src/module/databoard/databoard/order-proportion.vue
View file @
f1529c01
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</div>
</div>
<div
class=
"chart"
>
<div
class=
"chart"
>
<display-board
class=
"trade_left"
title=
"订单量占比"
title_size=
"large"
>
<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%'}}"/>
<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>
</display-board>
<line-bar-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
style=
"width: 75%;height: 100%;"
:data=
"currentDetailData"
x=
"company"
y=
"value"
:title=
"chartTitle"
:formatter=
"formatter"
:line-formatter=
"lineFormatter"
bar-formatter=
"
{@value}万元"/>
</div>
</div>
...
...
src/module/databoard/databoard/turnover-detail.vue
View file @
f1529c01
...
@@ -256,7 +256,6 @@ export default {
...
@@ -256,7 +256,6 @@ export default {
}
}
},
},
selectLegend
(
title
)
{
selectLegend
(
title
)
{
console
.
log
(
title
)
let
name
;
let
name
;
this
.
chart
.
dispatchAction
({
this
.
chart
.
dispatchAction
({
type
:
'legendAllSelect'
type
:
'legendAllSelect'
...
@@ -295,7 +294,6 @@ export default {
...
@@ -295,7 +294,6 @@ export default {
default
:
default
:
break
;
break
;
}
}
console
.
log
(
name
)
if
(
name
)
{
if
(
name
)
{
this
.
chart
.
dispatchAction
({
this
.
chart
.
dispatchAction
({
type
:
'legendInverseSelect'
type
:
'legendInverseSelect'
...
...
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