Commit 18da2788 authored by wenmo's avatar wenmo

修复报警组刷新当前页面时无法正常显示下拉报警实例

parent 4aae1539
import React, {useRef, useState} from "react"; import React, {useEffect, useRef, useState} from "react";
import {DownOutlined,PlusOutlined} from '@ant-design/icons'; import {DownOutlined,PlusOutlined} from '@ant-design/icons';
import {ActionType, ProColumns} from "@ant-design/pro-table"; import {ActionType, ProColumns} from "@ant-design/pro-table";
import {Button, Drawer, Modal, Dropdown, Menu} from 'antd'; import {Button, Drawer, Modal, Dropdown, Menu} from 'antd';
...@@ -8,6 +8,8 @@ import ProDescriptions from '@ant-design/pro-descriptions'; ...@@ -8,6 +8,8 @@ import ProDescriptions from '@ant-design/pro-descriptions';
import {AlertGroupTableListItem} from "@/pages/AlertGroup/data"; import {AlertGroupTableListItem} from "@/pages/AlertGroup/data";
import {handleAddOrUpdate, handleRemove, queryData, updateEnabled} from "@/components/Common/crud"; import {handleAddOrUpdate, handleRemove, queryData, updateEnabled} from "@/components/Common/crud";
import AlertGroupForm from "@/pages/AlertGroup/components/AlertGroupForm"; import AlertGroupForm from "@/pages/AlertGroup/components/AlertGroupForm";
import {showAlertInstance} from "@/components/Studio/StudioEvent/DDL";
import {connect} from "umi";
const url = '/api/alertGroup'; const url = '/api/alertGroup';
const AlertGroupTableList: React.FC<{}> = (props: any) => { const AlertGroupTableList: React.FC<{}> = (props: any) => {
...@@ -19,6 +21,10 @@ const AlertGroupTableList: React.FC<{}> = (props: any) => { ...@@ -19,6 +21,10 @@ const AlertGroupTableList: React.FC<{}> = (props: any) => {
const actionRef = useRef<ActionType>(); const actionRef = useRef<ActionType>();
const [selectedRowsState, setSelectedRows] = useState<AlertGroupTableListItem[]>([]); const [selectedRowsState, setSelectedRows] = useState<AlertGroupTableListItem[]>([]);
useEffect(() => {
showAlertInstance(dispatch);
}, []);
const editAndDelete = (key: string | number, currentItem: AlertGroupTableListItem) => { const editAndDelete = (key: string | number, currentItem: AlertGroupTableListItem) => {
if (key === 'edit') { if (key === 'edit') {
setFormValues(currentItem); setFormValues(currentItem);
...@@ -292,4 +298,4 @@ const AlertGroupTableList: React.FC<{}> = (props: any) => { ...@@ -292,4 +298,4 @@ const AlertGroupTableList: React.FC<{}> = (props: any) => {
); );
}; };
export default AlertGroupTableList; export default connect()(AlertGroupTableList);
...@@ -725,6 +725,9 @@ export default (): React.ReactNode => { ...@@ -725,6 +725,9 @@ export default (): React.ReactNode => {
<li> <li>
<Link>新增 Application 模式自增修正checkpoint和savepoint存储路径</Link> <Link>新增 Application 模式自增修正checkpoint和savepoint存储路径</Link>
</li> </li>
<li>
<Link>修复 报警组刷新当前页面时无法正常显示下拉报警实例</Link>
</li>
</ul> </ul>
</Paragraph> </Paragraph>
</Timeline.Item> </Timeline.Item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment