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 69fc2624f963b23fb94dc6892a2507a6d88fc7e1 Author: Qian Xia <lauraxiaq...@gmail.com> AuthorDate: Fri Apr 14 15:50:48 2023 +0800 KYLIN-5515 add search fields is_fuzzy --- kystudio/src/components/common/DataSourceBar/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kystudio/src/components/common/DataSourceBar/index.vue b/kystudio/src/components/common/DataSourceBar/index.vue index e78f4c68ec..5c5b7c482e 100644 --- a/kystudio/src/components/common/DataSourceBar/index.vue +++ b/kystudio/src/components/common/DataSourceBar/index.vue @@ -417,14 +417,14 @@ export default class DataSourceBar extends Vue { }) } async loadTables (params) { - const { tableName = null, databaseId = null, isReset = false } = params || {} + const { tableName = null, databaseId = null, isReset = false, isFuzzy = false } = params || {} const currentDatabases = this.databaseArray.filter(database => { return database.id === databaseId || !databaseId }) const responses = await Promise.all(currentDatabases.map((database) => { const { projectName, label: databaseName, pagination, datasource } = database isReset ? this.clearPagination(database) : null - return this.fetchTables({ projectName, databaseName, tableName, isExt: true, ...pagination, sourceType: datasource }) + return this.fetchTables({ projectName, databaseName, tableName, isExt: true, isFuzzy: isFuzzy, ...pagination, sourceType: datasource }) })) const results = await handleSuccessAsync(responses) currentDatabases.forEach((database, index) => { @@ -510,7 +510,7 @@ export default class DataSourceBar extends Vue { let idx = this.filterText.indexOf('.') tableName = idx === -1 ? this.filterText : this.filterText.substring(idx + 1, this.filterText.length) } - await this.loadTables({ databaseId, tableName }) + await this.loadTables({ databaseId, tableName, isFuzzy: true }) this.freshAutoCompleteWords() } handleClick (data, node) {