This is an automated email from the ASF dual-hosted git repository.
jinsongzhou 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 abc0b5d97 [AMORO-3023]: fix the search input (#3024)
abc0b5d97 is described below
commit abc0b5d97da39a02cde83ac87e711d04bfb46387
Author: xiaomo <[email protected]>
AuthorDate: Thu Jul 11 16:52:02 2024 +0800
[AMORO-3023]: fix the search input (#3024)
---
amoro-ams/amoro-ams-dashboard/mock/modules/catalogs.js | 4 ++--
.../src/components/tables-sub-menu/TablesMenu.vue | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/amoro-ams/amoro-ams-dashboard/mock/modules/catalogs.js
b/amoro-ams/amoro-ams-dashboard/mock/modules/catalogs.js
index 110fd99e9..746e21861 100644
--- a/amoro-ams/amoro-ams-dashboard/mock/modules/catalogs.js
+++ b/amoro-ams/amoro-ams-dashboard/mock/modules/catalogs.js
@@ -65,14 +65,14 @@ export default [
url: '/mock/ams/v1/catalogs/test_catalog/databases',
method: 'get',
response: () => {
- return { "message": "success", "code": 200, "result": ["db"] }
+ return { "message": "success", "code": 200, "result": ["db", "test",
"acc"] }
},
},
{
url: '/mock/ams/v1/catalogs/test_catalog/databases/db/tables',
method: 'get',
response: () => {
- return { "message": "success", "code": 200, "result": [{ "name": "user",
"type": "ICEBERG" }] };
+ return { "message": "success", "code": 200, "result": [{ "name": "user",
"type": "ICEBERG" },{ "name": "wf", "type": "ICEBERG" }, { "name": "xcvz",
"type": "ICEBERG" }] };
},
},
{
diff --git
a/amoro-ams/amoro-ams-dashboard/src/components/tables-sub-menu/TablesMenu.vue
b/amoro-ams/amoro-ams-dashboard/src/components/tables-sub-menu/TablesMenu.vue
index 7b0b74439..8fb2fa703 100644
---
a/amoro-ams/amoro-ams-dashboard/src/components/tables-sub-menu/TablesMenu.vue
+++
b/amoro-ams/amoro-ams-dashboard/src/components/tables-sub-menu/TablesMenu.vue
@@ -105,13 +105,13 @@ export default defineComponent({
function getSearchTableList() {
debounce(() => {
getAllTableList()
- })
+ })()
}
function getSearchDBList() {
debounce(() => {
getAllDatabaseList(true)
- })
+ })()
}
function handleClickDb(item: IDatabaseItem) {
@@ -308,7 +308,7 @@ export default defineComponent({
v-model:value="DBSearchInput"
:placeholder="placeholder.filterDBPh"
class="theme-dark"
- @change="() => handleSearch('db')"
+ @change="handleSearch('db')"
>
<template #prefix>
<SearchOutlined />
@@ -333,7 +333,7 @@ export default defineComponent({
v-model:value="tableSearchInput"
:placeholder="placeholder.filterTablePh"
class="theme-dark"
- @change="() => handleSearch('table')"
+ @change="handleSearch('table')"
>
<template #prefix>
<SearchOutlined />