修改bug

This commit is contained in:
yangjun 2026-04-27 11:26:34 +08:00
parent f206e46822
commit 90d1639a7b
1 changed files with 9 additions and 5 deletions

View File

@ -34,7 +34,9 @@
</span> </span>
</div> </div>
</span> </span>
<span v-if="item.children.length == 0">暂无基础功能</span> <span v-if="item.children.length == 0">
<Empty/>
</span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="1" tab="物联设备"> <a-tab-pane key="1" tab="物联设备">
<div style="height: 180px;"> <div style="height: 180px;">
@ -60,6 +62,7 @@ import { useMessage } from '/@/hooks/web/useMessage';
import { saveOrUpdate } from '../OrgApplyInfo.api'; import { saveOrUpdate } from '../OrgApplyInfo.api';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import { Empty } from 'ant-design-vue';
const cityViewValue = ref('') const cityViewValue = ref('')
const props = defineProps({ const props = defineProps({
@ -174,11 +177,12 @@ const disabled = computed(() => {
}); });
function getData(item){ function getData(item){
console.log("🚀 ~ getData ~ item:", item)
const data = []; const data = [];
data.push({key: '1',type: '摄像头', num: item.sxtList?item.sxtList:'0'}); if(item.sxtList) data.push({key: '1',type: '摄像头', num: item.sxtList?item.sxtList:'0'});
data.push({key: '2',type: '电表', num: item.dbList?item.sxtList:'0'}); if(item.dbList) data.push({key: '2',type: '电表', num: item.dbList?item.sxtList:'0'});
data.push({key: '3',type: '水表', num: item.sbList?item.sxtList:'0'}); if(item.sbList) data.push({key: '3',type: '水表', num: item.sbList?item.sxtList:'0'});
data.push({key: '4',type: '温湿度计', num: item.wsdjList?item.sxtList:'0'}); if(item.wsdjList) data.push({key: '4',type: '温湿度计', num: item.wsdjList?item.sxtList:'0'});
return data; return data;
} }
/** /**