From 5dcfad98492c3e0f2e9f53381428de3d15d60c67 Mon Sep 17 00:00:00 2001 From: Wangyizhi1 <87303815+Wangyizhi1@users.noreply.github.com> Date: Sat, 25 Sep 2021 11:52:43 +0800 Subject: [PATCH] fix task-instance & process-instance page date backfill bug (#6344) --- .../pages/_source/conditions/instance/processInstance.vue | 4 ++++ .../pages/_source/conditions/instance/taskInstance.vue | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/processInstance.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/processInstance.vue index 99f8735c4e..a9f0864d11 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/processInstance.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/processInstance.vue @@ -109,6 +109,10 @@ // Routing parameter merging if (!_.isEmpty(this.$route.query)) { this.searchParams = _.assign(this.searchParams, this.$route.query) + if (this.searchParams.endDate && this.searchParams.startDate) { + this.dataTime[0] = this.searchParams.startDate + this.dataTime[1] = this.searchParams.endDate + } } }, mounted () { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/taskInstance.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/taskInstance.vue index e89e10a684..64898b342d 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/taskInstance.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/_source/conditions/instance/taskInstance.vue @@ -113,6 +113,10 @@ // Routing parameter merging if (!_.isEmpty(this.$route.query)) { this.searchParams = _.assign(this.searchParams, this.$route.query) + if (this.searchParams.endDate && this.searchParams.startDate) { + this.dataTime[0] = this.searchParams.startDate + this.dataTime[1] = this.searchParams.endDate + } } }, mounted () {