From 90d1639a7b0b6429eee123fd035ff32affb05b01 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Mon, 27 Apr 2026 11:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/orgInfo/components/OrgApplyHldyForm.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/admin/orgInfo/components/OrgApplyHldyForm.vue b/src/views/admin/orgInfo/components/OrgApplyHldyForm.vue index 9e15817..0f49756 100644 --- a/src/views/admin/orgInfo/components/OrgApplyHldyForm.vue +++ b/src/views/admin/orgInfo/components/OrgApplyHldyForm.vue @@ -34,7 +34,9 @@ - 暂无基础功能 + + +
@@ -60,6 +62,7 @@ import { useMessage } from '/@/hooks/web/useMessage'; import { saveOrUpdate } from '../OrgApplyInfo.api'; import { Form } from 'ant-design-vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; +import { Empty } from 'ant-design-vue'; const cityViewValue = ref('') const props = defineProps({ @@ -174,11 +177,12 @@ const disabled = computed(() => { }); function getData(item){ + console.log("🚀 ~ getData ~ item:", item) const data = []; - data.push({key: '1',type: '摄像头', num: item.sxtList?item.sxtList:'0'}); - data.push({key: '2',type: '电表', num: item.dbList?item.sxtList:'0'}); - data.push({key: '3',type: '水表', num: item.sbList?item.sxtList:'0'}); - data.push({key: '4',type: '温湿度计', num: item.wsdjList?item.sxtList:'0'}); + if(item.sxtList) data.push({key: '1',type: '摄像头', num: item.sxtList?item.sxtList:'0'}); + if(item.dbList) data.push({key: '2',type: '电表', num: item.dbList?item.sxtList:'0'}); + if(item.sbList) data.push({key: '3',type: '水表', num: item.sbList?item.sxtList:'0'}); + if(item.wsdjList) data.push({key: '4',type: '温湿度计', num: item.wsdjList?item.sxtList:'0'}); return data; } /**