解决便携式设备角色没有治理树id取值失败问题
This commit is contained in:
@@ -176,12 +176,12 @@ const changeDevice = (val: any) => {
|
|||||||
arr2.map(item => {
|
arr2.map(item => {
|
||||||
item.checked = false
|
item.checked = false
|
||||||
})
|
})
|
||||||
treeRef1.value.setCurrentKey(arr1[0].id)
|
treeRef1.value.setCurrentKey(arr1[0]?.id)
|
||||||
} else {
|
} else {
|
||||||
arr1.map(item => {
|
arr1.map(item => {
|
||||||
item.checked = false
|
item.checked = false
|
||||||
})
|
})
|
||||||
treeRef2.value.setCurrentKey(arr2[0].id)
|
treeRef2.value.setCurrentKey(arr2[0]?.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onMenuCollapse = () => {
|
const onMenuCollapse = () => {
|
||||||
|
|||||||
@@ -356,8 +356,8 @@ const handleaddDevice = () => {
|
|||||||
const deviceId: any = ref('')
|
const deviceId: any = ref('')
|
||||||
const lineId: any = ref('')
|
const lineId: any = ref('')
|
||||||
const nodeClick = async (e: anyObj) => {
|
const nodeClick = async (e: anyObj) => {
|
||||||
deviceId.value = e.pid
|
deviceId.value = e?.pid
|
||||||
lineId.value = e.id
|
lineId.value = e?.id
|
||||||
if (!e) {
|
if (!e) {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user