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
90a8f0d8
Commit
90a8f0d8
authored
May 13, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: datazoom drag when back from FullScreen
parent
fba69cd3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
36 deletions
+16
-36
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+4
-9
LineMixBar.vue
components/LineMixBar/LineMixBar.vue
+4
-9
NormalBar.vue
components/NormalBar/NormalBar.vue
+4
-9
NormalLine.vue
components/NormalLine/NormalLine.vue
+4
-9
No files found.
components/HorizontalBar/HorizontalBar.vue
View file @
90a8f0d8
...
@@ -187,18 +187,13 @@
...
@@ -187,18 +187,13 @@
}
}
lastCount
=
count
lastCount
=
count
if
(
flag
)
{
if
(
flag
)
{
var
option
=
chart
.
getOption
()
const
series
=
this
.
ec
.
option
.
series
// TODO:切换全屏后返回,chart实例不存在了
if
(
!
option
)
{
// 这样处理没有效果
option
=
this
.
ec
.
option
return
}
const
series
=
option
.
series
series
.
map
(
item
=>
{
series
.
map
(
item
=>
{
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
})
})
chart
.
setOption
({
series
:
series
})
this
.
$set
(
this
.
ec
.
option
,
'series'
,
series
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.start'
,
event
.
start
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.end'
,
event
.
end
)
}
}
}
}
}
}
...
...
components/LineMixBar/LineMixBar.vue
View file @
90a8f0d8
...
@@ -177,18 +177,13 @@
...
@@ -177,18 +177,13 @@
}
}
lastCount
=
count
lastCount
=
count
if
(
flag
)
{
if
(
flag
)
{
var
option
=
chart
.
getOption
()
const
series
=
this
.
ec
.
option
.
series
// TODO:切换全屏后返回,chart实例不存在了
if
(
!
option
)
{
// 这样处理没有效果
option
=
this
.
ec
.
option
return
}
const
series
=
option
.
series
series
.
map
(
item
=>
{
series
.
map
(
item
=>
{
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
})
})
chart
.
setOption
({
series
:
series
})
this
.
$set
(
this
.
ec
.
option
,
'series'
,
series
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.start'
,
event
.
start
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.end'
,
event
.
end
)
}
}
}
}
}
}
...
...
components/NormalBar/NormalBar.vue
View file @
90a8f0d8
...
@@ -154,18 +154,13 @@
...
@@ -154,18 +154,13 @@
}
}
lastCount
=
count
lastCount
=
count
if
(
flag
)
{
if
(
flag
)
{
var
option
=
chart
.
getOption
()
const
series
=
this
.
ec
.
option
.
series
// TODO:切换全屏后返回,chart实例不存在了
if
(
!
option
)
{
// 这样处理没有效果
option
=
this
.
ec
.
option
return
}
const
series
=
option
.
series
series
.
map
(
item
=>
{
series
.
map
(
item
=>
{
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
})
})
chart
.
setOption
({
series
:
series
})
this
.
$set
(
this
.
ec
.
option
,
'series'
,
series
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.start'
,
event
.
start
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.end'
,
event
.
end
)
}
}
}
}
}
}
...
...
components/NormalLine/NormalLine.vue
View file @
90a8f0d8
...
@@ -156,18 +156,13 @@
...
@@ -156,18 +156,13 @@
}
}
lastCount
=
count
lastCount
=
count
if
(
flag
)
{
if
(
flag
)
{
var
option
=
chart
.
getOption
()
const
series
=
this
.
ec
.
option
.
series
// TODO:切换全屏后返回,chart实例不存在了
if
(
!
option
)
{
// 这样处理没有效果
option
=
this
.
ec
.
option
return
}
const
series
=
option
.
series
series
.
map
(
item
=>
{
series
.
map
(
item
=>
{
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
item
.
label
.
show
=
count
<=
this
.
elementInfo
.
option
.
dataset
.
maxCount
})
})
chart
.
setOption
({
series
:
series
})
this
.
$set
(
this
.
ec
.
option
,
'series'
,
series
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.start'
,
event
.
start
)
this
.
$set
(
this
.
ec
.
option
,
'dataZoom.end'
,
event
.
end
)
}
}
}
}
}
}
...
...
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