|
|
@ -11,6 +11,8 @@ import { ApartmentOutlined, TableOutlined } from '@ant-design/icons'; |
|
|
|
import { PinyinHelper, Func as PeaceFunc } from '@peace/utils'; |
|
|
|
import DeviceTree from '../components/device-tree'; |
|
|
|
import { DeviceTypes } from '../constant'; |
|
|
|
import qs from "qs"; |
|
|
|
|
|
|
|
import '../style.less'; |
|
|
|
|
|
|
|
function DeviceMonitor ({ ...props }) { |
|
|
@ -19,12 +21,21 @@ function DeviceMonitor({ ...props }) { |
|
|
|
myStructList, deviceMetasWithFollow, devices, dimensions, deviceListAlarms, factorStations, |
|
|
|
} = props; |
|
|
|
|
|
|
|
|
|
|
|
const [params, setParams] = useState({}); |
|
|
|
const [selectStructure, setSelectStructure] = useState(null); |
|
|
|
const [extraType, setExtraType] = useState('tree'); |
|
|
|
// const pageStyle = Func.getPaginationStyle();
|
|
|
|
|
|
|
|
|
|
|
|
let strucParam = JSON.parse((qs.parse(props.location?.search.slice(1)) || {})?.strucData) |
|
|
|
console.log(1111, strucParam) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
|
|
|
|
// dispatch(actions.dataMonitor.getDeviceMeta());
|
|
|
|
// dispatch(actions.dataMonitor.getMyStructList(user?.orgId)).then((res) => {
|
|
|
|
// if (res.success) {
|
|
|
|