Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pingshan-ranqi
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
yaqizhang
pingshan-ranqi
Commits
190b2159
Commit
190b2159
authored
Nov 18, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_jzl'
parents
ba7a5975
6be41010
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
80 additions
and
62 deletions
+80
-62
dist.zip
gassafety-web/dist.zip
+0
-0
gassafety.scss
gassafety-web/src/assets/styles/gassafety.scss
+5
-0
detectorOnlyInfoWindow.vue
...eb/src/components/PopWindowGis/detectorOnlyInfoWindow.vue
+28
-25
videoView.vue
gassafety-web/src/components/PopWindowGis/videoView.vue
+7
-2
gaodeMapView.js
gassafety-web/src/utils/gaodeMapView.js
+9
-5
Center.vue
...ty-web/src/views/enterprise/mapView/components/Center.vue
+20
-15
RightPic.vue
...-web/src/views/enterprise/mapView/components/RightPic.vue
+11
-15
No files found.
gassafety-web/dist.zip
0 → 100644
View file @
190b2159
File added
gassafety-web/src/assets/styles/gassafety.scss
View file @
190b2159
...
...
@@ -220,6 +220,11 @@
}
}
}
.videoView
{
.el-dialog__body
{
padding
:
0
;
}
}
// center下的分页
.center
{
.el-pagination
{
...
...
gassafety-web/src/components/PopWindowGis/detectorOnlyInfoWindow.vue
View file @
190b2159
...
...
@@ -3,34 +3,37 @@
<span
class=
"dot-left"
></span>
<div
class=
"top display-default"
>
<div
class=
"left text ddd"
:title=
"data.deviceName"
>
{{
data
.
detectorName
}}
{{
data
.
detectorName
}}
</div>
<div
class=
"right text"
>
<img
src=
"../../assets/images/closeBtn.png"
alt=
""
@
click=
"close"
/>
</div>
</div>
<div
class=
"contant"
>
<div>
<!--
<div
class=
"theadtop"
>
设备名称:
<span
v-un-content
>
{{
data
.
detectorName
}}
</span>
</div>
-->
<div>
<div
class=
"one"
>
<div
>
设备编号:
<span
v-un-content
>
{{
data
.
detectorCode
}}
</span>
</div>
<div>
联系人:
<span
v-un-content
>
{{
data
.
linkman
}}
</span>
监测介质:
<span
v-un-content
>
{{
data
.
medium
}}
</span>
</div>
<div>
设备状态:
<span
v-un-content
>
{{
data
.
detectorStatus
}}
</span>
</div>
</div>
<div
class=
"two"
>
<div>
联系人信息
</div>
<div>
联系电话:
<span
v-un-content
>
{{
data
.
phone
}}
</span>
姓名:
<span
v-un-content
>
{{
data
.
linkman
}}
</span>
</div>
<div>
设备状态:
<span
v-un-content
>
{{
data
.
detectorStatus
}}
</span>
电话:
<span
v-un-content
>
{{
data
.
phone
}}
</span>
</div>
<div>
报警时间:
<span
v-un-content
>
{{
data
.
alarmTime
}}
</span>
详细信息:
<span
v-un-content
>
{{
data
.
remarks
}}
</span>
</div>
<div>
创建时间:
<span
v-un-content
>
{{
data
.
creatTime
}}
</span>
备注:
<span
v-un-content
>
{{
data
.
remark
}}
</span>
</div>
</div>
</div>
...
...
@@ -52,19 +55,11 @@ export default {
userTypeName
:
[
"家用报警器"
,
"商用报警器"
,
"工业报警器"
],
};
},
mounted
()
{},
mounted
()
{
console
.
log
(
this
.
data
);
},
methods
:
{
moment
,
deviceMore
()
{
this
.
data
.
class
.
view
.
$router
.
push
({
// path: "/dataMonitoring/realtimedetail",
path
:
"/device/deviceInfoDetail"
,
query
:
{
deviceId
:
this
.
data
.
deviceId
,
// deviceType: this.data.deviceType,
},
});
},
close
()
{
this
.
map
.
clearInfoWindow
();
this
.
data
.
class
.
view
.
domAllShow
();
...
...
@@ -76,7 +71,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.wrapper
{
// width: 406
px;
min-width
:
300
px
;
max-height
:
430px
;
// background: #fff;
border-radius
:
4px
;
...
...
@@ -130,8 +125,16 @@ export default {
}
.contant
{
padding
:
10px
;
&
>
div
div
{
margin-bottom
:
8px
;
&
>
div
{
&
.one
{
border-bottom
:
1px
solid
#cccccc
8f
;
}
&
.two
{
padding-top
:
8px
;
}
div
{
margin-bottom
:
8px
;
}
}
}
}
...
...
gassafety-web/src/components/PopWindowGis/videoView.vue
View file @
190b2159
...
...
@@ -3,17 +3,20 @@
:title=
"title"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
ref=
"videoBox"
style=
"padding:0px"
class=
"videoView"
>
<div
class=
"box videoBox"
>
<div
id=
"video"
></div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<
!--
<
span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
确 定
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
</span>
</span>
-->
</el-dialog>
</
template
>
<
script
>
...
...
@@ -84,11 +87,13 @@ export default {
<
style
lang=
"scss"
>
.box
{
width
:
100%
;
height
:
500px
;
#video
{
height
:
100%
;
}
}
</
style
>
gassafety-web/src/utils/gaodeMapView.js
View file @
190b2159
...
...
@@ -78,6 +78,8 @@ class gaodeMap {
onceFlag
=
false
;
// 用来判断点击左边抽屉列表的时候移动才消失
leftListClick
=
false
;
// 报警器移动的时候用来存储经纬度的,用途是判断司徒是否移动
oldLng
=
[];
//构造函数中设置中央点默认值
constructor
(
center
)
{
this
.
markers
=
[];
...
...
@@ -360,7 +362,7 @@ class gaodeMap {
marker
.
on
(
"mousedown"
,
e
=>
{
that
.
closeInfoWindow
();
that
.
videoView
({
title
:
"监控"
,
title
:
data
.
videoName
,
target
:
marker
,
videoManagerId
,
resourceId
...
...
@@ -387,15 +389,14 @@ class gaodeMap {
// 报警器用户下的独立报警器
if
(
DEVICE_TYPE
.
DETECTOR_ONLY
==
markerType
)
{
// 如果报警器用户下的单一报警器
let
oldLng
=
[];
// 先记录当前的this.detcetorMarker
if
(
this
.
detcetorMarker
)
{
oldLng
=
[
this
.
oldLng
=
[
this
.
detcetorMarker
.
data
.
longitude
,
this
.
detcetorMarker
.
data
.
latitude
];
}
// 如果this.detcetorMarker有值就删了
this
.
clearDetectorOnlyOpen
();
...
...
@@ -413,9 +414,12 @@ class gaodeMap {
this
.
detectorOnlyOpenInfowindow
.
close
();
// 因为报警器会出现同一位置的情况,如果是同一个位置,直接显示infoWindow,
// 如果不是同一位置,移动完了在显示
if
(
oldLng
[
0
]
==
data
.
longitude
&&
oldLng
[
1
]
==
data
.
latitude
)
{
if
(
this
.
oldLng
[
0
]
==
data
.
longitude
&&
this
.
oldLng
[
1
]
==
data
.
latitude
)
{
console
.
log
(
"原地没动"
)
this
.
detectorOnlyOpen
(
e
);
}
else
{
console
.
log
(
"动了"
)
// 回调,先移动,后展示infowindow
this
.
handleInfoWindowOpenFunc
=
()
=>
{
this
.
detectorOnlyOpen
(
e
);
...
...
gassafety-web/src/views/enterprise/mapView/components/Center.vue
View file @
190b2159
...
...
@@ -29,7 +29,12 @@
<div
v-un-content
>
{{
scope
.
row
.
detectorName
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"detectorCode"
label=
"设备编号"
width=
"200"
>
<el-table-column
prop=
"medium"
label=
"监测介质"
width=
""
>
<
template
slot-scope=
"scope"
>
<div
v-un-content
>
{{
scope
.
row
.
medium
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"detectorCode"
label=
"设备编号"
width=
"150"
>
</el-table-column>
<el-table-column
prop=
"linkman"
label=
"联系人"
width=
"100"
>
</el-table-column>
...
...
@@ -37,16 +42,12 @@
</el-table-column>
<el-table-column
prop=
"detectorStatus"
label=
"设备状态"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"alarmTime"
label=
"报警时间"
width=
""
>
<el-table-column
prop=
"alarmTime"
label=
"报警时间"
width=
"
200
"
>
<
template
slot-scope=
"scope"
>
<div
v-un-content
>
{{
scope
.
row
.
alarmTime
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"creatTime"
label=
"创建时间"
width=
""
>
<
template
slot-scope=
"scope"
>
<div
v-un-content
>
{{
scope
.
row
.
creatTime
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"alarmValue"
label=
"定位"
width=
"50"
>
<
template
slot-scope=
"scope"
>
<div
...
...
@@ -63,7 +64,7 @@
:page-size=
"pageSize"
layout=
"prev, pager, next, jumper"
:total=
"total"
:hide-on-single-page=
"total
<=
pageSize"
:hide-on-single-page=
"total
<=
pageSize"
>
</el-pagination>
</div>
...
...
@@ -86,14 +87,14 @@ export default {
type
:
Boolean
,
},
userId
:
{
type
:
[
Number
,
String
],
type
:
[
Number
,
String
],
},
total
:{
type
:
Number
,
total
:
{
type
:
Number
,
},
pageSize
:
{
type
:
Number
,
},
pageSize
:{
type
:
Number
,
}
},
data
()
{
return
{
...
...
@@ -134,7 +135,11 @@ export default {
console
.
log
(
val
);
},
handleCurrentChangvale
(
val
)
{
this
.
$parent
.
getDetectorInfoList
({
userId
:
this
.
userId
,
pageNum
:
val
,
pageSize
:
this
.
pageSize
})
this
.
$parent
.
getDetectorInfoList
({
userId
:
this
.
userId
,
pageNum
:
val
,
pageSize
:
this
.
pageSize
,
});
},
close
()
{
this
.
fade
=
"fade"
;
...
...
gassafety-web/src/views/enterprise/mapView/components/RightPic.vue
View file @
190b2159
...
...
@@ -46,7 +46,7 @@
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"alarmTime"
label=
"预警时间
啊
"
width=
"180"
>
<el-table-column
prop=
"alarmTime"
label=
"预警时间"
width=
"180"
>
</el-table-column>
<el-table-column
prop=
"handledStatus"
label=
"状态"
width=
""
>
<
template
slot-scope=
"scope"
>
...
...
@@ -75,15 +75,7 @@ export default {
timer
:
null
,
repeatFinshed
:
false
,
tableHeight
:
202
,
tableData
:
[
{
unitName
:
"ZhC-11"
,
detectorType
:
"流量计"
,
statusName
:
"压力异常"
,
alarmTime
:
"2021-02-02 16-00-00"
,
handledStatus
:
"上海市普陀区金沙江路"
,
},
],
tableData
:
[],
scrollHeight
:
0
,
timer
:
null
,
};
...
...
@@ -150,7 +142,7 @@ export default {
padding-right
:
0px
;
position
:
fixed
;
right
:
20px
;
top
:
1
5
0px
;
top
:
1
6
0px
;
// background-color: #fff;
display
:
flex
;
justify-content
:
space-between
;
...
...
@@ -159,21 +151,25 @@ export default {
.math
{
width
:
520px
;
position
:
absolute
;
top
:
-
4
0px
;
top
:
-
5
0px
;
left
:
0px
;
display
:
flex
;
justify-content
:
space-between
;
&
>
div
{
>
span
{
color
:
aqua
;
font-size
:
20px
;
}
font-size
:
14px
;
color
:
#fff
;
text-align
:
center
;
line-height
:
30px
;
width
:
108px
;
height
:
30px
;
// padding:5px 10px;
line-height
:
35px
;
width
:
138px
;
height
:
35px
;
background-image
:
url(../../../../assets/images/bg/bg.png)
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
}
}
&
>
div
{
...
...
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