Skip to content

Commit

Permalink
[INLONG-9627][Dashboard] Audit and transmission delay filtering query…
Browse files Browse the repository at this point in the history
… optimization
  • Loading branch information
bluewang committed Jan 29, 2024
1 parent b1a0c20 commit 14692d0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
14 changes: 10 additions & 4 deletions inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,20 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
name: 'inlongStreamId',
props: {
dropdownMatchSelectWidth: false,
showSearch: true,
options: {
requestAuto: true,
requestService: {
requestTrigger: ['onOpen', 'onSearch'],
requestService: keyword => ({
url: '/stream/list',
method: 'POST',
data: {
keyword,
pageNum: 1,
pageSize: 1000,
inlongGroupId,
},
},
}),
requestParams: {
formatResult: result =>
result?.list.map(item => ({
Expand All @@ -136,17 +139,20 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
name: 'sinkId',
props: values => ({
dropdownMatchSelectWidth: false,
showSearch: true,
options: {
requestService: {
requestTrigger: ['onOpen', 'onSearch'],
requestService: keyword => ({
url: '/sink/list',
method: 'POST',
data: {
keyword,
pageNum: 1,
pageSize: 1000,
inlongGroupId,
inlongStreamId: values.inlongStreamId,
},
},
}),
requestParams: {
formatResult: result =>
result?.list.map(item => ({
Expand Down
14 changes: 10 additions & 4 deletions inlong-dashboard/src/ui/pages/GroupDetail/Delay/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,20 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
name: 'inlongStreamId',
props: {
dropdownMatchSelectWidth: false,
showSearch: true,
options: {
requestAuto: true,
requestService: {
requestTrigger: ['onOpen', 'onSearch'],
requestService: keyword => ({
url: '/stream/list',
method: 'POST',
data: {
keyword,
pageNum: 1,
pageSize: 1000,
inlongGroupId,
},
},
}),
requestParams: {
formatResult: result =>
result?.list.map(item => ({
Expand All @@ -132,17 +135,20 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
name: 'sinkId',
props: values => ({
dropdownMatchSelectWidth: false,
showSearch: true,
options: {
requestService: {
requestTrigger: ['onOpen', 'onSearch'],
requestService: keyword => ({
url: '/sink/list',
method: 'POST',
data: {
keyword,
pageNum: 1,
pageSize: 1000,
inlongGroupId,
inlongStreamId: values.inlongStreamId,
},
},
}),
requestParams: {
formatResult: result =>
result?.list.map(item => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,20 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
name: 'inlongStreamId',
props: {
dropdownMatchSelectWidth: false,
showSearch: true,
options: {
requestAuto: true,
requestService: {
requestTrigger: ['onOpen', 'onSearch'],
requestService: keyword => ({
url: '/stream/list',
method: 'POST',
data: {
keyword,
pageNum: 1,
pageSize: 1000,
inlongGroupId,
},
},
}),
requestParams: {
formatResult: result =>
result?.list.map(item => ({
Expand All @@ -128,17 +131,20 @@ export const getFormContent = (inlongGroupId, initialValues, onSearch, onDataStr
name: 'sinkId',
props: values => ({
dropdownMatchSelectWidth: false,
showSearch: true,
options: {
requestService: {
requestTrigger: ['onOpen', 'onSearch'],
requestService: keyword => ({
url: '/sink/list',
method: 'POST',
data: {
keyword,
pageNum: 1,
pageSize: 1000,
inlongGroupId,
inlongStreamId: values.inlongStreamId,
},
},
}),
requestParams: {
formatResult: result =>
result?.list.map(item => ({
Expand Down

0 comments on commit 14692d0

Please sign in to comment.