From 0328893a11ae61b026d488d32fe3559b38a7af2a Mon Sep 17 00:00:00 2001 From: gongjiale <942894820@qq.com> Date: Tue, 22 Nov 2022 14:37:20 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E9=9B=86=E5=B8=82=E5=B7=A6=E4=BE=A7=E8=81=94=E8=B0=83?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/assetReport/index.vue | 336 ++++++++++++++++++ .../home/detailsPageInfrastructureTreeXha.vue | 15 +- 2 files changed, 342 insertions(+), 9 deletions(-) create mode 100644 back/src/views/modules/assetReport/index.vue 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) } } } From f4cb66a062b4d0852a6f01bbcb2f40014cd7fbaf Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 22 Nov 2022 14:51:18 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/home/infrastructureApplication.vue | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/front/src/views/home/infrastructureApplication.vue b/front/src/views/home/infrastructureApplication.vue index 7413b856..9787ccb7 100644 --- a/front/src/views/home/infrastructureApplication.vue +++ b/front/src/views/home/infrastructureApplication.vue @@ -2,7 +2,7 @@ * @Author: Light * @Date: 2022-11-18 11:53:43 * @LastEditors: Light - * @LastEditTime: 2022-11-22 11:57:18 + * @LastEditTime: 2022-11-22 14:50:32 * @Description: 告诉大家这是什么 -->