修改在线设备

This commit is contained in:
guanj
2026-01-08 11:33:40 +08:00
parent 0d155c8680
commit c2d0faea08
7 changed files with 13 additions and 13 deletions

View File

@@ -93,7 +93,7 @@
</template>
</el-tree>
</el-collapse-item>
<el-collapse-item title="在线设备" name="2" v-if="yqfDeviceData.length != 0">
<el-collapse-item title="监测设备" name="2" v-if="yqfDeviceData.length != 0">
<el-tree
:style="{ height: zlDeviceData.length != 0 ? 'calc(100vh - 340px)' : 'calc(100vh - 238px)' }"
ref="treeRef3"
@@ -162,7 +162,7 @@ const zlDeviceData = ref<any>([])
const zlDevList = ref<any>([])
//便携式设备数据
const bxsDeviceData = ref<any>([])
//在线设备数据
//监测设备数据
const yqfDeviceData = ref<any>([])
watch(
() => props.data,
@@ -180,7 +180,7 @@ watch(
item.children.map((vv: any) => {
bxsDeviceData.value.push(vv)
})
} else if (item.name == '在线设备') {
} else if (item.name == '监测设备') {
yqfDeviceData.value = []
item.children.map((vv: any) => {
yqfDeviceData.value.push(vv)