Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
a6e1d27c
Commit
a6e1d27c
authored
Oct 17, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6d84c47f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
tripmap.vue
...omponents/newTravelmanager/TravelGroupControl/tripmap.vue
+9
-4
No files found.
src/components/newTravelmanager/TravelGroupControl/tripmap.vue
View file @
a6e1d27c
...
...
@@ -2,13 +2,13 @@
<div
class=
"tripmap-form marginT20"
v-if=
"PostConfig"
v-loading=
"pageLoading"
>
<div
class=
"tripmap-Search"
>
<div
style=
"display: flex;align-items: start; justify-content: space-between;"
>
<div
style=
"
display: flex;flex-wrap: wrap; flex-grow: 1;
"
>
<div
style=
""
>
<el-select
style=
"width:300px;"
placeholder=
"选择国家"
v-model=
"chooseCountry"
@
change=
"chagneCountry(),SearchCity()"
filterable
multiple=
""
>
<el-option
v-for=
"(item, i) in SourceCountryList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"i"
>
</el-option>
</el-select>
<el-select
style=
"width:
3
00px;margin-left: 5px;margin-right: 5px;"
placeholder=
"选择城市"
v-model=
"chooseCity"
<el-select
style=
"width:
5
00px;margin-left: 5px;margin-right: 5px;"
placeholder=
"选择城市"
v-model=
"chooseCity"
multiple
filterable
@
change=
"changeCity()"
>
<el-option
v-for=
"(item, i) in SourceCityList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"i"
>
</el-option>
...
...
@@ -180,7 +180,6 @@
this
.
getMapData
();
});
},
//获取地图数据
async
getMapData
()
{
await
this
.
assemblingMapData
();
...
...
@@ -486,11 +485,17 @@
if
(
x
.
MId
!=
651
&&
x
.
MId
!=
891
)
{
that
.
ClearSource
(
"mapLayer-"
+
x
.
MId
,
1
)
that
.
ClearSource
(
"mapLayerId-"
+
x
.
MId
,
1
)
var
tempColor
=
""
;
if
(
i
==
0
)
{
tempColor
=
x
.
ColorStr
}
else
{
tempColor
=
this
.
getRandomColor
();
}
this
.
map
&&
this
.
map
.
setPaintProperty
(
"world-layer-"
+
x
.
MId
,
"fill-color"
,
[
"match"
,
[
"get"
,
"NAME_ZH"
],
x
.
name
,
x
.
ColorSt
r
,
// 选定的国家颜色
tempColo
r
,
// 选定的国家颜色
[
"rgba"
,
0
,
122
,
255
,
0
]
]);
}
else
{
...
...
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