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
27e7f7bc
Commit
27e7f7bc
authored
Mar 31, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b09cb1b6
cc209a4b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
15 deletions
+128
-15
markerInfoWindow.vue
...fety-web/src/components/PopWindowGis/markerInfoWindow.vue
+3
-3
markerInfoWindowWarn.vue
...-web/src/components/PopWindowGis/markerInfoWindowWarn.vue
+101
-12
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+24
-0
No files found.
gassafety-web/src/components/PopWindowGis/markerInfoWindow.vue
View file @
27e7f7bc
...
...
@@ -200,9 +200,9 @@ export default {
deviceId
:
""
,
alarm
:
{},
list
:
[
{
a
:
"我我我我我我
我
"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我我
我我
"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我
我我我
"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我我我"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我我"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我"
,
b
:
2
,
c
:
3
,
d
:
4
},
],
};
},
...
...
gassafety-web/src/components/PopWindowGis/markerInfoWindowWarn.vue
View file @
27e7f7bc
...
...
@@ -63,6 +63,42 @@
<!-- 报警状态 -->
<div
class=
"warn-wrapper"
v-if=
"true"
>
<!-- 阀门井跟调压箱 报警-->
<template
v-if=
"data.deviceType == 1 || data.deviceType == 2"
>
<div
class=
"windowwarn-content tab"
v-if=
"list.length > 0"
>
<div
class=
"foot"
>
<div
class=
"thead flex"
>
<div
class=
"first"
>
设备名称
</div>
<div>
设备状态
</div>
<div>
设备浓度
</div>
<div>
报警状态
</div>
</div>
<template
v-if=
"list.length > 0"
>
<div
class=
"tbody flex"
v-for=
"deviceData in list"
:key=
"deviceData.a"
>
<div
class=
"first zzz"
>
{{
deviceData
.
a
||
"-"
}}
</div>
<div
class=
""
>
{{
deviceData
.
b
||
"-"
}}
</div>
<div
class=
""
>
{{
deviceData
.
c
||
"-"
}}
</div>
<div
class=
""
>
{{
deviceData
.
d
||
"-"
}}
</div>
</div>
</
template
>
</div>
</div>
<div
v-else
class=
"windowwarn-content tab nomal"
>
暂无设备
</div>
</template>
<!-- 流量计跟压力表报警 -->
<
template
v-if=
"data.deviceType == 3 || data.deviceType == 4"
>
<div
class=
"warn-content"
>
<div>
报警状态:
<span
...
...
@@ -77,7 +113,6 @@
</div>
</div>
<template
v-if=
"data.deviceType == 3 || data.deviceType == 4"
>
<div
v-if=
"data.deviceType == 3"
class=
"windowwarn-content"
...
...
@@ -193,6 +228,12 @@ export default {
3
:
"流量计"
,
4
:
"智能燃气表"
,
},
list
:[
{
a
:
"我我我我我我我"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我我我"
,
b
:
2
,
c
:
3
,
d
:
4
},
{
a
:
"我我我我我"
,
b
:
2
,
c
:
3
,
d
:
4
},
],
loading
:
null
,
};
},
...
...
@@ -343,6 +384,54 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.windowwarn-content
{
&
.tab
{
border-bottom
:
1px
solid
#e2e2e2
;
padding
:
10px
5px
2px
5px
;
max-height
:
150px
;
padding-bottom
:
5px
;
overflow-y
:
auto
;
&
:
:-
webkit-scrollbar
{
display
:
none
;
/* Chrome Safari */
}
.foot
{
color
:
#ffffff
;
.thead
,
.tbody
{
display
:
flex
;
border
:
1px
solid
#cccccc
;
border-right
:
none
;
div
{
font-size
:
12px
!
important
;
flex
:
1
;
text-align
:
left
;
border-right
:
1px
solid
#cccccc
;
box-sizing
:
border-box
;
padding
:
0
5px
;
}
.first
{
flex
:
1
;
font-size
:
12px
!
important
;
}
.last
{
border-right
:
none
;
}
}
.tbody
{
border-top
:
none
;
}
.thead
{
div
{
background-color
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
}
}
}
// 无设备的样式
&
.nomal
{
text-align
:
center
;
padding-bottom
:
10px
;
}
div
{
font-size
:
14px
;
font-wwight
:
400
;
...
...
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
27e7f7bc
...
...
@@ -925,6 +925,30 @@ export default {
require
(
`@/assets/images/ylb.gif`
)
);
}
}
else
if
(
device
.
getExtData
().
deviceType
==
1
)
{
if
(
endTime
||
dealStatus
==
4
)
{
this
.
gaoMap
.
changeMarkIcon
(
device
,
require
(
`@/assets/images/tiaoyaxiang.png`
)
);
}
else
{
this
.
gaoMap
.
changeMarkIcon
(
device
,
require
(
`@/assets/images/ylb.gif`
)
);
}
}
else
if
(
device
.
getExtData
().
deviceType
==
2
)
{
if
(
endTime
||
dealStatus
==
4
)
{
this
.
gaoMap
.
changeMarkIcon
(
device
,
require
(
`@/assets/images/famenjing.png`
)
);
}
else
{
this
.
gaoMap
.
changeMarkIcon
(
device
,
require
(
`@/assets/images/ylb.gif`
)
);
}
}
}
});
...
...
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