1
guanqb
2023-02-06 a5b01ee621cea6eceed0395bbe9c88661ce2683d
1
2 files modified
12 ■■■■■ changed files
src/views/house/index.vue 8 ●●●● patch | view | raw | blame | history
src/views/video/list.vue 4 ●●● patch | view | raw | blame | history
src/views/house/index.vue
@@ -812,13 +812,6 @@
            //     titlesetUrl: '/sd/tileset.json'
            // })
            // this.$EventBus.$emit('toPosition', {
            //     siteJd: 116.027212,
            //     siteWd: 28.678499,
            //     siteGd: 600,
            //     siteHeading: -3,
            //     sitePitch: -45
            // })
            if (wallLayer == null) {
                wallLayer = new global.DC.VectorLayer('wallLayer')
@@ -908,6 +901,7 @@
                    list.forEach(item => {
                        item.leaf = !item.hasChildren
                    })
                    console.log(777, node, list)
                })
                return resolve(list)
            }
src/views/video/list.vue
@@ -195,7 +195,7 @@
            props: {
                label: 'name',
                children: 'zones',
                isLeaf: true
                // isLeaf: true
                // isLeaf: (data, node) => {
                //     if (node.level === 4) {
                //         return true
@@ -608,6 +608,8 @@
                await getTreeDevices({ page: 1, count: 100, parentId: node.data.id, onlyCatalog: false }).then(res => {
                    data = res.data.data.list
                })
                console.log(node, data, 5555)
                return resolve(data)
            }
        },