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
ac4f58dd
Commit
ac4f58dd
authored
Jul 14, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本地中压管线上图
parent
9c68523f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15322 additions
and
8 deletions
+15322
-8
pipe.json
huaxin-web/public/geo_json/pipe.json
+15292
-0
Ind.vue
huaxin-web/src/views/bigWindow/Ind3/Ind.vue
+30
-8
No files found.
huaxin-web/public/geo_json/pipe.json
0 → 100644
View file @
ac4f58dd
This diff is collapsed.
Click to expand it.
huaxin-web/src/views/bigWindow/Ind3/Ind.vue
View file @
ac4f58dd
...
...
@@ -39,6 +39,7 @@ import {
deviceIcon
,
pipeColor
,
}
from
"@/utils/mapClass/deviceIconTypeConfig"
;
import
axios
from
"axios"
;
export
default
{
name
:
""
,
...
...
@@ -111,6 +112,8 @@ export default {
});
}
});
//加载本地管线
this
.
getLocationPipe
();
},
getPointList
(){
...
...
@@ -233,6 +236,25 @@ export default {
this
.
gaoMap
.
businessDetectorUserlabelsLayer
.
show
();
}
}
},
getLocationPipe
(){
axios
.
get
(
"../geo_json/pipe.json"
).
then
((
res
)
=>
{
if
(
res
.
data
){
//let lines = res.data.split(/\r?\n|\r/);
res
.
data
.
forEach
((
line
,
index
)
=>
{
let
locations
=
line
.
coordinates
.
split
(
";"
);
let
pipe
=
[];
locations
.
forEach
(
location
=>
{
pipe
.
push
(
location
.
split
(
","
));
})
line
.
path
=
eval
(
pipe
);
line
.
pipeLength
=
parseFloat
(
line
.
pipeLength
).
toFixed
(
2
);
line
.
pipePressure
=
3
;
line
.
strokeWeight
=
4
;
this
.
gaoMap
.
addPipeLine
(
line
,
PipeInfo
);
});
}
})
}
},
};
...
...
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