Skip to content

Commit

Permalink
[INLONG-11539][Dashboard] Dirty data query date format modification
Browse files Browse the repository at this point in the history
  • Loading branch information
wohainilaodou committed Nov 25, 2024
1 parent 82128a3 commit 92bcad0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions inlong-dashboard/src/ui/pages/common/DirtyModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
dataCount: 10,
dirtyType: '',
serverType: '',
startTime: dayjs().format('YYYYMMDD'),
endTime: dayjs().format('YYYYMMDD'),
startTime: dayjs().format('YYYYMMDDHH'),
endTime: dayjs().format('YYYYMMDDHH'),
};
const defaultTrendOptions = {
dataTimeUnit: 'D',
Expand Down Expand Up @@ -172,8 +172,8 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
method: 'POST',
data: {
...options,
startTime: options.startTime ? dayjs(options.startTime).format('YYYYMMDD') : '',
endTime: options.endTime ? dayjs(options.endTime).format('YYYYMMDD') : '',
startTime: options.startTime ? dayjs(options.startTime).format('YYYYMMDDHH') : '',
endTime: options.endTime ? dayjs(options.endTime).format('YYYYMMDDHH') : '',
dataCount: form1.getFieldValue('dataCount') || 10,
keyword: form1.getFieldValue('keyword') || '',
sinkIdList: [modalProps.id],
Expand Down Expand Up @@ -286,7 +286,8 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
initialValue: dayjs(options.startTime),
props: {
allowClear: true,
format: 'YYYYMMDD',
showTime: true,
format: 'YYYYMMDDHH',
},
rules: [
{ required: true },
Expand All @@ -310,7 +311,8 @@ const Comp: React.FC<Props> = ({ ...modalProps }) => {
props: values => {
return {
allowClear: true,
format: 'YYYYMMDD',
showTime: true,
format: 'YYYYMMDDHH',
};
},
rules: [
Expand Down

0 comments on commit 92bcad0

Please sign in to comment.