diff --git a/back/src/views/modules/assetReport/index.vue b/back/src/views/modules/assetReport/index.vue new file mode 100644 index 00000000..fec4af3c --- /dev/null +++ b/back/src/views/modules/assetReport/index.vue @@ -0,0 +1,336 @@ + + + + + + \ No newline at end of file diff --git a/front/src/views/home/detailsPageInfrastructureTreeXha.vue b/front/src/views/home/detailsPageInfrastructureTreeXha.vue index 23d6a2de..56d11d22 100644 --- a/front/src/views/home/detailsPageInfrastructureTreeXha.vue +++ b/front/src/views/home/detailsPageInfrastructureTreeXha.vue @@ -217,8 +217,7 @@ export default defineComponent({ }) const onSelect = async (item, val, child) => { - let res = {} -  mybus.emit('getCameraByParentId', val.id) + let res = {}   res = await getCameraInfoByAreaId({ areaId: val.id }) treeData.value.map((treeDataItem, index) => { if (item.id == treeDataItem.id) { @@ -231,12 +230,11 @@ export default defineComponent({ } }) if (child) { - if(selectId.value===child.id){ - selectId.value='' - + selectId.value='' }else{ selectId.value = child.id + mybus.emit('getCameraByParentId', val.id) } } @@ -245,11 +243,8 @@ export default defineComponent({ } watch(selectId, (newVal) => { - if (newVal == '') {   mybus.emit('clearLeftSelect') - // mybus.emit('getCameraByParentId', '') - // mybus.emit('getListByParentId', '') } }) @@ -268,13 +263,15 @@ export default defineComponent({ const showDown = (item, val) => { selectId.value = val.id - + //mybus.emit('getCameraByParentId', val.id) if (item.children) { val.show = !val.show // 取消选中 if (!val.show) { selectId.value = '' // mybus.emit('clearLeftSelect') + }else{ + mybus.emit('getCameraByParentId', val.id) } } }