Skip to content

Commit

Permalink
Merge branch 'master' into 0.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujinsong committed Jul 11, 2024
2 parents cdc2602 + f1fbfa1 commit 729cfd1
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 257 deletions.
6 changes: 3 additions & 3 deletions amoro-ams/amoro-ams-dashboard/mock/modules/catalogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" }] };
},
},
{
Expand Down Expand Up @@ -131,7 +131,7 @@ export default [
response: () => ({ "message": "success", "code": 200, "result": true }),
},
{
url: '/mock/ams/v1/catalog/metastore/types',
url: '/mock/ams/v1/catalogs/metastore/types',
method: 'get',
response: () => ({
"message": "success",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ export default defineComponent({
function getSearchTableList() {
debounce(() => {
getAllTableList()
})
})()
}

function getSearchDBList() {
debounce(() => {
getAllDatabaseList(true)
})
})()
}

function handleClickDb(item: IDatabaseItem) {
Expand Down Expand Up @@ -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 />
Expand All @@ -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 />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { IMap } from '@/types/common.type'
import request from '@/utils/request'

export function getCatalogsTypes() {
return request.get('ams/v1/catalog/metastore/types')
return request.get('ams/v1/catalogs/metastore/types')
}
export function getCatalogsSetting(catalogName: string) {
return request.get(`ams/v1/catalogs/${catalogName}`)
Expand Down
Loading

0 comments on commit 729cfd1

Please sign in to comment.