|
@@ -1,5 +1,6 @@
|
|
|
import { getComparisonData } from '@/services/OperationManagement';
|
|
|
import { queryConditionSnapshot } from '@/services/SmartOps';
|
|
|
+import { UnityAction } from '@/utils/utils';
|
|
|
import { LoadingOutlined } from '@ant-design/icons';
|
|
|
import { connect, history, useParams, useRequest } from '@umijs/max';
|
|
|
import dayjs from 'dayjs';
|
|
@@ -49,7 +50,7 @@ const SmartWork = (props) => {
|
|
|
return (
|
|
|
<Box
|
|
|
title="水厂工况"
|
|
|
- onClick={() => history.push(`/smart/work/${projectId}`)}
|
|
|
+ onClick={() => UnityAction.sendMsg('menuItem', '工况管理')}
|
|
|
>
|
|
|
<div className={styles.scoreBox}>
|
|
|
<CircleScore>
|
|
@@ -72,7 +73,7 @@ const WaterAmt = (props) => {
|
|
|
return (
|
|
|
<Box
|
|
|
title="水量监测"
|
|
|
- onClick={() => history.push(`/home/water-amt-mng/${projectId}`)}
|
|
|
+ onClick={() => UnityAction.sendMsg('menuItem', '水量监测')}
|
|
|
>
|
|
|
<ul>
|
|
|
<li>
|
|
@@ -95,7 +96,7 @@ const WaterQuality = (props) => {
|
|
|
return (
|
|
|
<Box
|
|
|
title="水质监测"
|
|
|
- onClick={() => history.push(`/home/water-quality-mng/${projectId}`)}
|
|
|
+ onClick={() => UnityAction.sendMsg('menuItem', '水质监测')}
|
|
|
>
|
|
|
<ul>
|
|
|
<li>
|
|
@@ -145,9 +146,7 @@ const SelfInspection = connect(({ eqSelfInspection, loading }) => ({
|
|
|
return (
|
|
|
<Box
|
|
|
title="系统自检"
|
|
|
- onClick={() =>
|
|
|
- history.push(`/self-inspection/detail/${projectId}/${autoReport?.Id}`)
|
|
|
- }
|
|
|
+ onClick={() => UnityAction.sendMsg('menuItem', '系统自检')}
|
|
|
>
|
|
|
<div className={styles.insTag}>自检中</div>
|
|
|
|
|
@@ -164,7 +163,7 @@ const Electric = (props) => {
|
|
|
return (
|
|
|
<Box
|
|
|
title="能耗监测"
|
|
|
- onClick={() => history.push(`/home/energy/${projectId}`)}
|
|
|
+ onClick={() => UnityAction.sendMsg('menuItem', '能耗监测')}
|
|
|
>
|
|
|
<ul>
|
|
|
<li>
|
|
@@ -197,7 +196,7 @@ const Medicine = () => {
|
|
|
return (
|
|
|
<Box
|
|
|
title="药耗监测"
|
|
|
- onClick={() => history.push(`/home/chem-cost/${projectId}`)}
|
|
|
+ onClick={() => UnityAction.sendMsg('menuItem', '药耗监测')}
|
|
|
>
|
|
|
<ul>
|
|
|
<li>
|