|
@@ -1,7 +1,8 @@
|
|
|
import PageContent from '@/components/PageContent';
|
|
|
import PageTitle from '@/components/PageTitle';
|
|
|
import { queryMembrane, queryMembraneList } from '@/services/SmartOps';
|
|
|
-import { useLocation, useParams, useRequest } from '@umijs/max';
|
|
|
+import { UnityAction } from '@/utils/utils';
|
|
|
+import { history, useLocation, useParams, useRequest } from '@umijs/max';
|
|
|
import { DatePicker, Empty, Form, Spin } from 'antd';
|
|
|
import dayjs from 'dayjs';
|
|
|
import * as echarts from 'echarts';
|
|
@@ -36,7 +37,7 @@ const PredictionDetail = () => {
|
|
|
defaultParams: [{ project_id: projectId, type: 'uf' }],
|
|
|
formatResult: (result) => {
|
|
|
if (result?.data?.list) {
|
|
|
- console.log(result.data.list.find((item) => item.device_code === code));
|
|
|
+ UnityAction.sendMsg('SynDev', code);
|
|
|
setCurrentDevice(
|
|
|
result.data.list.find((item) => item.device_code === code),
|
|
|
);
|
|
@@ -45,11 +46,16 @@ const PredictionDetail = () => {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+ const handleBackClick = () => {
|
|
|
+ UnityAction.sendMsg('ProcessAnalysisDetailBack');
|
|
|
+ history.back();
|
|
|
+ };
|
|
|
+
|
|
|
return (
|
|
|
<PageContent closeable={false}>
|
|
|
- <PageTitle returnable>预测分析</PageTitle>
|
|
|
+ <PageTitle onReturn={handleBackClick}>预测分析</PageTitle>
|
|
|
<div className={styles.detailDeviceName}>
|
|
|
- 超滤工艺单元:{currentDevice.device_name}({currentDevice.device_code})
|
|
|
+ 超滤工艺单元: {currentDevice.device_name}({currentDevice.device_code})
|
|
|
</div>
|
|
|
<div className={styles.detailDevice}>
|
|
|
<div className={styles.detailDeviceTitle}>跨膜压差</div>
|
|
@@ -525,7 +531,7 @@ const ChartContent = (props) => {
|
|
|
<Form layout="inline" className={styles.form}>
|
|
|
<RangePicker
|
|
|
inputReadOnly
|
|
|
- style={{ width: '5.4rem' }}
|
|
|
+ style={{ width: '5.7rem' }}
|
|
|
allowClear={false}
|
|
|
defaultValue={time}
|
|
|
// value={time}
|