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
fee85e7f
Commit
fee85e7f
authored
May 10, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://106.15.103.105/lihuizhen/ec-report-refactor
into develop
parents
e2befb2b
ff621b41
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
1 deletion
+21
-1
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+4
-0
LineMixBar.vue
components/LineMixBar/LineMixBar.vue
+5
-1
NormalBar.vue
components/NormalBar/NormalBar.vue
+4
-0
NormalLine.vue
components/NormalLine/NormalLine.vue
+4
-0
NormalPie.vue
components/NormalPie/NormalPie.vue
+4
-0
No files found.
components/HorizontalBar/HorizontalBar.vue
View file @
fee85e7f
...
...
@@ -86,6 +86,10 @@
this
.
$set
(
this
.
ec
.
option
,
'yAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
this
.
$set
(
this
.
ec
.
option
,
'dataZoom'
,
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
[{...
this
.
elementInfo
.
dataZoom
,...
DATAZOOM_DEFAULT
}]
:
[{
show
:
false
}])
if
(
chart
)
{
// 重新setOption,使得设置的formatter生效
chart
.
setOption
(
this
.
ec
.
option
)
}
if
(
preview
)
{
this
.
cacheImages
(
images
)
}
...
...
components/LineMixBar/LineMixBar.vue
View file @
fee85e7f
...
...
@@ -90,7 +90,11 @@
const
{
categories
,
series
}
=
this
.
elementData
.
dataList
this
.
$set
(
this
.
ec
.
option
,
'xAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
this
.
$set
(
this
.
ec
.
option
,
'dataZoom'
,
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
[{...
this
.
elementInfo
.
dataZoom
,...
DATAZOOM_DEFAULT
}]
:
[{
show
:
false
}])
this
.
$set
(
this
.
ec
.
option
,
'dataZoom'
,
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
[{...
this
.
elementInfo
.
dataZoom
,...
DATAZOOM_DEFAULT
}]
:
[{
show
:
false
}])
if
(
chart
)
{
// 重新setOption,使得设置的formatter生效
chart
.
setOption
(
this
.
ec
.
option
)
}
},
/**
* 处理数据
...
...
components/NormalBar/NormalBar.vue
View file @
fee85e7f
...
...
@@ -77,6 +77,10 @@
this
.
$set
(
this
.
ec
.
option
,
'xAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
this
.
$set
(
this
.
ec
.
option
,
'dataZoom'
,
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
[{...
this
.
elementInfo
.
dataZoom
,...
DATAZOOM_DEFAULT
}]
:
[{
show
:
false
}])
if
(
chart
)
{
// 重新setOption,使得设置的formatter生效
chart
.
setOption
(
this
.
ec
.
option
)
}
},
/**
* 处理数据
...
...
components/NormalLine/NormalLine.vue
View file @
fee85e7f
...
...
@@ -79,6 +79,10 @@
this
.
$set
(
this
.
ec
.
option
,
'xAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
this
.
$set
(
this
.
ec
.
option
,
'dataZoom'
,
this
.
elementInfo
.
dataZoom
&&
this
.
elementInfo
.
dataZoom
.
show
?
[{...
this
.
elementInfo
.
dataZoom
,...
DATAZOOM_DEFAULT
}]
:
[{
show
:
false
}])
if
(
chart
)
{
// 重新setOption,使得设置的formatter生效
chart
.
setOption
(
this
.
ec
.
option
)
}
},
/**
* 处理数据
...
...
components/NormalPie/NormalPie.vue
View file @
fee85e7f
...
...
@@ -59,6 +59,10 @@ export default {
initChart
()
{
const
{
series
}
=
this
.
elementData
.
dataList
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
if
(
chart
)
{
// 重新setOption,使得设置的formatter生效
chart
.
setOption
(
this
.
ec
.
option
)
}
},
dealSeriesData
(
data
)
{
...
...
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