Commit fc1ac665 authored by xiexingan's avatar xiexingan

提交

parent 92c4c72f
...@@ -673,6 +673,7 @@ export default { ...@@ -673,6 +673,7 @@ export default {
}) })
}, },
pointListClick(item) { pointListClick(item) {
console.log('item', item)
//监视器列表点击 //监视器列表点击
//关闭其他窗口 //关闭其他窗口
// this.closeNoQueryDetailVisible() // this.closeNoQueryDetailVisible()
......
...@@ -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">线路站点&nbsp;:&nbsp;&nbsp;<span>{{dataForm.lineStation}}</span></p> <p class="leftP">设备名称&nbsp;:&nbsp;&nbsp;<span class='title'>{{dataForm.name}} 喷淋监测点</span></p>
</div> </div>
<div class="quDetailM"> <div class='typeInfoBox'>
<p class="leftP">资源点名称&nbsp;:&nbsp;&nbsp;{{dataForm.name}}</p> <div class="typeInfo">
</div> <div class='title'>末端流量</div>
<div class="quDetailM"> <div><span class='num'>9</span>&nbsp;<span class='unit'>L/s</span></div>
<p class="leftP">资源点类型&nbsp;:&nbsp;&nbsp;{{dataForm.typeName}}</p> <div class='scope'>参考值:5~20 L/s</div>
</div> </div>
<div class="quDetailM"> <div class="typeInfo">
<p class="leftP">资源点编码&nbsp;:&nbsp;&nbsp;{{dataForm.code}}</p> <div class='title'>当前压力</div>
</div> <div><span class='num'>0.78</span>&nbsp;<span class='unit'>Mpa</span></div>
<div class="quDetailM"> <div class='scope'>参考值:0.35~1.45 Mpa</div>
<p class="leftP">资源点状态&nbsp;:&nbsp;&nbsp;{{dataForm.status==1?'正常':'异常'}}</p> </div>
</div> </div>
<div class="quDetailM"> <div class="quDetailM">
<p class="leftP">部署位置&nbsp;:&nbsp;&nbsp;{{dataForm.deployLocation}}</p> <p class="leftP">资源点状态&nbsp;:&nbsp;&nbsp;<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: 330px; background-color: #F4F4F4; z-index: 11; border: 1px solid rgba(195, 195, 195, 1); animation: myfirst 1s; position: absolute; top: -40px;right: 5px; width: 350px; 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;
......
...@@ -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">线路站点&nbsp;:&nbsp;&nbsp;<span>{{dataForm.lineStation}} </span></p>
//- </div>
<div class="quDetailM"> <div class="quDetailM">
<p class="leftP">线路站点&nbsp;:&nbsp;&nbsp;<span>{{dataForm.lineStation}}</span></p> <p class="leftP">资源点名称&nbsp;:&nbsp;&nbsp;{{dataForm.name}} 枪机</p>
</div> </div>
<div class="quDetailM"> <div class="quDetailM">
<p class="leftP">资源点名称&nbsp;:&nbsp;&nbsp;{{dataForm.name}}</p> <p class="leftP">资源点类型&nbsp;:&nbsp;&nbsp;{{dataForm.typeName}} 枪机</p>
</div> </div>
<div class="quDetailM"> <div class="quDetailM">
<p class="leftP">资源点类型&nbsp;:&nbsp;&nbsp;{{dataForm.typeName}}</p> <p class="leftP">资源点编码&nbsp;:&nbsp;&nbsp;{{dataForm.code}} QJ-0002</p>
</div>
<div class="quDetailM">
<p class="leftP">资源点编码&nbsp;:&nbsp;&nbsp;{{dataForm.code}}</p>
</div> </div>
<div class="quDetailM"> <div class="quDetailM">
<p class="leftP">资源点状态&nbsp;:&nbsp;&nbsp;{{dataForm.status==1?'正常':'异常'}}</p> <p class="leftP">资源点状态&nbsp;:&nbsp;&nbsp;{{dataForm.status==1?'正常':'异常'}}</p>
</div> </div>
<div class="quDetailM"> <div class="quDetailM">
<p class="leftP">部署位置&nbsp;:&nbsp;&nbsp;{{dataForm.deployLocation}}</p> <p class="leftP">部署位置&nbsp;:&nbsp;&nbsp;{{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: 50px; top: -40px;
width: 330px; width: 350px;
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment