-
+
+
点位名称:{{ objRow.userData.objinfo.deviceName }}
+
所属主设备:{{ objRow.userData.objinfo.mainDeviceName }}
+
所属部件:{{ objRow.userData.objinfo.componentName }}
+
关联摄像机/预置位:
+
+
+
识别类型:
+ 表计读取
+ 位置状态识别
+ 设备外观查看
+ 红外测温
+ 声音检测
+ 闪烁检测
+ 局放特高频检测
+ 局放地电压检测
+ 局放超声波检测
+ 环境温度检测
+ 环境湿度检测
+ 氧气浓度检测
+ SF6浓度检测
+
+
表计类型:{{ objRow.userData.objinfo.meterType }}
+
分析类型:{{ objRow.userData.objinfo.manufacturer }}
+ 刀闸状态
+ 开关/压板状态
+ 仪表读数
+ 红外温度
+ 声音
+ 指示灯
+ 实物ID
+
+
设备编码:{{ objRow.userData.objinfo.patroldeviceCode }}
设备名称:{{ objRow.userData.objinfo.patroldeviceName }}
@@ -294,6 +351,97 @@
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+ {{
+ currency(MeterTypeList, scope.row.meterType) }}
+ --
+
+
+
+
+
+ 未巡视
+ 已巡视
+ 已完成
+ 设备检修中
+ 巡视失败
+ 已修正
+ 采集失败
+
+
+
+
+
+
+ {{ scope.row.desc
+ }}
+ --
+
+
+
+
+
+
+ {{
+ scope.row.value }}
+ {{ scope.row.unit }}
+ {{ scope.row.value }} {{ scope.row.unit }}
+
+
+ {{ scope.row.conf
+ }}
+ --
+
+
+
+
+
+ 正常
+ 异常
+ 设备检修
+ 失败
+ 成功
+ --
+
+
+
+
+ --
+ {{ scope.row.reviseValue }} {{ scope.row.unit }}
+
+
+
+
+ 正常
+ 异常
+ --
+
+
+
+
+
+
+
@@ -310,6 +458,9 @@
v-if="isVideo && dataSel.userData != undefined && dataSel.userData.objinfo != undefined && dataSel.userData.objinfo.channelList != undefined && dataSel.userData.objinfo.channelList.length == 2 && dataSel.userData.objinfo.online == 1"
@click.stop="realTimeVideo(1, 1)">实时视频-2
+
- 无人车信息
- {
if (res.data.data != undefined) {
videoUrl.value = res.data.data.ws_flv
videofmp4.value = res.data.data.fmp4
+ if (index == 'camera') {
+ presetPosition(130,row.patroldevice_pos)
+ }
+
}
}).catch(function (error) {
})
}
+function presetPosition(cmdCode,presetPos) { // 预置位操作 ---设置、删除、调用
+
+axios.get(userStore.webApiBaseUrl + '/basedata/substation-patroldevice/isWorkingOfPatrolDevice?stationcode=' + userStore.stationCode + "&devicecode=" + deviceId.value, {}).then((resize) => {
+ if (res.data.data == "0") {
+ console.log("预置位")
+ axios.post(userStore.webApiMonitorUrl + '/api/ptz/front_end_command/' + deviceId.value + '/' + channelId.value + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0', {}).then((res) => { })
+ }
+})
+}
//摄像机-摄像机-视频播放
const videoChannelList = ref([])
function realTimeVideo(row, index) {
@@ -2277,6 +2469,12 @@ function realTimeVideo(row, index) {
}
// }
}
+function getDeviceVideo(row) {
+ let camera = JSON.parse(row.objinfo.patroldeviceJson)
+ console.log(camera)
+ getVideoUrl(camera[0], 'camera')
+ videoShow.value = true
+}
//列表点击-查看详细信息
function informationClick(row) {
information.value = true
@@ -2290,6 +2488,79 @@ function informationClick(row) {
})
clearDiv()
}
+//点位历史记录
+const history = ref(false)
+const histotal = ref(0)
+const historParams = ref({
+ size: 10,
+ current: 1,
+ deviceId: '',
+ startDate: '',
+ endDate: ''
+})
+const historydata = ref([])
+const hisloading = ref(false)
+const timeSlot = ref([])
+const deviceIdone = ref('')
+function historicalRecords(row) {
+ console.log(row)
+ getType()
+ deviceIdone.value = row
+ historParams.value.deviceId = row.objinfo.deviceId
+ console.log(timeSlot.value)
+ if (timeSlot.value.length > 0) {
+ historParams.value.startDate = timeSlot.value[0]
+ historParams.value.endDate = timeSlot.value[1]
+ } else {
+ historParams.value.startDate = ''
+ historParams.value.endDate = ''
+ }
+ hisloading.value = true
+ history.value = true
+ getHistoryDevice(historParams.value).then(res => {
+ if (res.code == 0) {
+ historydata.value = res.data.records
+ historParams.value.size = res.data.records
+ historParams.value.current = res.data.current
+ histotal.value = res.data.total
+ hisloading.value = false
+ // history.value = false
+ }
+ })
+}
+function hisreset() {
+ timeSlot.value.length = 0
+ historicalRecords(deviceIdone.value)
+}
+const tableRowClassName = ({
+ row,
+ rowIndex,
+}) => {
+ if (rowIndex % 2 === 0) {
+ return 'warning-row'
+ } else if (rowIndex % 2 === 1) {
+ return 'success-row'
+ }
+ return ''
+}
+function currency(list, itemcode) {
+ let dictname = ''
+ list.forEach((element) => {
+ if (element.itemcode == itemcode) {
+ dictname = element.dictname
+ }
+ })
+ return dictname
+}
+const MeterTypeList = ref([])
+function getType() {
+ const paramstypes = {
+ dictcode: 'MeterType'
+ }
+ getDeviceByType(paramstypes).then((res) => {
+ MeterTypeList.value = res.data
+ })
+}
// 视角切换
function animateCamera(current1, target1, current2, target2) {
// current1 相机当前的位置
@@ -2574,7 +2845,7 @@ function nextPage() {
AlarmMapOne.value = AlarmMap.value[Index.value]
}
-
+