|
@@ -34,7 +34,9 @@ function Hardware() {
|
|
|
|
|
|
return `${styles.icon} ${statusClassName}`;
|
|
return `${styles.icon} ${statusClassName}`;
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ const onHandleClick = item => {
|
|
|
|
+ UnityAction.sendMsg('SingleDevLocate', JSON.stringify([item]));
|
|
|
|
+ };
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
if (!draw) return;
|
|
if (!draw) return;
|
|
run(projectId);
|
|
run(projectId);
|
|
@@ -44,10 +46,6 @@ function Hardware() {
|
|
return () => clearInterval(timer);
|
|
return () => clearInterval(timer);
|
|
}, [draw]);
|
|
}, [draw]);
|
|
|
|
|
|
- const onHandleClick = (item) => {
|
|
|
|
- UnityAction.sendMsg('SingleDevLocate', JSON.stringify([item]));
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
return (
|
|
return (
|
|
<PageContent closeable={false}>
|
|
<PageContent closeable={false}>
|
|
<PageTitle onReturn={() => UnityAction.sendMsg('menuItem', '智能管控')}>
|
|
<PageTitle onReturn={() => UnityAction.sendMsg('menuItem', '智能管控')}>
|
|
@@ -60,6 +58,7 @@ function Hardware() {
|
|
key={item.id}
|
|
key={item.id}
|
|
className={`card-box ${styles.item}`}
|
|
className={`card-box ${styles.item}`}
|
|
style={{ justifyContent: 'space-between' }}
|
|
style={{ justifyContent: 'space-between' }}
|
|
|
|
+ onClick={() => onHandleClick(item)}
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
<i
|
|
<i
|