Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
Z
zhxf_vue
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
葛齐林
zhxf_vue
Commits
fc1ac665
Commit
fc1ac665
authored
Apr 26, 2021
by
xiexingan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
92c4c72f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
30 deletions
+63
-30
index.vue
src/pages/ol/demo/index.vue
+1
-0
no-query-detail.vue
src/pages/ol/demo/no-query-detail.vue
+50
-18
query-detail.vue
src/pages/ol/demo/query-detail.vue
+12
-12
No files found.
src/pages/ol/demo/index.vue
View file @
fc1ac665
...
@@ -673,6 +673,7 @@ export default {
...
@@ -673,6 +673,7 @@ export default {
})
})
},
},
pointListClick
(
item
)
{
pointListClick
(
item
)
{
console
.
log
(
'item'
,
item
)
//监视器列表点击
//监视器列表点击
//关闭其他窗口
//关闭其他窗口
// this.closeNoQueryDetailVisible()
// this.closeNoQueryDetailVisible()
...
...
src/pages/ol/demo/no-query-detail.vue
View file @
fc1ac665
...
@@ -82,23 +82,24 @@
...
@@ -82,23 +82,24 @@
<div class='info-title'>监控点信息</div>
<div class='info-title'>监控点信息</div>
<div class='info-form'>
<div class='info-form'>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">
线路站点 : <span>
{{
dataForm
.
lineStation
}}
</span></p>
<p class="leftP">
设备名称 : <span class='title'>
{{
dataForm
.
name
}}
喷淋监测点
</span></p>
</div>
</div>
<div class=
"quDetailM"
>
<div class=
'typeInfoBox'
>
<
p class="leftP">资源点名称 :
{{
dataForm
.
name
}}
</p
>
<
div class="typeInfo"
>
</div>
<div class='title'>末端流量
</div>
<div class="quDetailM"
>
<div><span class='num'>9</span> <span class='unit'>L/s</span></div
>
<p class="leftP">资源点类型 :
{{
dataForm
.
typeName
}}
</p
>
<div class='scope'>参考值:5~20 L/s</div
>
</div>
</div>
<div class="quDetailM
">
<div class="typeInfo
">
<p class="leftP">资源点编码 :
{{
dataForm
.
code
}}
</p
>
<div class='title'>当前压力</div
>
</div>
<div><span class='num'>0.78</span> <span class='unit'>Mpa</span>
</div>
<div class="quDetailM"
>
<div class='scope'>参考值:0.35~1.45 Mpa</div
>
<
p class="leftP">资源点状态 :
{{
dataForm
.
status
==
1
?
'正常'
:
'异常'
}}
</p
>
<
/div
>
</div>
</div>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">
部署位置 :
{{
dataForm
.
deployLocation
}}
</p>
<p class="leftP">
资源点状态 : <span>
{{
dataForm
.
status
==
1
?
'正常'
:
'异常'
}}
</span>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -148,12 +149,13 @@ export default {
...
@@ -148,12 +149,13 @@ export default {
},
},
methods
:
{
methods
:
{
init
(
id
,
stationId
)
{
init
(
id
,
stationId
)
{
console
.
log
(
'id'
,
id
)
this
.
clickFlag
=
false
this
.
clickFlag
=
false
this
.
dataForm
.
id
=
id
this
.
dataForm
.
id
=
id
// this.stationId = stationId
// this.stationId = stationId
this
.
cameraCur
=
{}
this
.
cameraCur
=
{}
this
.
camera
=
''
this
.
camera
=
''
this
.
initResource
()
//
this.initResource()
this
.
dataForm
.
operatorName
=
this
.
info
.
name
this
.
dataForm
.
operatorName
=
this
.
info
.
name
},
},
initResource
()
{
initResource
()
{
...
@@ -298,7 +300,7 @@ export default {
...
@@ -298,7 +300,7 @@ export default {
this
.
cameraCur
=
res
this
.
cameraCur
=
res
}
}
})
})
if
(
this
.
flvPlayer
)
{
if
(
this
.
flvPlayer
)
{
this
.
flvPlayer
.
pause
()
this
.
flvPlayer
.
pause
()
this
.
flvPlayer
.
unload
()
this
.
flvPlayer
.
unload
()
this
.
flvPlayer
.
detachMediaElement
()
this
.
flvPlayer
.
detachMediaElement
()
...
@@ -381,7 +383,7 @@ export default {
...
@@ -381,7 +383,7 @@ export default {
width
:
100%
;
height
:
180px
;
width
:
100%
;
height
:
180px
;
}
}
.animation
{
.animation
{
animation
:
myfirst
1s
;
position
:
absolute
;
top
:
50px
;
right
:
0
;
width
:
33
0px
;
background-color
:
#F4F4F4
;
z-index
:
11
;
border
:
1px
solid
rgba
(
195
,
195
,
195
,
1
);
animation
:
myfirst
1s
;
position
:
absolute
;
top
:
-40px
;
right
:
5px
;
width
:
35
0px
;
background-color
:
#F4F4F4
;
z-index
:
11
;
border
:
1px
solid
rgba
(
195
,
195
,
195
,
1
);
box-shadow
:
0
2px
8px
8px
rgba
(
0
,
0
,
0
,
0
.2
)
box-shadow
:
0
2px
8px
8px
rgba
(
0
,
0
,
0
,
0
.2
)
}
}
@keyframes
myfirst
{
@keyframes
myfirst
{
...
@@ -390,13 +392,43 @@ export default {
...
@@ -390,13 +392,43 @@ export default {
}
}
.quDetailM
{
.quDetailM
{
width
:
100%
;
width
:
100%
;
border
:
1px
solid
#BDCAD1
;
margin-bottom
:
10px
;
background
:
#fff
;
}
}
.leftP
{
.leftP
{
height
:
30px
;
line-height
:
30px
;
margin
:
0
;
width
:
100%
;
font-size
:
14px
;
height
:
30px
;
line-height
:
30px
;
margin
:
0
;
width
:
100%
;
font-size
:
14px
;
text-indent
:
10px
;
span
{
span
{
color
:
#46b6f9
;
color
:
#0179C1
;
}
}
.typeInfoBox
{
display
:
flex
;
justify-content
:
space-between
;
margin-bottom
:
10px
;
.typeInfo
{
width
:
48%
;
height
:
100px
;
background
:
#fff
;
border
:
1px
solid
#BDCAD1
;
text-align
:center
;
div
{
margin
:
10px
0
;
}
}
.title
{
font-size
:
16px
;
font-weight
:
600
;
}
.num
{
font-size
:
16px
;
font-weight
:
bold
;
color
:
#0179C1
;
}
.scope
{
color
:
#5E5D5D
;
}
}
}
}
.operate
{
.operate
{
padding
:
5px
0
;
padding
:
5px
0
;
...
...
src/pages/ol/demo/query-detail.vue
View file @
fc1ac665
...
@@ -73,23 +73,23 @@
...
@@ -73,23 +73,23 @@
</div>
</div>
<div class='info-title'>监控点信息</div>
<div class='info-title'>监控点信息</div>
<div class='info-form'>
<div class='info-form'>
//- <div class="quDetailM">
//- <p class="leftP">线路站点 : <span>
{{
dataForm
.
lineStation
}}
</span></p>
//- </div>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">
线路站点 : <span>
{{
dataForm
.
lineStation
}}
</span>
</p>
<p class="leftP">
资源点名称 :
{{
dataForm
.
name
}}
枪机
</p>
</div>
</div>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">资源点
名称 :
{{
dataForm
.
name
}}
</p>
<p class="leftP">资源点
类型 :
{{
dataForm
.
typeName
}}
枪机
</p>
</div>
</div>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">资源点类型 :
{{
dataForm
.
typeName
}}
</p>
<p class="leftP">资源点编码 :
{{
dataForm
.
code
}}
QJ-0002</p>
</div>
<div class="quDetailM">
<p class="leftP">资源点编码 :
{{
dataForm
.
code
}}
</p>
</div>
</div>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">资源点状态 :
{{
dataForm
.
status
==
1
?
'正常'
:
'异常'
}}
</p>
<p class="leftP">资源点状态 :
{{
dataForm
.
status
==
1
?
'正常'
:
'异常'
}}
</p>
</div>
</div>
<div class="quDetailM">
<div class="quDetailM">
<p class="leftP">部署位置 :
{{
dataForm
.
deployLocation
}}
</p>
<p class="leftP">部署位置 :
{{
dataForm
.
deployLocation
}}
场景一
</p>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -172,16 +172,16 @@ export default {
...
@@ -172,16 +172,16 @@ export default {
if
(
data
&&
data
.
code
===
0
)
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
bean
this
.
dataForm
=
data
.
bean
//如果当前设备摄像头为离线状态,则不加载画面
//如果当前设备摄像头为离线状态,则不加载画面
if
(
data
.
bean
.
byx2
==
0
&&
this
.
flvPlayer
){
//资源点状态(0=离线,1=在线)
if
(
data
.
bean
.
byx2
==
0
&&
this
.
flvPlayer
)
{
//资源点状态(0=离线,1=在线)
this
.
flvPlayer
.
pause
()
this
.
flvPlayer
.
pause
()
this
.
flvPlayer
.
unload
()
this
.
flvPlayer
.
unload
()
this
.
flvPlayer
.
detachMediaElement
()
this
.
flvPlayer
.
detachMediaElement
()
this
.
flvPlayer
.
destroy
()
this
.
flvPlayer
.
destroy
()
this
.
flvPlayer
=
null
this
.
flvPlayer
=
null
return
return
}
else
if
(
data
.
bean
.
byx2
==
0
&&
!
this
.
flvPlayer
)
{
}
else
if
(
data
.
bean
.
byx2
==
0
&&
!
this
.
flvPlayer
)
{
return
return
}
else
if
(
this
.
flvPlayer
)
{
}
else
if
(
this
.
flvPlayer
)
{
this
.
flvPlayer
.
pause
()
this
.
flvPlayer
.
pause
()
this
.
flvPlayer
.
unload
()
this
.
flvPlayer
.
unload
()
this
.
flvPlayer
.
detachMediaElement
()
this
.
flvPlayer
.
detachMediaElement
()
...
@@ -343,8 +343,8 @@ export default {
...
@@ -343,8 +343,8 @@ export default {
animation
:
myfirst
1s
;
animation
:
myfirst
1s
;
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
top
:
5
0px
;
top
:
-4
0px
;
width
:
3
3
0px
;
width
:
3
5
0px
;
background-color
:
#f4f4f4
;
background-color
:
#f4f4f4
;
z-index
:
999
;
z-index
:
999
;
border
:
1px
solid
rgba
(
195
,
195
,
195
,
1
);
border
:
1px
solid
rgba
(
195
,
195
,
195
,
1
);
...
...
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