Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
8adda220
Commit
8adda220
authored
Jul 18, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/huaxin-rq
parents
50110ca2
82a15259
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30963 additions
and
169 deletions
+30963
-169
fengrun.js
huaxin-web/src/utils/mapClass/fengrun.js
+29616
-0
map.js
huaxin-web/src/utils/mapClass/map.js
+3
-1
newMap.js
huaxin-web/src/utils/mapClass/newMap.js
+180
-168
xiangzhen.js
huaxin-web/src/utils/mapClass/xiangzhen.js
+1163
-0
HistoryTrack.vue
huaxin-web/src/views/usergps/components/HistoryTrack.vue
+1
-0
No files found.
huaxin-web/src/utils/mapClass/fengrun.js
0 → 100644
View file @
8adda220
This diff is collapsed.
Click to expand it.
huaxin-web/src/utils/mapClass/map.js
View file @
8adda220
/*
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2026-0
4-16 15:38:02
* @LastEditTime: 2026-0
7-15 15:55:04
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
...
...
@@ -819,6 +819,7 @@ export class EditorMap {
hfLine
=
null
;
hfLine2
=
null
;
huifang
(
path
)
{
if
(
path
.
length
<
1
)
return
;
AMap
.
plugin
(
"AMap.MoveAnimation"
,
()
=>
{
var
marker
,
lineArr
=
path
;
...
...
@@ -868,6 +869,7 @@ export class EditorMap {
}
clearhf
()
{
if
(
this
.
hfMarker
||
this
.
hfLine
||
this
.
hfLine2
)
{
this
.
hfMarker
.
stopMove
();
this
.
map
.
remove
(
this
.
hfMarker
);
this
.
map
.
remove
(
this
.
hfLine
);
this
.
map
.
remove
(
this
.
hfLine2
);
...
...
huaxin-web/src/utils/mapClass/newMap.js
View file @
8adda220
/*
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 202
3-10-13 15:32:17
* @LastEditTime: 202
6-07-15 11:31:09
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
*/
// import { pipeColor, svgUrl, svgAlarm } from "@/utils/mapClass/config.js";
// 编辑类
// 在地图上新增的设备可以直接编辑,
// 已经保存完成的设备需要点编辑才可以编辑
import
{
townsData
}
from
"./xiangzhen"
;
export
class
EditorMap
{
// 地图的对象实例
map
=
null
;
...
...
@@ -34,7 +35,7 @@ export class EditorMap {
mouseToolPolineOptions
=
null
;
// 存放设备图标的对象,需要new的时候传进来
devicePicData
=
{};
pipeColor
=
{};
pipeColor
=
{};
// 存放所有的设备的数组集合,这是一个对象,对象里面是各种设备的数组
allDevice
=
{};
// 存放所有的管道
...
...
@@ -87,6 +88,7 @@ export class EditorMap {
this
.
mouseAddDevice
();
// this.mouseAddMarker();
// this.mouseAddPipeline();
this
.
frbj
();
// 地图边界
this
.
map
.
getCity
((
res
)
=>
{
const
district
=
res
.
district
;
...
...
@@ -121,15 +123,26 @@ export class EditorMap {
// fillColor: "transparent",
// strokeColor: "#09f",
// });
// new AMap.Polyline({
// map: this.map,
// strokeWeight: 4,
// strokeColor: "#09f",
// path: bounds[i],
// });
// polygons.push(polygon);
}
}
});
}
frbj
()
{
townsData
.
forEach
((
item
)
=>
{
console
.
log
(
item
);
new
AMap
.
Polyline
({
map
:
this
.
map
,
strokeWeight
:
4
,
strokeColor
:
"#09f"
,
path
:
bounds
[
i
]
,
path
:
item
.
lnglat
,
});
// polygons.push(polygon);
}
}
});
}
// map的事件监听
...
...
@@ -341,7 +354,11 @@ export class EditorMap {
position
:
[
lng
,
lat
],
extData
:
deviceData
,
label
:
{
content
:
deviceData
.
siteStationName
||
deviceData
.
titlename
||
deviceData
.
deviceName
||
'设备'
,
content
:
deviceData
.
siteStationName
||
deviceData
.
titlename
||
deviceData
.
deviceName
||
"设备"
,
direction
:
"top"
,
},
});
...
...
@@ -473,13 +490,13 @@ export class EditorMap {
path
:
eval
(
path
),
strokeWeight
:
objData
.
strokeWeight
||
4
,
strokeColor
:
color
,
strokeOpacity
:
pipePressure
==
5
?
1
:
0.6
,
strokeOpacity
:
pipePressure
==
5
?
1
:
0.6
,
extData
:
objData
,
cursor
:
"pointer"
,
zIndex
:
pipePressure
==
5
?
20
:
10
zIndex
:
pipePressure
==
5
?
20
:
10
,
});
if
(
objData
.
ishidden
==
1
)
{
if
(
objData
.
ishidden
==
1
)
{
pipe
.
hide
();
}
...
...
@@ -488,9 +505,9 @@ export class EditorMap {
// if (!Array.isArray(this.pipeArr[iconType])) {
// this.pipeArr[iconType] = [];
// }
if
(
pipePressure
==
5
)
{
if
(
pipePressure
==
5
)
{
this
.
pipeArr2
.
push
(
pipe
);
}
else
{
}
else
{
this
.
pipeArr
.
push
(
pipe
);
this
.
pipeEvent
(
pipe
,
component
);
}
...
...
@@ -580,8 +597,8 @@ export class EditorMap {
pipefilter
(
ind
,
type
)
{
this
.
pipeArr
.
forEach
((
pipe
)
=>
{
const
data
=
pipe
.
getExtData
();
if
(
type
==
data
.
pipePressure
-
1
)
{
if
(
ind
>=
0
)
{
if
(
type
==
data
.
pipePressure
-
1
)
{
if
(
ind
>=
0
)
{
pipe
.
hide
();
}
else
{
pipe
.
show
();
...
...
@@ -591,8 +608,8 @@ export class EditorMap {
this
.
pipeArr2
.
forEach
((
pipe
)
=>
{
const
data
=
pipe
.
getExtData
();
if
(
type
==
data
.
pipeType
-
1
)
{
if
(
ind
>=
0
)
{
if
(
type
==
data
.
pipeType
-
1
)
{
if
(
ind
>=
0
)
{
pipe
.
hide
();
}
else
{
pipe
.
show
();
...
...
@@ -604,7 +621,7 @@ export class EditorMap {
/**
* 清除管线
*/
clearPipe
(){
clearPipe
()
{
this
.
map
.
remove
(
this
.
pipeArrold
);
}
...
...
@@ -893,7 +910,6 @@ export class EditorMap {
this
.
map
.
destroy
();
}
/**
* 地图上添加场站 海量标注 LabelMarker 方式
* @param {*} detectorUserData
...
...
@@ -1107,11 +1123,7 @@ export class EditorMap {
* @param {*} component
* @param {*} showBool
*/
labelsLayerMarksDetectorUserList
(
mapData
,
compontent
,
showBool
=
true
)
{
labelsLayerMarksDetectorUserList
(
mapData
,
compontent
,
showBool
=
true
)
{
if
(
mapData
!=
null
)
{
const
hashMap
=
new
Map
();
this
.
businessDetectorUserlabelsLayer
=
new
AMap
.
LabelsLayer
({
...
...
huaxin-web/src/utils/mapClass/xiangzhen.js
0 → 100644
View file @
8adda220
This diff is collapsed.
Click to expand it.
huaxin-web/src/views/usergps/components/HistoryTrack.vue
View file @
8adda220
...
...
@@ -156,6 +156,7 @@ export default {
},
/**获取历史轨迹*/
getTrackHistory
(
query
)
{
this
.
historyTrack
=
null
;
historyTrack
(
query
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
.
devices
)
{
...
...
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