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
e1e20af9
Commit
e1e20af9
authored
Jul 29, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图问题修改 gengdidi
parent
41696f61
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
40 deletions
+65
-40
flowMeter.vue
gassafety-web/src/components/PopWindow/flowMeter.vue
+14
-8
markerInfoWindow.vue
gassafety-web/src/components/PopWindow/markerInfoWindow.vue
+2
-2
pressureGage.vue
gassafety-web/src/components/PopWindow/pressureGage.vue
+14
-8
regulatorBox.vue
gassafety-web/src/components/PopWindow/regulatorBox.vue
+13
-7
valveWell.vue
gassafety-web/src/components/PopWindow/valveWell.vue
+13
-7
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+9
-8
No files found.
gassafety-web/src/components/PopWindow/flowMeter.vue
View file @
e1e20af9
...
...
@@ -2,15 +2,14 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
width=
"80%"
:before-close=
"handleClose"
>
<el-row>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"
22
"
>
<el-col
:span=
"
11
"
>
<el-form-item
label=
"所属管道"
prop=
"pipeCode"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipeCode"
...
...
@@ -233,12 +232,19 @@ export default {
this
.
form
.
url
=
""
;
this
.
fileArr
=
[];
},
getPipeInfos
(){
pipeAllInfoList
({}).
then
((
response
)
=>
{
this
.
pipeList
=
response
.
data
;
});
}
},
mounted
()
{
pipeAllInfoList
({}).
then
((
response
)
=>
{
this
.
pipeList
=
response
.
data
;
});
},
watch
:{
dialogVisible
(
val
){
if
(
val
){
this
.
getPipeInfos
();
}
}
}
};
</
script
>
...
...
gassafety-web/src/components/PopWindow/markerInfoWindow.vue
View file @
e1e20af9
...
...
@@ -2,7 +2,7 @@
<div
class=
"wrapper"
>
<span
class=
"dot-left"
></span>
<div
class=
"top display-default"
>
<div
class=
"left text"
>
{{
titl
e
}}
</div>
<div
class=
"left text"
>
{{
data
.
deviceNam
e
}}
</div>
<div
class=
"right text"
>
<img
src=
"../../assets/images/closeBtn.png"
alt=
""
@
click=
"map.clearInfoWindow()"
/>
</div>
...
...
@@ -11,7 +11,7 @@
<div
class=
"content"
>
<div
class=
"eq-content display-default"
>
<div
class=
"text-wrapper"
>
<div
class=
"eq-text"
>
设备
名称:
<span>
{{
data
.
deviceNam
e
}}
</span></div>
<div
class=
"eq-text"
>
设备
类型:
<span>
{{
titl
e
}}
</span></div>
<div
class=
"eq-text"
>
设备型号:
<span>
{{
data
.
deviceModel
}}
</span></div>
<div
class=
"eq-text"
>
所属管道:
<span>
{{
data
.
pipeCode
}}
</span></div>
<div
class=
"eq-text"
>
物联网编号:
<span>
{{
data
.
iotNo
}}
</span></div>
...
...
gassafety-web/src/components/PopWindow/pressureGage.vue
View file @
e1e20af9
...
...
@@ -2,15 +2,14 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
width=
"80%"
:before-close=
"handleClose"
>
<el-row>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"
22
"
>
<el-col
:span=
"
11
"
>
<el-form-item
label=
"所属管道"
prop=
"pipeCode"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipeCode"
...
...
@@ -203,12 +202,19 @@ export default {
this
.
form
.
url
=
""
;
this
.
fileArr
=
[];
},
getPipeInfos
(){
pipeAllInfoList
({}).
then
((
response
)
=>
{
this
.
pipeList
=
response
.
data
;
});
}
},
mounted
()
{
pipeAllInfoList
({}).
then
((
response
)
=>
{
this
.
pipeList
=
response
.
data
;
});
},
watch
:{
dialogVisible
(
val
){
if
(
val
){
this
.
getPipeInfos
();
}
}
}
};
</
script
>
...
...
gassafety-web/src/components/PopWindow/regulatorBox.vue
View file @
e1e20af9
...
...
@@ -2,14 +2,13 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
width=
"80%"
:before-close=
"handleClose"
>
<el-row>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"
22
"
>
<el-col
:span=
"
11
"
>
<el-form-item
label=
"所属管道"
prop=
"pipeCode"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipeCode"
...
...
@@ -224,12 +223,19 @@
},
handleClose
(
done
)
{
done
();
},
getPipeInfos
(){
pipeAllInfoList
({}).
then
((
response
)
=>
{
this
.
pipeList
=
response
.
data
;
});
}
},
mounted
(){
pipeAllInfoList
({}).
then
(
response
=>
{
this
.
pipeList
=
response
.
data
;
});
watch
:{
dialogVisible
(
val
){
if
(
val
){
this
.
getPipeInfos
();
}
}
}
}
</
script
>
...
...
gassafety-web/src/components/PopWindow/valveWell.vue
View file @
e1e20af9
...
...
@@ -2,14 +2,13 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
width=
"80%"
:before-close=
"handleClose"
>
<el-row>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"
22
"
>
<el-col
:span=
"
11
"
>
<el-form-item
label=
"所属管道"
prop=
"pipeCode"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
>
<el-select
v-model=
"form.pipeCode"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipeCode"
...
...
@@ -222,12 +221,19 @@
listRemove
(
e
)
{
this
.
form
.
url
=
""
;
this
.
fileArr
=
[];
},
getPipeInfos
(){
pipeAllInfoList
({}).
then
((
response
)
=>
{
this
.
pipeList
=
response
.
data
;
});
}
},
mounted
(){
pipeAllInfoList
({}).
then
(
response
=>
{
this
.
pipeList
=
response
.
data
;
});
watch
:{
dialogVisible
(
val
){
if
(
val
){
this
.
getPipeInfos
();
}
}
}
}
</
script
>
...
...
gassafety-web/src/utils/gaodeMap.js
View file @
e1e20af9
...
...
@@ -164,7 +164,7 @@ class gaodeMap {
marker
.
on
(
"mouseout"
,
infoClose
);
marker
.
setExtData
(
data
);
that
.
deviceType
=
markerType
;
let
editWindow
=
that
.
createInfowindow
();
let
editWindow
=
that
.
createInfowindow
(
"编辑"
);
editWindow
.
fileArr
=
data
.
iconUrl
!=
""
&&
data
.
iconUrl
!=
undefined
?
[{
url
:
data
.
iconUrl
}]
...
...
@@ -177,7 +177,8 @@ class gaodeMap {
editWindow
.
form
=
e
.
target
.
getExtData
();
editWindow
.
show
();
}
else
if
(
"delete"
==
that
.
mapOperateType
)
{
vue
.
$confirm
(
"是否删除"
+
e
.
target
.
getExtData
().
deviceName
,
"提示"
,
{
let
diviceType
=
{
"2"
:
"调压箱"
,
"3"
:
"阀门井"
,
"4"
:
"流量计"
,
"7"
:
"压力表"
,};
vue
.
$confirm
(
'是否删除名称为"'
+
e
.
target
.
getExtData
().
deviceName
+
'"的'
+
diviceType
[
markerType
]
+
" ?"
,
"提示"
,
{
type
:
"warning"
// center: true
}).
then
(()
=>
{
...
...
@@ -697,7 +698,7 @@ class gaodeMap {
this
.
mouseTool
.
on
(
"draw"
,
function
(
e
)
{
if
(
e
.
obj
.
getExtData
().
type
!=
"newLine"
)
{
map
.
remove
(
that
.
markerOverlays
);
const
device
=
that
.
createInfowindow
();
const
device
=
that
.
createInfowindow
(
"新增"
);
device
.
map
=
map
;
device
.
obj
=
e
.
obj
;
device
.
gaoMap
=
that
;
...
...
@@ -758,29 +759,29 @@ class gaodeMap {
/**
* 创建弹框事件
*/
createInfowindow
()
{
createInfowindow
(
val
)
{
switch
(
this
.
deviceType
)
{
case
DEVICE_TYPE
.
PIPEPLINE
:
{
break
;
}
case
DEVICE_TYPE
.
REGEULATORBOX
:
{
return
createPop
(
regulatorBox
,
{
title
:
"调压箱"
title
:
val
+
"调压箱"
});
}
case
DEVICE_TYPE
.
VALUEWELL
:
{
return
createPop
(
valveWell
,
{
title
:
"阀门井"
title
:
val
+
"阀门井"
});
}
case
DEVICE_TYPE
.
FLOWMETER
:
{
return
createPop
(
flowMeter
,
{
title
:
"流量计"
title
:
val
+
"流量计"
});
}
case
DEVICE_TYPE
.
PRESSUREGAGE
:
{
return
createPop
(
flowMeter
,
{
title
:
"压力表"
title
:
val
+
"压力表"
});
}
}
...
...
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