Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
35bbb8a2
authored
2023-02-20 15:24:45 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:地图
1 parent
a3611f9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
src/common/echart/index.vue
src/common/echart/index.vue
View file @
35bbb8a
<
template
><div
:id=
"id"
:class=
"className"
:style=
"
{ height: height, width: width }" />
</
template
>
<
template
>
<div
:id=
"id"
:class=
"className"
:style=
"
{ height: height, width: width }" />
</
template
>
<
script
>
import
tdTheme
from
"./theme.json"
;
// 引入默认主题
import
{
mapGetters
}
from
"vuex"
;
export
default
{
name
:
"echart"
,
props
:
{
...
...
@@ -42,12 +45,23 @@ export default {
}
});
},
deep
:
true
,
deep
:
true
},
},
computed
:
{
...
mapGetters
([
"dicData"
]),
logoName
()
{
return
(
this
.
dicData
[
"sysCode"
]
&&
this
.
dicData
[
"sysCode"
].
filter
((
item
)
=>
item
.
DCODE
==
"areaMap"
)
);
},
},
mounted
()
{
this
.
$echarts
.
registerTheme
(
"tdTheme"
,
tdTheme
);
// 覆盖默认主题
this
.
initChart
();
this
.
$nextTick
(()
=>
{
this
.
initChart
();
})
},
beforeDestroy
()
{
this
.
chart
.
dispose
();
...
...
Please
register
or
sign in
to post a comment