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