Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
18da2788
Commit
18da2788
authored
Mar 11, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复报警组刷新当前页面时无法正常显示下拉报警实例
parent
4aae1539
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
index.tsx
dlink-web/src/pages/AlertGroup/index.tsx
+8
-2
Welcome.tsx
dlink-web/src/pages/Welcome.tsx
+3
-0
No files found.
dlink-web/src/pages/AlertGroup/index.tsx
View file @
18da2788
import
React
,
{
useRef
,
useState
}
from
"react"
;
import
React
,
{
use
Effect
,
use
Ref
,
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)
;
dlink-web/src/pages/Welcome.tsx
View file @
18da2788
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment