无人机接入
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
@node-click="handleNodeClick">
|
||||
<template v-slot="{ node, data }">
|
||||
<!-- <img src="@/assets/images/livePreview/icon-monitor.png" alt=""> -->
|
||||
<span :class="(data.status === 'offline' && treeType === 'UAV') ? 'offline': ''">{{ node.label }}</span>
|
||||
<span :class="(!data.sourceType && treeType === 'UAV') ? 'offline': ''">{{ node.label }}</span>
|
||||
</template>
|
||||
</el-tree>
|
||||
</div>
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted } from 'vue'
|
||||
import { videoCameraFindPage, findUavPage, findEnvPage, dsVideoList } from '@/api/device.js'
|
||||
import { findVideoLevelList, findUavPage, findEnvPage, dsVideoList } from '@/api/device.js'
|
||||
|
||||
const emit = defineEmits([ 'handle' ])
|
||||
|
||||
@@ -27,11 +27,8 @@ const treeType = ref('')
|
||||
const refresh = (type) => {
|
||||
treeType.value = type
|
||||
if(type === 'CCTV') {
|
||||
const params = {
|
||||
pageNo: 1,
|
||||
pageSize: 9999
|
||||
}
|
||||
videoCameraFindPage(params).then(res => {
|
||||
const params = {}
|
||||
findVideoLevelList(params).then(res => {
|
||||
if (res.success) {
|
||||
const data = res.result.records
|
||||
const groupedData = {}
|
||||
@@ -93,14 +90,14 @@ const refresh = (type) => {
|
||||
}
|
||||
|
||||
})
|
||||
tableData.value = result
|
||||
tableData.value = res.result.records
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
const handleNodeClick = (data, node) => {
|
||||
if(data.status && data.status === 'offline') {
|
||||
if(!data.sourceType) {
|
||||
return false
|
||||
}
|
||||
if(!data.children || data.children.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user