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

zhangmo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e9eaccd0 [AMORO-3205] fetch data when click the search button (#3214)
0e9eaccd0 is described below

commit 0e9eaccd0d1168142e508eebde5db19f23c3ea44
Author: xiaomo <[email protected]>
AuthorDate: Fri Sep 20 01:34:37 2024 -0700

    [AMORO-3205] fetch data when click the search button (#3214)
---
 amoro-web/src/language/en.ts                     |  2 ++
 amoro-web/src/language/zh.ts                     |  2 ++
 amoro-web/src/views/optimize/components/List.vue | 16 ++++++++++++++--
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/amoro-web/src/language/en.ts b/amoro-web/src/language/en.ts
index 2c08f18de..d78bbc6e6 100644
--- a/amoro-web/src/language/en.ts
+++ b/amoro-web/src/language/en.ts
@@ -191,6 +191,8 @@ export default {
   leavePageModalTitle: 'Leave this page?',
   leavePageModalContent: 'Changes you made may not be saved.',
   leave: 'Leave',
+  search: 'Search',
+  reset: 'Reset',
   invalidInput: 'Invalid input',
   addgroup: 'Add Group',
   editgroup: 'Edit Group',
diff --git a/amoro-web/src/language/zh.ts b/amoro-web/src/language/zh.ts
index c2678c631..036420b78 100644
--- a/amoro-web/src/language/zh.ts
+++ b/amoro-web/src/language/zh.ts
@@ -191,6 +191,8 @@ export default {
   leavePageModalTitle: '离开当前页面?',
   leavePageModalContent: '您所做的更改可能无法保存。',
   leave: '离开',
+  search: '搜索',
+  reset: '重置',
   invalidInput: '非法输入',
   addgroup: '添加组',
   editgroup: '编辑组',
diff --git a/amoro-web/src/views/optimize/components/List.vue 
b/amoro-web/src/views/optimize/components/List.vue
index b66bf66c6..6dff19dd2 100644
--- a/amoro-web/src/views/optimize/components/List.vue
+++ b/amoro-web/src/views/optimize/components/List.vue
@@ -148,6 +148,13 @@ function goTableDetail(record: IOptimizeTableItem) {
   })
 }
 
+function reset() {
+  optimizerGroup.value = undefined
+  dbSearchInput.value = undefined
+  tableSearchInput.value = undefined
+  refresh(true)
+}
+
 onMounted(() => {
   refresh()
   getOptimizerGroupList()
@@ -165,14 +172,19 @@ onMounted(() => {
       <a-input
         v-model:value="dbSearchInput"
         :placeholder="placeholder.filterDBPh"
-        @change="refresh"
       />
 
       <a-input
         v-model:value="tableSearchInput"
         :placeholder="placeholder.filterTablePh"
-        @change="refresh"
       />
+
+      <a-button type="primary" @click="refresh">
+        {{ t('search') }}
+      </a-button>
+      <a-button @click="reset">
+        {{ t('reset') }}
+      </a-button>
     </a-space>
     <a-table
       class="ant-table-common" :columns="columns" :data-source="dataSource" 
:pagination="pagination"

Reply via email to