Skip to content

Commit

Permalink
[INLONG-11510][Dashboard] Add Page to dirty data query
Browse files Browse the repository at this point in the history
  • Loading branch information
wohainilaodou committed Nov 20, 2024
1 parent 5e11641 commit 0332bdf
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions inlong-dashboard/src/ui/pages/common/DirtyModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
...options,
startTime: options.startTime ? dayjs(options.startTime).format('YYYYMMDD') : '',
endTime: options.endTime ? dayjs(options.endTime).format('YYYYMMDD') : '',
dataCount: form1.getFieldValue('dataCount') || '10',
keyword: form1.getFieldValue('keyword') || '',
sinkIdList: [modalProps.id],
},
});
Expand Down Expand Up @@ -474,6 +476,7 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
endTime: allValues.endTime ? +allValues.endTime.$d : '',
}));
};

const onTrendFilter = allValues => {
setTrendOption(prev => ({
...prev,
Expand Down Expand Up @@ -518,22 +521,25 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
key: 'detail',
label: i18n.t('meta.Sinks.DirtyData.Detail'),
children: (
<HighTable
filterForm={{
form: form1,
content: getDetailFilterFormContent(options),
style: { gap: 10 },
onFilter: onFilter,
}}
table={{
columns: getColumns,
rowKey: 'id',
size: 'small',
dataSource: data,
scroll: scroll,
loading,
}}
/>
<>
<FormGenerator
form={form1}
layout="inline"
content={getDetailFilterFormContent(options)}
style={{ gap: 10 }}
onFilter={onFilter}
/>
<HighTable
table={{
columns: getColumns,
rowKey: 'id',
size: 'small',
dataSource: data,
scroll: scroll,
loading,
}}
/>
</>
),
},
{
Expand Down

0 comments on commit 0332bdf

Please sign in to comment.