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
14afb33d
Commit
14afb33d
authored
Mar 03, 2022
by
Jenny_1007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
48ccee35
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
317 additions
and
314 deletions
+317
-314
.eslintignore
.eslintignore
+1
-1
BarMixMap.vue
components/BarMixMap/BarMixMap.vue
+2
-2
ChinaMap.vue
components/ChinaMap/ChinaMap.vue
+2
-2
CountTo.vue
components/CountTo/CountTo.vue
+3
-7
DashboardProgress.vue
components/DashboardProgress/DashboardProgress.vue
+9
-10
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+47
-43
LineMixBar.vue
components/LineMixBar/LineMixBar.vue
+2
-2
NormalBar.vue
components/NormalBar/NormalBar.vue
+33
-34
NormalGauge.vue
components/NormalGauge/NormalGauge.vue
+65
-65
NormalLine.vue
components/NormalLine/NormalLine.vue
+37
-38
NormalPie.vue
components/NormalPie/NormalPie.vue
+89
-87
NormalRadar.vue
components/NormalRadar/NormalRadar.vue
+2
-2
NormalTitle.vue
components/NormalTitle/NormalTitle.vue
+1
-1
main.js
main.js
+2
-2
manifest.json
manifest.json
+4
-1
echartElementData.js
mixins/echartElementData.js
+6
-8
pages.json
pages.json
+1
-1
details.vue
pages/details/details.vue
+1
-1
index.vue
pages/index/index.vue
+6
-6
webView.vue
pages/webView/webView.vue
+0
-0
china.json
uni-ec-canvas/china.json
+0
-0
echarts.js
uni-ec-canvas/echarts.js
+0
-0
geoCoordMap.js
uni-ec-canvas/geoCoordMap.js
+0
-0
uni-ec-canvas.vue
uni-ec-canvas/uni-ec-canvas.vue
+4
-1
wx-canvas.js
uni-ec-canvas/wx-canvas.js
+0
-0
No files found.
.eslintignore
View file @
14afb33d
unpackage
node_modules
uview-ui
components/uni-ec-canvas/echarts
\ No newline at end of file
uni-ec-canvas/echarts
\ No newline at end of file
components/BarMixMap/BarMixMap.vue
View file @
14afb33d
...
...
@@ -9,9 +9,9 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
import
{
geoCoordMapList
}
from
'@/
components/
uni-ec-canvas/geoCoordMap.js'
import
{
geoCoordMapList
}
from
'@/uni-ec-canvas/geoCoordMap.js'
let
chart
=
null
export
default
{
name
:
"BarMixMap"
,
...
...
components/ChinaMap/ChinaMap.vue
View file @
14afb33d
...
...
@@ -9,9 +9,9 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
import
{
geoCoordMapList
}
from
'@/
components/
uni-ec-canvas/geoCoordMap.js'
import
{
geoCoordMapList
}
from
'@/uni-ec-canvas/geoCoordMap.js'
let
chart
=
null
export
default
{
name
:
"ChinaMap"
,
...
...
components/CountTo/CountTo.vue
View file @
14afb33d
...
...
@@ -6,9 +6,9 @@
<u-count-to
:start-val=
"startVal"
:end-val=
"endVal"
:duration=
"
duration
"
:duration=
"
(elementInfo.option.countTo.duration || 2) * 1000
"
separator=
","
:color=
"elementInfo.option.countTo.color"
:color=
"elementInfo.option.countTo.color
|| ''
"
:font-size=
"getFontSize()"
></u-count-to>
</view>
...
...
@@ -22,8 +22,7 @@
data
()
{
return
{
startVal
:
0
,
endVal
:
0
,
duration
:
2000
endVal
:
0
};
},
methods
:
{
...
...
@@ -32,9 +31,6 @@
that
.
$nextTick
(()
=>
{
that
.
startVal
=
that
.
endVal
that
.
endVal
=
that
.
elementData
.
dataList
.
endVal
if
(
that
.
elementInfo
.
option
.
countTo
.
duration
)
{
that
.
duration
=
that
.
elementInfo
.
option
.
countTo
.
duration
*
1000
}
})
},
getFontSize
()
{
...
...
components/DashboardProgress/DashboardProgress.vue
View file @
14afb33d
...
...
@@ -9,7 +9,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -19,7 +19,8 @@
data
()
{
return
{
ec
:
{
lazyLoad
:
true
lazyLoad
:
true
,
option
:
{}
}
};
},
...
...
@@ -42,10 +43,6 @@
let
{
endVal
}
=
this
.
elementData
.
dataList
endVal
=
endVal
||
0
const
{
width
:
pCanvasWidth
,
strokeColor
,
trailColor
,
titleColor
,
strokeWidth
,
gapPosition
,
gapDegree
,
strokeLinecap
}
=
this
.
elementInfo
.
option
.
progress
const
guageChart
=
[{
name
:
""
,
value
:
endVal
}]
const
color
=
[
[
endVal
/
100
,
strokeColor
],
[
1
,
trailColor
]
...
...
@@ -86,7 +83,7 @@
break
;
}
const
axisLineWidth
=
strokeWidth
/
100
*
pCanvasWidth
const
options
=
{
this
.
ec
.
option
=
{
...
this
.
elementInfo
.
option
,
tooltip
:
{
formatter
:
'{a} <br/>{b} : {c}%'
...
...
@@ -130,11 +127,13 @@
radius
:
pCanvasWidth
/
2
-
strokeWidth
*
2
,
}]
}
chart
.
setOption
(
options
)
chart
.
setOption
(
this
.
ec
.
option
)
return
chart
},
initChart
()
{
this
.
$refs
[
'dashboardProgressCanvas'
].
init
(
this
.
inited
)
let
{
endVal
}
=
this
.
elementData
.
dataList
this
.
ec
.
option
.
title
[
0
].
text
=
`
${
endVal
}
%`
this
.
ec
.
option
.
series
[
0
].
axisLine
.
lineStyle
.
color
[
0
][
0
]
=
endVal
/
100
}
}
}
...
...
components/HorizontalBar/HorizontalBar.vue
View file @
14afb33d
...
...
@@ -4,7 +4,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -14,19 +14,20 @@
data
()
{
return
{
ec
:
{
lazyLoad
:
true
lazyLoad
:
true
,
option
:
{}
}
}
},
components
:
{
uniEcCanvas
},
mounted
()
{
this
.
$refs
[
'horizontalBarCanvas'
].
init
(
this
.
inited
)
},
methods
:
{
initChart
()
{
const
that
=
this
that
.
$nextTick
(()
=>
{
that
.
$refs
[
'horizontalBarCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
that
.
$echarts
.
init
(
canvas
,
null
,
{
inited
(
canvas
,
width
,
height
,
canvasDpr
)
{
chart
=
this
.
$echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
...
...
@@ -39,17 +40,17 @@
preview
,
images
}
}
=
that
.
elementData
const
options
=
{
...
that
.
elementInfo
.
option
,
}
=
this
.
elementData
this
.
ec
.
option
=
{
...
this
.
elementInfo
.
option
,
tooltip
:
{},
yAxis
:
{
...
that
.
elementInfo
.
option
.
yAxis
,
...
this
.
elementInfo
.
option
.
yAxis
,
data
:
categories
},
series
:
that
.
dealSeriesData
(
series
)
series
:
this
.
dealSeriesData
(
series
)
}
chart
.
setOption
(
options
)
chart
.
setOption
(
this
.
ec
.
option
)
chart
.
on
(
'click'
,
event
=>
{
// 特殊处理,如果preview为true,代表点击显示图片
if
(
preview
)
{
...
...
@@ -58,12 +59,15 @@
urls
:
images
})
}
else
{
that
.
handleEchartsClick
(
event
)
this
.
handleEchartsClick
(
event
)
}
})
return
chart
})
})
},
initChart
()
{
const
{
categories
,
series
}
=
this
.
elementData
.
dataList
this
.
$set
(
this
.
ec
.
option
,
'yAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
},
/**
* 处理数据
...
...
components/LineMixBar/LineMixBar.vue
View file @
14afb33d
...
...
@@ -9,7 +9,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
components/NormalBar/NormalBar.vue
View file @
14afb33d
...
...
@@ -4,7 +4,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -14,46 +14,45 @@
data
()
{
return
{
ec
:
{
lazyLoad
:
true
lazyLoad
:
true
,
option
:
{}
}
}
},
components
:
{
uniEcCanvas
},
mounted
()
{
this
.
$refs
[
'normalbarCanvas'
].
init
(
this
.
inited
)
},
methods
:
{
initChart
()
{
const
that
=
this
that
.
$nextTick
(()
=>
{
that
.
$refs
[
'normalbarCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
that
.
$echarts
.
init
(
canvas
,
null
,
{
inited
(
canvas
,
width
,
height
,
canvasDpr
)
{
chart
=
this
.
$echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
})
canvas
.
setChart
(
chart
)
const
{
dataList
:
{
categories
,
series
}
}
=
that
.
elementData
const
options
=
{
...
that
.
elementInfo
.
option
,
const
{
categories
,
series
}
=
this
.
elementData
.
dataList
this
.
ec
.
option
=
{
...
this
.
elementInfo
.
option
,
tooltip
:
{},
xAxis
:
{
...
that
.
elementInfo
.
option
.
xAxis
,
...
this
.
elementInfo
.
option
.
xAxis
,
data
:
categories
},
series
:
that
.
dealSeriesData
(
series
)
series
:
this
.
dealSeriesData
(
series
)
}
chart
.
setOption
(
options
)
chart
.
setOption
(
this
.
ec
.
option
)
chart
.
on
(
'click'
,
event
=>
{
that
.
handleEchartsClick
(
event
)
this
.
handleEchartsClick
(
event
)
})
return
chart
})
})
},
initChart
()
{
const
{
categories
,
series
}
=
this
.
elementData
.
dataList
this
.
$set
(
this
.
ec
.
option
,
'xAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
},
/**
* 处理数据
...
...
components/NormalGauge/NormalGauge.vue
View file @
14afb33d
...
...
@@ -9,7 +9,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/
uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
components/NormalLine/NormalLine.vue
View file @
14afb33d
...
...
@@ -4,7 +4,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -13,55 +13,54 @@
data
()
{
return
{
ec
:
{
lazyLoad
:
true
lazyLoad
:
true
,
option
:
{}
}
}
},
components
:
{
uniEcCanvas
},
mounted
()
{
this
.
$refs
[
'normalLineCanvas'
].
init
(
this
.
inited
)
},
methods
:
{
initChart
()
{
const
that
=
this
that
.
$nextTick
(()
=>
{
that
.
$refs
[
'normalLineCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
that
.
$echarts
.
init
(
canvas
,
null
,
{
inited
(
canvas
,
width
,
height
,
canvasDpr
)
{
chart
=
this
.
$echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
})
canvas
.
setChart
(
chart
)
const
{
dataList
:
{
categories
,
series
}
}
=
that
.
elementData
const
options
=
{
...
that
.
elementInfo
.
option
,
const
{
categories
=
[],
series
=
[]
}
=
this
.
elementData
.
dataList
this
.
ec
.
option
=
{
...
this
.
elementInfo
.
option
,
color
:
[
'#00f2f1'
,
'#ed3f35'
,
'#1089E7'
,
"#F8B448"
,
"#8B78F6"
,
'#8cd8ff'
,
'#f0ad54'
,
'#ffffff'
,
'#000000'
],
tooltip
:
{},
//
tooltip: {},
xAxis
:
{
...
that
.
elementInfo
.
option
.
xAxis
,
...
this
.
elementInfo
.
option
.
xAxis
,
data
:
categories
},
series
:
that
.
dealSeriesData
(
series
)
series
:
this
.
dealSeriesData
(
series
)
}
chart
.
setOption
(
options
)
chart
.
setOption
(
this
.
ec
.
option
)
chart
.
on
(
'click'
,
event
=>
{
that
.
handleEchartsClick
(
event
)
this
.
handleEchartsClick
(
event
)
})
return
chart
})
})
},
initChart
()
{
const
{
categories
,
series
}
=
this
.
elementData
.
dataList
this
.
$set
(
this
.
ec
.
option
,
'xAxis.data'
,
categories
)
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
},
/**
* 处理数据
*/
dealSeriesData
(
data
)
{
if
(
!
data
)
return
if
(
!
data
)
return
[]
const
that
=
this
const
newData
=
data
.
map
(
item
=>
{
const
config
=
{
...
...
components/NormalPie/NormalPie.vue
View file @
14afb33d
...
...
@@ -9,7 +9,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/
uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
@@ -20,7 +20,8 @@ export default {
data
()
{
return
{
ec
:
{
lazyLoad
:
true
lazyLoad
:
true
,
option
:
{}
}
};
},
...
...
@@ -28,35 +29,36 @@ export default {
components
:
{
uniEcCanvas
},
mounted
()
{
this
.
$refs
[
'normalPieCanvas'
].
init
(
this
.
inited
)
},
methods
:
{
initChart
()
{
const
that
=
this
that
.
$nextTick
(()
=>
{
that
.
$refs
[
'normalPieCanvas'
].
init
((
canvas
,
width
,
height
,
canvasDpr
)
=>
{
chart
=
that
.
$echarts
.
init
(
canvas
,
null
,
{
inited
(
canvas
,
width
,
height
,
canvasDpr
)
{
chart
=
this
.
$echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
canvasDpr
})
canvas
.
setChart
(
chart
)
const
{
dataList
:
{
series
}
}
=
that
.
elementData
const
options
=
{
...
that
.
elementInfo
.
option
,
const
{
series
}
=
this
.
elementData
.
dataList
this
.
ec
.
option
=
{
...
this
.
elementInfo
.
option
,
color
:
[
'#1089E7'
,
'#F57474'
,
'#56D0E3'
,
'#F8B448'
,
'#8B78F6'
],
tooltip
:
{
trigger
:
'item'
,
formatter
:
'{a}<br/>{b}:{c}({d}%)'
},
series
:
that
.
dealSeriesData
(
series
)
series
:
this
.
dealSeriesData
(
series
)
}
chart
.
setOption
(
options
)
chart
.
setOption
(
this
.
ec
.
option
)
chart
.
on
(
'click'
,
event
=>
{
that
.
handleEchartsClick
(
event
)
this
.
handleEchartsClick
(
event
)
})
return
chart
})
})
},
initChart
()
{
const
{
series
}
=
this
.
elementData
.
dataList
this
.
$set
(
this
.
ec
.
option
,
'series'
,
this
.
dealSeriesData
(
series
))
},
dealSeriesData
(
data
)
{
...
...
components/NormalRadar/NormalRadar.vue
View file @
14afb33d
...
...
@@ -9,7 +9,7 @@
</
template
>
<
script
>
import
uniEcCanvas
from
'@/
components/
uni-ec-canvas/uni-ec-canvas'
import
uniEcCanvas
from
'@/uni-ec-canvas/uni-ec-canvas'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
...
...
components/NormalTitle/NormalTitle.vue
View file @
14afb33d
...
...
@@ -26,7 +26,7 @@
onClick
(
url
)
{
if
(
url
!=
''
)
{
uni
.
navigateTo
({
url
:
'../../pages/webView/webView
/webView
?url='
+
encodeURIComponent
(
url
)
url
:
'../../pages/webView/webView?url='
+
encodeURIComponent
(
url
)
})
}
}
...
...
main.js
View file @
14afb33d
...
...
@@ -14,8 +14,8 @@ 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'
import
*
as
echarts
from
'@/uni-ec-canvas/echarts'
import
*
as
chinaJson
from
'@/uni-ec-canvas/china.json'
echarts
.
registerMap
(
'china'
,
chinaJson
)
Vue
.
prototype
.
$echarts
=
echarts
...
...
manifest.json
View file @
14afb33d
...
...
@@ -69,9 +69,12 @@
"postcss"
:
true
,
"minified"
:
true
},
"optimization"
:{
"subPackages"
:
true
},
"usingComponents"
:
true
,
"permission"
:
{},
"lazyCodeLoading"
:
"requiredComponents"
"lazyCodeLoading"
:
"requiredComponents"
},
"mp-alipay"
:
{
"usingComponents"
:
true
...
...
mixins/echartElementData.js
View file @
14afb33d
...
...
@@ -19,6 +19,7 @@ export default {
*/
handleStaticData
(
value
)
{
this
.
elementData
.
dataList
=
JSON
.
parse
(
JSON
.
stringify
({...
value
.
dataList
}))
this
.
initChart
()
},
/**
* 动态数据
...
...
@@ -35,6 +36,7 @@ export default {
}
else
{
that
.
elementData
.
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
Result
))
}
this
.
initChart
()
},
/**
* 全局数据
...
...
@@ -43,10 +45,11 @@ export default {
if
(
!
this
.
vuex_globalData
)
return
const
{
dataProcessing
}
=
{
...
value
}
if
(
dataProcessing
)
{
this
.
elementData
.
dataList
=
this
.
$u
.
common
.
converFunction
(
dataProcessing
,
JSON
.
parse
(
this
.
vuex_globalData
)
)
this
.
elementData
.
dataList
=
this
.
$u
.
common
.
converFunction
(
dataProcessing
,
this
.
vuex_globalData
)
}
else
{
this
.
elementData
.
dataList
=
JSON
.
parse
(
this
.
vuex_globalData
)
this
.
elementData
.
dataList
=
this
.
vuex_globalData
}
this
.
initChart
()
},
/**
* 配置数据 - 数据集
...
...
@@ -62,6 +65,7 @@ export default {
}
else
{
that
.
elementData
.
dataList
=
res
.
data
.
Result
}
this
.
initChart
()
}
else
{
that
.
$u
.
toast
(
Msg
)
}
...
...
@@ -119,12 +123,6 @@ export default {
deep
:
true
,
immediate
:
true
},
'elementData'
:
{
handler
(
newVal
)
{
this
.
initChart
()
},
deep
:
true
},
/**
* 全局数据更新监测
*/
...
...
pages.json
View file @
14afb33d
...
...
@@ -43,7 +43,7 @@
}
},
{
"path"
:
"pages/webView/webView
/webView
"
,
"path"
:
"pages/webView/webView"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
...
...
pages/details/details.vue
View file @
14afb33d
...
...
@@ -179,7 +179,7 @@
let
res
=
await
that
.
$u
.
api
[
`
${
info
.
dataMethod
.
toLowerCase
()}
Http`
](
dataUrl
,
info
.
dataFormatter
,
{
custom
:
{
loading
:
false
}
})
that
.
$u
.
vuex
(
'vuex_globalData'
,
JSON
.
stringify
(
res
.
data
)
)
that
.
$u
.
vuex
(
'vuex_globalData'
,
res
.
data
)
},
/**
* 组件之间关联
...
...
pages/index/index.vue
View file @
14afb33d
...
...
@@ -3,13 +3,13 @@
<template
v-for=
"(element, index) in reportInfo.list"
>
<view
class=
"view-element"
v-
show
=
"!element.hide"
v-
if
=
"!element.hide"
:key=
"element.id"
:style=
"
{
width: `${
element.width * scale
}px`,
height: `${
element.height * scale
}px`,
left: `${
element.left * scale
}px`,
top: `${
element.top * scale
}px`,
width: `${
parseInt(element.width * scale)
}px`,
height: `${
parseInt(element.height * scale)
}px`,
left: `${
parseInt(element.left * scale)
}px`,
top: `${
parseInt(element.top * scale)
}px`,
zIndex: index + 1
}"
>
...
...
@@ -179,7 +179,7 @@
let
res
=
await
that
.
$u
.
api
[
`
${
info
.
dataMethod
.
toLowerCase
()}
Http`
](
dataUrl
,
info
.
dataFormatter
,
{
custom
:
{
loading
:
false
}
})
that
.
$u
.
vuex
(
'vuex_globalData'
,
JSON
.
stringify
(
res
.
data
)
)
that
.
$u
.
vuex
(
'vuex_globalData'
,
res
.
data
)
},
/**
* 组件之间关联
...
...
pages/webView/webView
/webView
.vue
→
pages/webView/webView.vue
View file @
14afb33d
File moved
components/
uni-ec-canvas/china.json
→
uni-ec-canvas/china.json
View file @
14afb33d
File moved
components/
uni-ec-canvas/echarts.js
→
uni-ec-canvas/echarts.js
View file @
14afb33d
File moved
components/
uni-ec-canvas/geoCoordMap.js
→
uni-ec-canvas/geoCoordMap.js
View file @
14afb33d
File moved
components/
uni-ec-canvas/uni-ec-canvas.vue
→
uni-ec-canvas/uni-ec-canvas.vue
View file @
14afb33d
...
...
@@ -302,6 +302,9 @@
canvas
.
setChart
(
this
.
$curChart
);
this
.
$curChart
.
setOption
(
this
.
ec
.
option
);
}
},
beforeDestroy
()
{
this
.
$curChart
.
dispose
()
}
};
</
script
>
...
...
components/
uni-ec-canvas/wx-canvas.js
→
uni-ec-canvas/wx-canvas.js
View file @
14afb33d
File moved
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