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] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E8=83=BD=E5=8A=9B?= =?UTF-8?q?=E9=9B=86=E5=B8=82=E5=B7=A6=E4=BE=A7=E8=81=94=E8=B0=83=E5=9C=B0?= =?UTF-8?q?=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 @@ + + + + + + 累计节省财政资金约{{ saveMoney }}万元 + + + 注:资源参考价格由部门提供或参考市场价格设定 + + + + + 日期: + + + + + + + 提供部门: + + + + + + + + + 申请部门: + + + + + + + + + 类型: + + + + + + + + + 名称: + + + + + + + {{ + $t("query") + }} + + + + {{ + $t("reset") + }} + + + 导出全部 + + + + + + + + + + + + + + + + + + + + + + \ 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) } } }