Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
ff57d83b
Commit
ff57d83b
authored
Sep 16, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分环境配置及详情地图图标 gengdidi
parent
f1dd56f1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
5 deletions
+24
-5
.env.development
gassafety-web/.env.development
+3
-0
.env.production
gassafety-web/.env.production
+3
-0
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+5
-3
index.vue
...web/src/views/deviceInspection/inspectiondetail/index.vue
+12
-1
vue.config.js
gassafety-web/vue.config.js
+1
-1
No files found.
gassafety-web/.env.development
View file @
ff57d83b
...
@@ -7,5 +7,8 @@ VUE_APP_BASE_API = '/dev-api'
...
@@ -7,5 +7,8 @@ VUE_APP_BASE_API = '/dev-api'
#地图中心
#地图中心
VUE_APP_MAP_CENTER = '石家庄'
VUE_APP_MAP_CENTER = '石家庄'
#代理地址
VUE_APP_TARGET = 'http://localhost:8903/gassafety'
# 路由懒加载
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
gassafety-web/.env.production
View file @
ff57d83b
...
@@ -7,4 +7,7 @@ VUE_APP_BASE_API = '/prod-api'
...
@@ -7,4 +7,7 @@ VUE_APP_BASE_API = '/prod-api'
#地图中心
#地图中心
VUE_APP_MAP_CENTER = '石家庄'
VUE_APP_MAP_CENTER = '石家庄'
#代理地址
VUE_APP_TARGET = 'http://36.148.23.59:8901/gassafety'
port = 8091
port = 8091
gassafety-web/src/utils/gaodeMap.js
View file @
ff57d83b
...
@@ -46,7 +46,6 @@ class gaodeMap {
...
@@ -46,7 +46,6 @@ class gaodeMap {
constructor
(
center
,
latlng
,
containerId
)
{
constructor
(
center
,
latlng
,
containerId
)
{
let
container
=
containerId
?
containerId
:
"container"
;
let
container
=
containerId
?
containerId
:
"container"
;
this
.
markers
=
[];
this
.
markers
=
[];
console
.
log
(
center
,
"........,,,,,,,<<<<<<,"
)
this
.
center
=
center
?
center
:
defaultCenter
;
this
.
center
=
center
?
center
:
defaultCenter
;
map
=
new
AMap
.
Map
(
container
,
{
map
=
new
AMap
.
Map
(
container
,
{
//mask: addMask(result.districtList[0].boundaries),
//mask: addMask(result.districtList[0].boundaries),
...
@@ -236,7 +235,8 @@ class gaodeMap {
...
@@ -236,7 +235,8 @@ class gaodeMap {
this
.
setMarkerIcon
(
marker
);
this
.
setMarkerIcon
(
marker
);
if
(
if
(
DEVICE_TYPE
.
WORKORDER
!=
markerType
&&
DEVICE_TYPE
.
WORKORDER
!=
markerType
&&
DEVICE_TYPE
.
INSPECTOR
!=
markerType
DEVICE_TYPE
.
INSPECTOR
!=
markerType
&&
func
!=
"false"
)
{
)
{
marker
.
content
=
this
.
getMarketContent
(
data
);
marker
.
content
=
this
.
getMarketContent
(
data
);
marker
.
on
(
"mouseover"
,
this
.
infoOpen
);
marker
.
on
(
"mouseover"
,
this
.
infoOpen
);
...
@@ -351,7 +351,9 @@ class gaodeMap {
...
@@ -351,7 +351,9 @@ class gaodeMap {
//infoWindow.close(map, e.target.getPosition());
//infoWindow.close(map, e.target.getPosition());
}
}
if
(
func
)
{
if
(
func
)
{
func
();
if
(
func
!=
"false"
){
func
();
}
}
}
}
}
// 其他设备
// 其他设备
...
...
gassafety-web/src/views/deviceInspection/inspectiondetail/index.vue
View file @
ff57d83b
...
@@ -387,7 +387,18 @@
...
@@ -387,7 +387,18 @@
let
obj
=
this
.
form
.
deviceList
[
0
];
let
obj
=
this
.
form
.
deviceList
[
0
];
let
gaoMap
=
new
gaodeMap
(
process
.
env
.
VUE_APP_MAP_CENTER
,
[
obj
.
longitude
,
obj
.
latitude
],
"containerInspect"
);
let
gaoMap
=
new
gaodeMap
(
process
.
env
.
VUE_APP_MAP_CENTER
,
[
obj
.
longitude
,
obj
.
latitude
],
"containerInspect"
);
this
.
gaoMap
=
gaoMap
;
this
.
gaoMap
=
gaoMap
;
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
WORKORDER
,
obj
)
if
(
"1"
==
obj
.
deviceType
){
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
REGEULATORBOX
,
obj
,
"false"
)
}
if
(
"2"
==
obj
.
deviceType
){
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
VALUEWELL
,
obj
,
"false"
)
}
if
(
"3"
==
obj
.
deviceType
){
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
FLOWMETER
,
obj
,
"false"
)
}
if
(
"4"
==
obj
.
deviceType
){
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
PRESSUREGAGE
,
obj
,
"false"
)
}
// }
// }
}
}
...
...
gassafety-web/vue.config.js
View file @
ff57d83b
...
@@ -34,7 +34,7 @@ module.exports = {
...
@@ -34,7 +34,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://36.148.23.59:8901/gassafety`,
// target: `http://36.148.23.59:8901/gassafety`,
target
:
`http://36.148.23.59:8901/gassafety`
,
target
:
process
.
env
.
VUE_APP_TARGET
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
"^"
+
process
.
env
.
VUE_APP_BASE_API
]:
""
[
"^"
+
process
.
env
.
VUE_APP_BASE_API
]:
""
...
...
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