|
@@ -7,12 +7,14 @@ import {
|
|
|
CloudDownloadOutlined,
|
|
CloudDownloadOutlined,
|
|
|
DeleteOutlined,
|
|
DeleteOutlined,
|
|
|
EyeOutlined,
|
|
EyeOutlined,
|
|
|
|
|
+ PieChartOutlined,
|
|
|
PlusOutlined,
|
|
PlusOutlined,
|
|
|
} from '@ant-design/icons';
|
|
} from '@ant-design/icons';
|
|
|
import { useIntl, useParams } from 'umi';
|
|
import { useIntl, useParams } from 'umi';
|
|
|
import Save from '@/pages/device/Firmware/Detail/Task/Save';
|
|
import Save from '@/pages/device/Firmware/Detail/Task/Save';
|
|
|
import { observer } from '@formily/react';
|
|
import { observer } from '@formily/react';
|
|
|
import Release from '@/pages/device/Firmware/Detail/Task/Release';
|
|
import Release from '@/pages/device/Firmware/Detail/Task/Release';
|
|
|
|
|
+import Detail from '@/pages/device/Firmware/Detail/Task/Detail';
|
|
|
|
|
|
|
|
const Task = observer(() => {
|
|
const Task = observer(() => {
|
|
|
const intl = useIntl();
|
|
const intl = useIntl();
|
|
@@ -72,6 +74,17 @@ const Task = observer(() => {
|
|
|
<CloudDownloadOutlined />
|
|
<CloudDownloadOutlined />
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
</a>,
|
|
</a>,
|
|
|
|
|
+ <a
|
|
|
|
|
+ key="detail"
|
|
|
|
|
+ onClick={() => {
|
|
|
|
|
+ state.taskDetail = true;
|
|
|
|
|
+ state.taskItem = record;
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ <Tooltip title="任务详情">
|
|
|
|
|
+ <PieChartOutlined />
|
|
|
|
|
+ </Tooltip>
|
|
|
|
|
+ </a>,
|
|
|
<a key="remove">
|
|
<a key="remove">
|
|
|
<Tooltip title="删除">
|
|
<Tooltip title="删除">
|
|
|
<DeleteOutlined />
|
|
<DeleteOutlined />
|
|
@@ -110,6 +123,13 @@ const Task = observer(() => {
|
|
|
}}
|
|
}}
|
|
|
visible={state.release}
|
|
visible={state.release}
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <Detail
|
|
|
|
|
+ visible={state.taskDetail}
|
|
|
|
|
+ close={() => {
|
|
|
|
|
+ state.taskDetail = false;
|
|
|
|
|
+ state.taskItem = undefined;
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|