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
83d1eb52
Commit
83d1eb52
authored
Jan 10, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_jzl'
parents
f26fb104
fecc4bae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
baojing.mp3
gassafety-web/src/assets/mp3/baojing.mp3
+0
-0
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+28
-12
No files found.
gassafety-web/src/assets/mp3/baojing.mp3
0 → 100644
View file @
83d1eb52
File added
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
83d1eb52
<
template
>
<div>
<div
class=
"audio"
>
<audio
ref=
"audio"
:src=
"mp3Src"
></audio>
</div>
<div
:style=
"
{ height: `${boxHeight}px`, width: `${boxWidth}px` }"
id="container"
...
...
@@ -355,6 +358,7 @@ export default {
},
data
()
{
return
{
mp3Src
:
require
(
"@/assets/mp3/baojing.mp3"
),
lineColor
,
gaoMap
:
null
,
deviceType
:
false
,
...
...
@@ -515,6 +519,13 @@ export default {
}
},
audio
(){
console
.
log
(
"this.$refs.audio.paused"
,
this
.
$refs
.
audio
.
paused
)
if
(
this
.
$refs
.
audio
.
paused
)
{
// this.$refs.audio.paused = false;
this
.
$refs
.
audio
.
play
();
}
},
initMap
()
{
let
gaoMap
=
new
gaodeMap
(
process
.
env
.
VUE_APP_MAP_CENTER
);
this
.
gaoMap
=
gaoMap
;
...
...
@@ -675,6 +686,9 @@ export default {
},
// 遍历设备改变状态 polyLines markers
statusChange
(
list
)
{
// 报警声音
this
.
audio
();
// 过滤报警管道
const
polyLineArr
=
list
.
filter
((
item
)
=>
{
return
item
.
deviceType
==
"0"
;
...
...
@@ -771,19 +785,21 @@ export default {
device
.
setExtData
(
options
);
// 找到是列表里的哪个,改变它的状态,让列表里的这个设备变成红色
const
myDevice
=
this
.
allList
.
filter
((
item
)
=>
{
for
(
let
i
=
0
;
i
<
item
.
length
;
i
++
)
{
const
iten
=
item
[
i
];
// 不是隐患也不是值班人员
if
(
!
iten
.
troubleId
&&
!
iten
.
userId
)
{
if
(
iten
.
deviceId
==
device
.
getExtData
().
deviceId
){
return
true
const
myDevice
=
this
.
allList
.
filter
((
item
)
=>
{
for
(
let
i
=
0
;
i
<
item
.
length
;
i
++
)
{
const
iten
=
item
[
i
];
// 不是隐患也不是值班人员
if
(
!
iten
.
troubleId
&&
!
iten
.
userId
)
{
if
(
iten
.
deviceId
==
device
.
getExtData
().
deviceId
)
{
return
true
;
}
}
}
}
})[
0
]?.
filter
(
item
=>
{
return
item
.
deviceId
==
device
.
getExtData
().
deviceId
})[
0
];
}
)[
0
]
?.
filter
((
item
)
=>
{
return
item
.
deviceId
==
device
.
getExtData
().
deviceId
;
})[
0
];
// console.log("myDevice", myDevice);
myDevice
.
alarmState
=
options
.
alarmState
;
// const imageName = device.getExtData()
...
...
@@ -1469,7 +1485,7 @@ export default {
},
// 搜索
async
search
()
{
this
.
Clear
();
this
.
Clear
();
map
.
clearMap
();
this
.
gaoMap
.
placeSearch
.
clear
();
if
(
!
(
!
this
.
gaoMap
.
searchSelectAdcode
&&
!
this
.
gaoMap
.
searchSelectName
))
{
...
...
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