Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
Details
Activity
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
lihuizhen
ec-report-refactor
Commits
66f3b11f
Commit
66f3b11f
authored
Feb 25, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of 106.15.103.105:lihuizhen/ec-report-refactor into develop
parents
3b8cb5d5
d8fd2aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+12
-2
No files found.
components/HorizontalBar/HorizontalBar.vue
View file @
66f3b11f
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
devicePixelRatio
:
canvasDpr
devicePixelRatio
:
canvasDpr
})
})
canvas
.
setChart
(
chart
)
canvas
.
setChart
(
chart
)
const
{
dataList
:
{
categories
,
series
}
}
=
this
.
elementData
const
{
dataList
:
{
categories
,
series
,
preview
,
images
}
}
=
this
.
elementData
const
options
=
{
const
options
=
{
...
this
.
elementInfo
.
option
,
...
this
.
elementInfo
.
option
,
tooltip
:
{},
tooltip
:
{},
...
@@ -51,7 +51,17 @@ export default {
...
@@ -51,7 +51,17 @@ export default {
}
}
chart
.
setOption
(
options
)
chart
.
setOption
(
options
)
chart
.
on
(
'click'
,
event
=>
{
chart
.
on
(
'click'
,
event
=>
{
this
.
handleEchartsClick
(
event
)
// 特殊处理,如果preview为true,代表点击显示图片
if
(
preview
)
{
uni
.
previewImage
({
current
:
event
.
dataIndex
,
urls
:
images
,
indicator
:
'number'
,
loop
:
true
})
}
else
{
this
.
handleEchartsClick
(
event
)
}
})
})
return
chart
return
chart
})
})
...
...
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