湖里大屏(数字工地):完成塔吊弹框报警信息联调
This commit is contained in:
parent
154134b45b
commit
ca1e34f924
@ -460,7 +460,7 @@
|
|||||||
{{ $t('message.dataBoard.alarmInfo') }}
|
{{ $t('message.dataBoard.alarmInfo') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="deviceInfo" v-if="company != 'longguang'">
|
<div class="deviceInfo" v-if="company != 'longguang'">
|
||||||
<vue-scroll v-if="TowerAlarmList.length != 0" style="height: 350px; margin-bottom: 10px">
|
<vue-scroll v-if="TowerAlarmList.length" style="height: 350px; margin-bottom: 10px">
|
||||||
<div class="driverInfo" v-for="(item, index) in TowerAlarmList" :key="index">
|
<div class="driverInfo" v-for="(item, index) in TowerAlarmList" :key="index">
|
||||||
<div class="TowerAlarm_item">
|
<div class="TowerAlarm_item">
|
||||||
<p class="p1">{{ $t('message.dataBoard.devName2') + ':' }}{{ item.devName }}</p>
|
<p class="p1">{{ $t('message.dataBoard.devName2') + ':' }}{{ item.devName }}</p>
|
||||||
@ -469,7 +469,6 @@
|
|||||||
<!-- 风速报警 -->
|
<!-- 风速报警 -->
|
||||||
{{ $t('message.dataBoard.alarmTypeArray2')[0] }}
|
{{ $t('message.dataBoard.alarmTypeArray2')[0] }}
|
||||||
</p>
|
</p>
|
||||||
<!-- <p class="p1">警报类别:{{ item.alarmType == 1?'报警':item.alarmType == 2?'预警':"--" }}</p>-->
|
|
||||||
<p v-if="item.environmentAlarm" class="p2">
|
<p v-if="item.environmentAlarm" class="p2">
|
||||||
<!-- 环境防撞报警 -->
|
<!-- 环境防撞报警 -->
|
||||||
{{ $t('message.dataBoard.alarmTypeArray2')[1] }}
|
{{ $t('message.dataBoard.alarmTypeArray2')[1] }}
|
||||||
@ -1056,7 +1055,7 @@
|
|||||||
{{ $t('message.dataBoard.alarmInfo') }}
|
{{ $t('message.dataBoard.alarmInfo') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="deviceInfo" style="background: #061125" v-if="company == 'longguang'">
|
<div class="deviceInfo" style="background: #061125" v-if="company == 'longguang'">
|
||||||
<vue-scroll v-if="TowerAlarmList.length != 0" style="height: 300px; margin-bottom: 10px">
|
<vue-scroll v-if="TowerAlarmList.length " style="height: 300px; margin-bottom: 10px">
|
||||||
<div class="driverInfo" v-for="(item, index) in TowerAlarmList" :key="index">
|
<div class="driverInfo" v-for="(item, index) in TowerAlarmList" :key="index">
|
||||||
<div class="TowerAlarm_item">
|
<div class="TowerAlarm_item">
|
||||||
<p v-if="item.windSpeedAlarm" class="p1" style="width: 100%; font-size: 15px">
|
<p v-if="item.windSpeedAlarm" class="p1" style="width: 100%; font-size: 15px">
|
||||||
@ -3110,19 +3109,12 @@ export default {
|
|||||||
},
|
},
|
||||||
//获取单个塔吊设备信息
|
//获取单个塔吊设备信息
|
||||||
getTowerDriverInfo(devSn) {
|
getTowerDriverInfo(devSn) {
|
||||||
let data = {
|
getTowerAlarmListApi({ devSn, projectSn: this.projectSn }).then(res => {
|
||||||
devSn
|
|
||||||
}
|
|
||||||
let getTowerAlarmListApiData = {
|
|
||||||
devSn,
|
|
||||||
projectSn: this.projectSn
|
|
||||||
}
|
|
||||||
getTowerAlarmListApi(getTowerAlarmListApiData).then(res => {
|
|
||||||
console.log(res.result)
|
console.log(res.result)
|
||||||
this.TowerAlarmList = res.result.records
|
this.TowerAlarmList = res.result.records
|
||||||
})
|
})
|
||||||
this.getTowerWarningList(devSn)
|
this.getTowerWarningList(devSn)
|
||||||
getSelectTowerBySnApi(data).then(res => {
|
getSelectTowerBySnApi({ devSn }).then(res => {
|
||||||
console.log(1)
|
console.log(1)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log(res.result)
|
console.log(res.result)
|
||||||
|
|||||||
@ -23,6 +23,29 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-title">报警信息</div>
|
||||||
|
<div class="alert content">
|
||||||
|
<vue-scroll>
|
||||||
|
<div v-for="(alert, index) in alerts" :key="index" class="alert-info">
|
||||||
|
<div class="alert-item">设备名称:{{ alert.devName }}</div>
|
||||||
|
<div class="alert-item">设备时间:{{ fmtDate(alert.alarmTime) }}</div>
|
||||||
|
<div class="alert-item" v-if="alert.windSpeedAlarm">风速报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.environmentAlarm">环境防撞报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.heightAlarm">高度上限位报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.maxRangeAlarm">幅度外限位报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.minRangeAlarm">幅度内限位报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.momentAlarm">力矩报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.multiAlarm">多机防撞报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.negAngleAlarm">逆时针回转限位报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.posAngleAlarm">顺时针回转限位报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.speedAlarm">速度报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.topAlarm">防冲顶报警</div>
|
||||||
|
<div class="alert-item" v-if="alert.weightAlarm">载重报警</div>
|
||||||
|
</div>
|
||||||
|
</vue-scroll>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="center"></div>
|
<div class="center"></div>
|
||||||
<div class="right"></div>
|
<div class="right"></div>
|
||||||
@ -34,6 +57,7 @@
|
|||||||
import AreaTree from '@/components/areaTree'
|
import AreaTree from '@/components/areaTree'
|
||||||
import VideoModule from '@/components/videoModule/videoModule'
|
import VideoModule from '@/components/videoModule/videoModule'
|
||||||
import { getLifterCurrentDataApi, getSelectLifterBySnApi, getLifterAlarmApi } from '@/assets/js/api/lifter'
|
import { getLifterCurrentDataApi, getSelectLifterBySnApi, getLifterAlarmApi } from '@/assets/js/api/lifter'
|
||||||
|
import { getTowerAlarmListApi } from '@/assets/js/api/towerCrane'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
export default {
|
export default {
|
||||||
components: { AreaTree, VideoModule },
|
components: { AreaTree, VideoModule },
|
||||||
@ -83,10 +107,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getAlertInfo() {
|
getAlertInfo() {
|
||||||
getLifterAlarmApi({ devSn: '2DE46E53AEF7483B98C9B8825ECAA12F', projectSn: this.projectSn }).then(res => {
|
getTowerAlarmListApi({ devSn: 'A5FBF4B23B234DDF9553480DE4D26674', projectSn: this.projectSn }).then(res => {
|
||||||
if (res.code == 200) {
|
this.alerts = res.result.records
|
||||||
this.alerts = res.result.records
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fmtDate(date) {
|
fmtDate(date) {
|
||||||
@ -146,6 +168,23 @@ export default {
|
|||||||
height: 100px;
|
height: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.alert {
|
||||||
|
height: 400px;
|
||||||
|
.alert-info {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.alert-item {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
&:nth-child(odd) {
|
||||||
|
width: calc(100% - 220px);
|
||||||
|
}
|
||||||
|
&:nth-child(even) {
|
||||||
|
width: 220px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user