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
456d5bf2
Commit
456d5bf2
authored
Mar 31, 2023
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加一些功能
parent
8ac366c3
Hide 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 @
456d5bf2
...
@@ -200,9 +200,9 @@ export default {
...
@@ -200,9 +200,9 @@ export default {
deviceId
:
""
,
deviceId
:
""
,
alarm
:
{},
alarm
:
{},
list
:
[
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 @
456d5bf2
...
@@ -63,21 +63,56 @@
...
@@ -63,21 +63,56 @@
<!-- 报警状态 -->
<!-- 报警状态 -->
<div
class=
"warn-wrapper"
v-if=
"true"
>
<div
class=
"warn-wrapper"
v-if=
"true"
>
<div
class=
"warn-content"
>
<!-- 阀门井跟调压箱 报警-->
<div>
<template
v-if=
"data.deviceType == 1 || data.deviceType == 2"
>
报警状态:
<span
<div
class=
"windowwarn-content tab"
v-if=
"list.length > 0"
>
>
报警(
{{
data
.
alarmType
?
data
.
alarmType
:
"-"
}}
)
</span
<div
class=
"foot"
>
>
<div
class=
"thead flex"
>
</div>
<div
class=
"first"
>
设备名称
</div>
<div>
<div>
设备状态
</div>
详细信息:
<span>
{{
data
.
alarmValue
?
data
.
alarmValue
:
"-"
}}
</span>
<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>
<div
v-if=
"!orderId"
>
<div
v-else
class=
"windowwarn-content tab nomal"
>
暂无设备
</div>
工单编号:
<span>
{{
data
.
orderId
?
data
.
orderId
:
"-"
}}
</span>
</template>
<!-- 流量计跟压力表报警 -->
<
template
v-if=
"data.deviceType == 3 || data.deviceType == 4"
>
<div
class=
"warn-content"
>
<div>
报警状态:
<span
>
报警(
{{
data
.
alarmType
?
data
.
alarmType
:
"-"
}}
)
</span
>
</div>
<div>
详细信息:
<span>
{{
data
.
alarmValue
?
data
.
alarmValue
:
"-"
}}
</span>
</div>
<div
v-if=
"!orderId"
>
工单编号:
<span>
{{
data
.
orderId
?
data
.
orderId
:
"-"
}}
</span>
</div>
</div>
</div>
</div>
<template
v-if=
"data.deviceType == 3 || data.deviceType == 4"
>
<div
<div
v-if=
"data.deviceType == 3"
v-if=
"data.deviceType == 3"
class=
"windowwarn-content"
class=
"windowwarn-content"
...
@@ -193,6 +228,12 @@ export default {
...
@@ -193,6 +228,12 @@ export default {
3
:
"流量计"
,
3
:
"流量计"
,
4
:
"智能燃气表"
,
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
,
loading
:
null
,
};
};
},
},
...
@@ -343,6 +384,54 @@ export default {
...
@@ -343,6 +384,54 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.windowwarn-content
{
.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
{
div
{
font-size
:
14px
;
font-size
:
14px
;
font-wwight
:
400
;
font-wwight
:
400
;
...
...
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
456d5bf2
...
@@ -925,6 +925,30 @@ export default {
...
@@ -925,6 +925,30 @@ export default {
require
(
`@/assets/images/ylb.gif`
)
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