明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
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
Administrator
jt_front
Commits
6fdf04db
Commit
6fdf04db
authored
Jan 27, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可视化大屏开发
parent
0f77ad91
Pipeline
#106633
passed with stage
in 17 seconds
Changes
8
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2154 additions
and
113 deletions
+2154
-113
activeLeft.png
src/assets/images/activeLeft.png
+0
-0
activeRight.png
src/assets/images/activeRight.png
+0
-0
leftDefault.png
src/assets/images/leftDefault.png
+0
-0
rightDetault.png
src/assets/images/rightDetault.png
+0
-0
titleBgc.png
src/assets/images/titleBgc.png
+0
-0
CommonMap.vue
src/components/CommonMap.vue
+126
-113
routes.js
src/router/routes.js
+6
-0
bigScreen.vue
src/views/everydayPage/bigScreen.vue
+2022
-0
No files found.
src/assets/images/activeLeft.png
0 → 100644
View file @
6fdf04db
13.6 KB
src/assets/images/activeRight.png
0 → 100644
View file @
6fdf04db
13.8 KB
src/assets/images/leftDefault.png
0 → 100644
View file @
6fdf04db
9.86 KB
src/assets/images/rightDetault.png
0 → 100644
View file @
6fdf04db
10.2 KB
src/assets/images/titleBgc.png
0 → 100644
View file @
6fdf04db
5.01 KB
src/components/CommonMap.vue
View file @
6fdf04db
<
template
>
<div
id=
"container"
v-loading=
"mapLoading"
element-loading-background=
"rgba(122, 122, 122, 0)"
></div>
<div
id=
"container"
v-loading=
"mapLoading"
element-loading-background=
"rgba(122, 122, 122, 0)"
></div>
</
template
>
<
script
setup
>
import
AMapLoader
from
"@amap/amap-jsapi-loader"
;
...
...
@@ -11,7 +15,7 @@ import {
onUnmounted
,
onActivated
,
defineEmits
,
watch
watch
,
}
from
"vue"
;
const
props
=
defineProps
({
...
...
@@ -24,14 +28,15 @@ watch(
()
=>
props
.
tabKey
,
(
newVal
)
=>
{
// 根据页面内容,调整地图显示位置
const
center
=
[
"lixiang"
,
"tuichu"
].
includes
(
props
.
tabKey
)
?
[
100.808299
,
35.791787
]
:
[
127.808299
,
35.791787
];
const
center
=
[
"lixiang"
,
"tuichu"
].
includes
(
props
.
tabKey
)
?
[
100.808299
,
35.791787
]
:
[
127.808299
,
35.791787
];
map
&&
map
.
setCenter
(
center
);
map
.
setZoom
(
4
);
handleAddMarket
();
}
);
// 定义事件
const
emit
=
defineEmits
([
"province-selected"
]);
import
gansuLine
from
"./newLine.json"
;
...
...
@@ -52,7 +57,9 @@ const handleInitMap = () => {
viewMode
:
"2D"
,
zoom
:
4
,
//根据屏幕宽度设置初始化地图级别
zooms
:
[
4
,
8
],
center
:
[
"lixiang"
,
"tuichu"
].
includes
(
props
.
tabKey
)
?
[
100.808299
,
35.791787
]
:
[
127.808299
,
35.791787
],
//初始化地图中心点位置
center
:
[
"lixiang"
,
"tuichu"
].
includes
(
props
.
tabKey
)
?
[
100.808299
,
35.791787
]
:
[
127.808299
,
35.791787
],
//初始化地图中心点位置
expandZoomRange
:
true
,
// 开启显示范围设置
mapStyle
:
"amap://styles/d9cd35cfbd75e272e528a7fde0bcfc53"
,
rotateEnable
:
false
,
// 是否可以旋转
...
...
@@ -87,7 +94,7 @@ const handleInitMap = () => {
geojsonObj
&&
map
.
remove
(
geojsonObj
);
geojsonObj
=
null
;
handleAddMarket
();
provincePolylines
.
forEach
(
provincePolyline
=>
{
provincePolylines
.
forEach
((
provincePolyline
)
=>
{
map
.
remove
(
provincePolyline
);
});
}
...
...
@@ -100,8 +107,7 @@ const searchDistrict = () => {
key
:
"9a22433229a51dc5114d4bbf92f687ee"
,
// 申请好的Web端开发者Key
// version: "2.0",
plugins
:
[
"AMap.DistrictSearch"
,
"AMap.GeoJSON"
],
})
.
then
((
AMap
)
=>
{
}).
then
((
AMap
)
=>
{
let
districtSearch
=
new
AMap
.
DistrictSearch
({
subdistrict
:
1
,
//获取边界不需要返回下级行政区
extensions
:
"all"
,
//返回行政区边界坐标组等具体信息
...
...
@@ -114,9 +120,9 @@ const searchDistrict = () => {
}
handleInitMap
();
handleDistrict
();
})
})
}
});
})
;
}
;
// 高亮和描边
const
handleDistrict
=
()
=>
{
// 描边
...
...
@@ -185,7 +191,10 @@ const addPolylines = () => {
// 鼠标经过
polylineObj
.
on
(
"mouseover"
,
function
(
e
)
{
infoWindow
.
open
(
map
,
[
`
${
e
.
lnglat
.
getLng
()}
`
,
`
${
e
.
lnglat
.
getLat
()}
`
]);
infoWindow
.
open
(
map
,
[
`
${
e
.
lnglat
.
getLng
()}
`
,
`
${
e
.
lnglat
.
getLat
()}
`
,
]);
});
// 鼠标移出
polylineObj
.
on
(
"mouseout"
,
function
(
e
)
{
...
...
@@ -284,7 +293,7 @@ const handleAddMarket = () => {
isCustom
:
true
,
content
:
infoContent
,
offset
:
new
AMap
.
Pixel
(
5
,
0
),
closeWhenClickMap
:
true
closeWhenClickMap
:
true
,
});
const
marker
=
new
AMap
.
Marker
({
...
...
@@ -296,7 +305,7 @@ const handleAddMarket = () => {
'<img src="//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png" style="width: 40px;height: 40px;">'
+
`<div class="anchorPoint">
${
markerData
.
number
}
</div>`
+
"</div>"
,
zIndex
:
100
zIndex
:
100
,
});
// 鼠标悬浮事件
...
...
@@ -312,7 +321,7 @@ const handleAddMarket = () => {
// 点击事件:聚焦到对应省份并显示省份地图
marker
.
on
(
"click"
,
function
(
e
)
{
// map.remove(provincePolylines);
provincePolylines
.
forEach
(
provincePolyline
=>
{
provincePolylines
.
forEach
(
(
provincePolyline
)
=>
{
map
.
remove
(
provincePolyline
);
});
provincePolylines
=
[];
...
...
@@ -486,21 +495,25 @@ onActivated(() => {});
padding-left: 10px;
padding-top: 5px;
padding-bottom: 5px;
p{
p
{
height: 51px;
line-height: 51px;
display: flex;
align-items: center;
&:not(:last-child){
&:not(:last-child)
{
position: relative;
&::after{
&::after
{
content: "";
height: 1px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: radial-gradient(rgba(255, 255, 255, 0) 0%, #3B71FA 50%, rgba(255, 255, 255, 0) 100%);
background: radial-gradient(
rgba(255, 255, 255, 0) 0%,
#3b71fa 50%,
rgba(255, 255, 255, 0) 100%
);
}
}
}
...
...
@@ -595,8 +608,8 @@ onActivated(() => {});
}
</
style
>
<
style
lang=
"less"
>
.amap-info
{
.amap-info
{
z-index: 2;
pointer-events: none;
}
</
style
>
\ No newline at end of file
}
</
style
>
src/router/routes.js
View file @
6fdf04db
...
...
@@ -211,6 +211,12 @@ const routes = [
title
:
"投资目标责任书"
,
component
:
()
=>
import
(
"@/views/everydayPage/shareAdd.vue"
),
},
{
path
:
"/bigScreen"
,
name
:
"bigScreen"
,
title
:
"可视化大屏"
,
component
:
()
=>
import
(
"@/views/everydayPage/bigScreen.vue"
),
},
],
},
{
...
...
src/views/everydayPage/bigScreen.vue
0 → 100644
View file @
6fdf04db
This diff is collapsed.
Click to expand it.
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