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
de3bf945
Commit
de3bf945
authored
Jan 10, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/gassafety
parents
c46c56b4
19fc29f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+12
-8
No files found.
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
de3bf945
<
template
>
<
template
>
<div>
<div>
<div
class=
"audio"
>
<div
class=
"audio"
>
<audio
ref=
"audio"
:src=
"mp3Src"
></audio>
<audio
ref=
"audio"
:src=
"mp3Src"
></audio>
</div>
</div>
<div
<div
...
@@ -519,12 +519,12 @@ export default {
...
@@ -519,12 +519,12 @@ export default {
}
}
},
},
audio
(){
audio
()
{
console
.
log
(
"this.$refs.audio.paused"
,
this
.
$refs
.
audio
.
paused
)
console
.
log
(
"this.$refs.audio.paused"
,
this
.
$refs
.
audio
.
paused
);
if
(
this
.
$refs
.
audio
.
paused
)
{
if
(
this
.
$refs
.
audio
.
paused
)
{
// this.$refs.audio.paused = false;
// this.$refs.audio.paused = false;
this
.
$refs
.
audio
.
play
();
this
.
$refs
.
audio
.
play
();
}
}
},
},
initMap
()
{
initMap
()
{
let
gaoMap
=
new
gaodeMap
(
process
.
env
.
VUE_APP_MAP_CENTER
);
let
gaoMap
=
new
gaodeMap
(
process
.
env
.
VUE_APP_MAP_CENTER
);
...
@@ -727,6 +727,8 @@ export default {
...
@@ -727,6 +727,8 @@ export default {
options
.
lineData
.
alarmValue
=
null
;
options
.
lineData
.
alarmValue
=
null
;
console
.
log
(
"管道回复"
);
console
.
log
(
"管道回复"
);
}
else
{
}
else
{
// 报警声音
this
.
audio
();
polyline
.
setOptions
({
strokeColor
:
"#ff0000"
});
polyline
.
setOptions
({
strokeColor
:
"#ff0000"
});
options
.
lineData
.
alarmState
=
1
;
options
.
lineData
.
alarmState
=
1
;
// 报警类型
// 报警类型
...
@@ -740,7 +742,7 @@ export default {
...
@@ -740,7 +742,7 @@ export default {
console
.
log
(
item
.
selfData
.
alarmState
);
console
.
log
(
item
.
selfData
.
alarmState
);
return
item
.
selfData
.
alarmState
;
return
item
.
selfData
.
alarmState
;
})[
0
];
})[
0
];
// console.log("this.allList[0]", this.allList[0]);
// console.log("this.allList[0]", this.allList[0]);
// console.log("myP", myP);
// console.log("myP", myP);
// 改变左侧列表的状态(1报警,0,正常)
// 改变左侧列表的状态(1报警,0,正常)
...
@@ -776,6 +778,8 @@ export default {
...
@@ -776,6 +778,8 @@ export default {
// 报警信息
// 报警信息
options
.
alarmValue
=
null
;
options
.
alarmValue
=
null
;
}
else
{
}
else
{
// 报警声音
this
.
audio
();
options
.
alarmState
=
1
;
options
.
alarmState
=
1
;
// 报警类型
// 报警类型
options
.
alarmType
=
alarmType
;
options
.
alarmType
=
alarmType
;
...
...
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