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
f94bf186
Commit
f94bf186
authored
Jan 26, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: echarts 引入方式修改
parent
d4a776a0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
24 deletions
+15
-24
BarMixMap.vue
components/BarMixMap/BarMixMap.vue
+1
-3
ChinaMap.vue
components/ChinaMap/ChinaMap.vue
+1
-5
DashboardProgress.vue
components/DashboardProgress/DashboardProgress.vue
+1
-2
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+1
-2
LineMixBar.vue
components/LineMixBar/LineMixBar.vue
+1
-2
NormalBar.vue
components/NormalBar/NormalBar.vue
+1
-2
NormalGauge.vue
components/NormalGauge/NormalGauge.vue
+1
-2
NormalLine.vue
components/NormalLine/NormalLine.vue
+1
-2
NormalPie.vue
components/NormalPie/NormalPie.vue
+1
-2
NormalRadar.vue
components/NormalRadar/NormalRadar.vue
+1
-2
main.js
main.js
+5
-0
No files found.
components/BarMixMap/BarMixMap.vue
View file @
f94bf186
...
...
@@ -13,8 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
*
as
chinaJson
from
'@/components/uni-ec-canvas/china.json'
import
echartElementData
from
'@/mixins/echartElementData.js'
import
{
geoCoordMapList
}
from
'@/components/uni-ec-canvas/geoCoordMap.js'
let
chart
=
null
...
...
@@ -37,7 +35,7 @@
this
.
$nextTick
(()
=>
{
clearInterval
(
this
.
changeTimer
)
this
.
$refs
[
'barMixMapCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/ChinaMap/ChinaMap.vue
View file @
f94bf186
...
...
@@ -13,8 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
*
as
chinaJson
from
'@/components/uni-ec-canvas/china.json'
import
echartElementData
from
'@/mixins/echartElementData.js'
import
{
geoCoordMapList
}
from
'@/components/uni-ec-canvas/geoCoordMap.js'
let
chart
=
null
...
...
@@ -35,13 +33,11 @@
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'chinaMapCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
})
echarts
.
registerMap
(
'china'
,
chinaJson
)
canvas
.
setChart
(
chart
)
const
{
dataList
}
=
this
.
elementData
const
seriesData
=
dataList
.
chinaMapAreas
||
[]
...
...
components/DashboardProgress/DashboardProgress.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -41,7 +40,7 @@
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'dashboardProgressCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/HorizontalBar/HorizontalBar.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -37,7 +36,7 @@ export default {
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'horizontalBarCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/LineMixBar/LineMixBar.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -37,7 +36,7 @@
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'lineMixBarCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/NormalBar/NormalBar.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -37,7 +36,7 @@ export default {
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'normalbarCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/NormalGauge/NormalGauge.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -41,7 +40,7 @@ export default {
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'normalGaugeCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/NormalLine/NormalLine.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -36,7 +35,7 @@ export default {
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'normalLineCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/NormalPie/NormalPie.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -41,7 +40,7 @@ export default {
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'normalPieCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
components/NormalRadar/NormalRadar.vue
View file @
f94bf186
...
...
@@ -13,7 +13,6 @@
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -37,7 +36,7 @@
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'normalRadarCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
echarts
.
init
(
canvas
,
null
,
{
chart
=
this
.
$
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
main.js
View file @
f94bf186
...
...
@@ -14,6 +14,11 @@ Vue.mixin(vuexStore)
import
store
from
'@/store/index.js'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
*
as
chinaJson
from
'@/components/uni-ec-canvas/china.json'
echarts
.
registerMap
(
'china'
,
chinaJson
)
Vue
.
prototype
.
$echarts
=
echarts
const
app
=
new
Vue
({
store
,
...
App
...
...
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