This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 40165755ba42868790fde247a9e575160cd0cd84
Author: Qian Xia <lauraxiaq...@gmail.com>
AuthorDate: Tue Jun 6 16:10:30 2023 +0800

    KYLIN-5551 get query history within one day
---
 kystudio/src/components/query/query_history.vue       | 6 +++++-
 kystudio/src/components/query/query_history_table.vue | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/kystudio/src/components/query/query_history.vue 
b/kystudio/src/components/query/query_history.vue
index 1ae5b47fb8..3143c248fe 100644
--- a/kystudio/src/components/query/query_history.vue
+++ b/kystudio/src/components/query/query_history.vue
@@ -87,8 +87,12 @@ import { pageRefTags, apiUrl, bigPageCount } from 'config'
         vm.filterDirectData.startTimeFrom = tm - 1000 * 60 * 60 * 24 * 7
         vm.filterDirectData.startTimeTo = tm
         return
+      } else {
+        let tm = new Date(new Date().toDateString()).getTime()
+        vm.filterDirectData.startTimeFrom = tm
+        vm.filterDirectData.startTimeTo = tm + 1000 * 60 * 60 * 24 * 1
       }
-      vm.currentSelectedProject && vm.loadHistoryList()
+      // vm.currentSelectedProject && vm.loadHistoryList()
     })
   },
   methods: {
diff --git a/kystudio/src/components/query/query_history_table.vue 
b/kystudio/src/components/query/query_history_table.vue
index d9c8ec41c3..2e9e438282 100644
--- a/kystudio/src/components/query/query_history_table.vue
+++ b/kystudio/src/components/query/query_history_table.vue
@@ -935,7 +935,11 @@ export default class QueryHistoryTable extends Vue {
       const index = this.filterTags.map(item => item.key).indexOf('server')
       this.filterTags.splice(index, 1)
     } else {
-      const index = this.filterData[tag.key].indexOf(tag.label)
+      let delLabel = tag.label
+      if (tag.key === 'realization' && tag.label === 'allModels') {
+        delLabel = 'modelName'
+      }
+      const index = this.filterData[tag.key].indexOf(delLabel)
       index > -1 && this.filterData[tag.key].splice(index, 1)
       this.filterTags = this.filterTags.filter(item => item.key !== tag.key || 
item.key === tag.key && tag.label !== item.label)
     }

Reply via email to