|
@ -73,9 +73,6 @@ watch(searchStr, (newVal, oldVal) => { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
expandedKeys.value = expandedKeyArr |
|
|
expandedKeys.value = expandedKeyArr |
|
|
console.log(expandedKeys.value); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
function selectCamera(e: any) { |
|
|
function selectCamera(e: any) { |
|
|
if (e.length && !isNaN(parseInt(e[0]))) { |
|
|
if (e.length && !isNaN(parseInt(e[0]))) { |
|
@ -103,7 +100,6 @@ function searchFn(newVal: string, arr: any[]): any { |
|
|
function loadTreeData() { |
|
|
function loadTreeData() { |
|
|
cameraApi.GetList().then((res: any) => { |
|
|
cameraApi.GetList().then((res: any) => { |
|
|
let list: Array<any> = res.data.data; |
|
|
let list: Array<any> = res.data.data; |
|
|
console.log(list); |
|
|
|
|
|
treeData.value[0].children[0].children = list.map((item: any) => { |
|
|
treeData.value[0].children[0].children = list.map((item: any) => { |
|
|
item.title = item.name |
|
|
item.title = item.name |
|
|
item.key = item.id.toString() |
|
|
item.key = item.id.toString() |
|
|