解决折叠面板绑定值导致设备监控便携式设备顶部按钮显示异常问题

This commit is contained in:
zhujiyan
2024-09-26 16:11:05 +08:00
parent d6b30eeb96
commit f0711d334b
2 changed files with 5 additions and 4 deletions

View File

@@ -16,8 +16,7 @@
<div class="cn-tree" :style="{ opacity: menuCollapse ? 0 : 1 }"> <div class="cn-tree" :style="{ opacity: menuCollapse ? 0 : 1 }">
<div style="display: flex; align-items: center" class="mb10"> <div style="display: flex; align-items: center" class="mb10">
<!-- <el-form-item> --> <!-- <el-form-item> -->
<el-input v-model="filterText" <el-input v-model="filterText" autocomplete="off" placeholder="请输入内容" clearable>
autocomplete="off" placeholder="请输入内容" clearable>
<template #prefix> <template #prefix>
<Icon name="el-icon-Search" style="font-size: 16px" /> <Icon name="el-icon-Search" style="font-size: 16px" />
</template> </template>
@@ -190,7 +189,8 @@ const changeDevice = (val: any) => {
}) })
treeRef1.value && treeRef1.value.setCurrentKey(arr1[0].id) treeRef1.value && treeRef1.value.setCurrentKey(arr1[0].id)
emit('changeDeviceType', activeName.value, arr1[0]) emit('changeDeviceType', activeName.value, arr1[0])
} else { }
if (val == '1') {
arr1.map((item: any) => { arr1.map((item: any) => {
item.checked = false item.checked = false
}) })

View File

@@ -183,7 +183,8 @@ const changeDevice = (val: any) => {
}) })
treeRef1?.value && treeRef1.value.setCurrentKey(arr1[0]?.id) treeRef1?.value && treeRef1.value.setCurrentKey(arr1[0]?.id)
emit('changePointType', activeName.value, arr1[0]) emit('changePointType', activeName.value, arr1[0])
} else { }
if (val == '1') {
arr1.map((item: any) => { arr1.map((item: any) => {
item.checked = false item.checked = false
}) })