import React, { useEffect, useState, useRef } from 'react'; import { connect } from 'react-redux'; import ReactECharts from 'echarts-for-react'; import echarts from 'echarts'; import { Spin, Card, CardGroup, Form, Button, Empty } from '@douyinfe/semi-ui'; import { IllustrationNoContent, IllustrationNoContentDark } from '@douyinfe/semi-illustrations'; import DeviceTree from '../components/device-tree'; const Network = ({ dispatch, actions, user, clientHeight, thingId, organizationsStruc, deviceMetasWithFollow, devices, }) => { const { analysis } = actions const form = useRef(); //表单 useEffect(async () => { if (thingId) { dispatch(analysis.getThingsDeploy(thingId)) dispatch(analysis.getDeviceMetaDeployed(thingId)) } }, [thingId]) return (