Browse Source

[Fix][UI Next][V1.0.0-Alpha]Fixed an issue with time picker clearing (#8655)

3.0.0/version-upgrade
labbomb 3 years ago committed by GitHub
parent
commit
78d7c06f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui-next/src/views/home/use-process-state.ts
  2. 6
      dolphinscheduler-ui-next/src/views/home/use-task-state.ts
  3. 4
      dolphinscheduler-ui-next/src/views/projects/overview/use-process-state.ts
  4. 4
      dolphinscheduler-ui-next/src/views/projects/overview/use-task-state.ts

4
dolphinscheduler-ui-next/src/views/home/use-process-state.ts

@ -25,8 +25,8 @@ export function useProcessState() {
const getProcessState = (date: Array<number>) => {
const { state } = useAsyncState(
countProcessInstanceState({
startDate: format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: format(date[1], 'yyyy-MM-dd HH:mm:ss'),
startDate: !date ? '' : format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: !date ? '' : format(date[1], 'yyyy-MM-dd HH:mm:ss'),
projectCode: 0
}).then((res: TaskStateRes): StateData => {
const table = res.taskCountDtos.map((item) => {

6
dolphinscheduler-ui-next/src/views/home/use-task-state.ts

@ -22,11 +22,11 @@ import type { TaskStateRes } from '@/service/modules/projects-analysis/types'
import type { StateData } from './types'
export function useTaskState() {
const getTaskState = (date: Array<number>) => {
const getTaskState = (date: Array<any>) => {
const { state } = useAsyncState(
countTaskState({
startDate: format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: format(date[1], 'yyyy-MM-dd HH:mm:ss'),
startDate: !date ? '' : format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: !date ? '' : format(date[1], 'yyyy-MM-dd HH:mm:ss'),
projectCode: 0
}).then((res: TaskStateRes): StateData => {
const table = res.taskCountDtos.map((item, index) => {

4
dolphinscheduler-ui-next/src/views/projects/overview/use-process-state.ts

@ -28,8 +28,8 @@ export function useProcessState() {
const getProcessState = (date: Array<number>) => {
const { state } = useAsyncState(
countProcessInstanceState({
startDate: format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: format(date[1], 'yyyy-MM-dd HH:mm:ss'),
startDate: !date ? '' : format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: !date ? '' : format(date[1], 'yyyy-MM-dd HH:mm:ss'),
projectCode: Number(route.params.projectCode)
}).then((res: TaskStateRes): StateData => {
const table = res.taskCountDtos.map((item, index) => {

4
dolphinscheduler-ui-next/src/views/projects/overview/use-task-state.ts

@ -28,8 +28,8 @@ export function useTaskState() {
const getTaskState = (date: Array<number>) => {
const { state } = useAsyncState(
countTaskState({
startDate: format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: format(date[1], 'yyyy-MM-dd HH:mm:ss'),
startDate: !date ? '' : format(date[0], 'yyyy-MM-dd HH:mm:ss'),
endDate: !date ? '' : format(date[1], 'yyyy-MM-dd HH:mm:ss'),
projectCode: Number(route.params.projectCode)
}).then((res: TaskStateRes): StateData => {
const table = res.taskCountDtos.map((item, index) => {

Loading…
Cancel
Save