import { Badge, Descriptions, Modal, Tooltip, AIcon, DescriptionsItem } from "jetlinks-ui-components" import TitleComponent from '@/components/TitleComponent/index.vue' import styles from './index.module.less' import _ from "lodash"; const DiagnosticAdvice = defineComponent({ props: { data: { type: Object, default: () => { } } }, emits: ['close'], setup(props, { emit }) { const { data } = props return () => { emit('close') }} onCancel={() => { emit('close') }} >
所有诊断均无异常但设备仍未上线,请检查以下内容
{ (data?.list || []).map((item: any, index: number) => (
{item}
)) }
{data?.info?.id || ''} {data?.info?.address?.length > 0 && ( {(data?.info?.address || []).map((i: any) => (
{i.address}
))}
} >
{(data?.info?.address || []).slice(0, 1).map((i: any) => (
{i.address}
))}
)} {(_.flatten(_.map(data?.info?.config, 'properties')) || []).map((item: any, index: number) => ( {item.name} ) : ( item.name ) } > {data?.info?.configValue[item?.property] || ''} ))}
} }) export default DiagnosticAdvice