@@ -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;
}
/**