|
@@ -209,17 +209,13 @@ async function getVideoDetailList() {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-async function getVideoDeviceList() {
|
|
|
|
|
|
|
+ function getVideoDeviceList() {
|
|
|
listVideo({ pageSize: 10000 }).then(res => {
|
|
listVideo({ pageSize: 10000 }).then(res => {
|
|
|
treeList.value = res.rows;
|
|
treeList.value = res.rows;
|
|
|
|
|
+ getVideoDetailList()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-async function videoTreeList() {
|
|
|
|
|
- await getVideoDeviceList()
|
|
|
|
|
- await getVideoDetailList()
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const getVideoList = () => {
|
|
const getVideoList = () => {
|
|
|
console.log(searchform.value);
|
|
console.log(searchform.value);
|
|
|
listVideo({ ...searchform.value, pageSize: pagedata.value.size, pageNum: pagedata.value.current }).then(res => {
|
|
listVideo({ ...searchform.value, pageSize: pagedata.value.size, pageNum: pagedata.value.current }).then(res => {
|
|
@@ -235,9 +231,10 @@ const goUpdate = (item) => {
|
|
|
router.push({ path: '/device/camera/add', query: { id: item.id } })
|
|
router.push({ path: '/device/camera/add', query: { id: item.id } })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+getVideoDeviceList();
|
|
|
getVideoList();
|
|
getVideoList();
|
|
|
-const res = videoTreeList();
|
|
|
|
|
-console.log(res);
|
|
|
|
|
|
|
+// const res = videoTreeList();
|
|
|
|
|
+// console.log(res);
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style></style>
|
|
<style></style>
|