Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
national_museum_vod-H5
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
fubaole
national_museum_vod-H5
Commits
39100544
Commit
39100544
authored
Apr 26, 2021
by
xulili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map 飘
parent
f0cd73ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
maps.vue
src/components/maps.vue
+9
-9
No files found.
src/components/maps.vue
View file @
39100544
...
@@ -122,19 +122,18 @@ export default {
...
@@ -122,19 +122,18 @@ export default {
geo
:
{
geo
:
{
map
:
_this
.
parentInfo
.
length
===
1
?
"china"
:
"map"
,
map
:
_this
.
parentInfo
.
length
===
1
?
"china"
:
"map"
,
roam
:
true
,
//是否开启平游或缩放
roam
:
true
,
//是否开启平游或缩放
scaleLimit
:
{
// scaleLimit: {
//滚轮缩放的极限控制
// //滚轮缩放的极限控制
min
:
1
,
// min: 1,
// max: 2,
// // max: 2,
},
// },
zoom
:
1.1
,
zoom
:
1.3
,
top
:
51
,
top
:
51
,
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
!
0
,
show
:
!
0
,
fontSize
:
"12"
,
fontSize
:
"12"
,
color
:
"#fff"
,
color
:
'#fff'
,
formatter
:
(
p
)
=>
{
formatter
:
(
p
)
=>
{
switch
(
p
.
name
)
{
switch
(
p
.
name
)
{
case
"内蒙古自治区"
:
case
"内蒙古自治区"
:
...
@@ -204,7 +203,7 @@ export default {
...
@@ -204,7 +203,7 @@ export default {
],
],
};
};
let
echartsDiv
=
this
.
$echarts
.
init
(
document
.
getElementById
(
"mapDiv"
));
let
echartsDiv
=
this
.
$echarts
.
init
(
document
.
getElementById
(
"mapDiv"
));
echartsDiv
.
setOption
(
option
);
echartsDiv
.
setOption
(
option
,
true
);
echartsDiv
.
on
(
"click"
,
_this
.
echartsMapClick
);
echartsDiv
.
on
(
"click"
,
_this
.
echartsMapClick
);
},
},
handleBack
()
{
handleBack
()
{
...
@@ -218,6 +217,7 @@ export default {
...
@@ -218,6 +217,7 @@ export default {
if
(
!
params
.
data
)
{
if
(
!
params
.
data
)
{
return
;
return
;
}
}
debugger
if
(
params
.
data
.
level
===
"district"
){
if
(
params
.
data
.
level
===
"district"
){
return
false
return
false
}
}
...
...
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