diff --git a/console/atest-ui/src/views/DataManager.vue b/console/atest-ui/src/views/DataManager.vue index 14f5c10..a4d0496 100644 --- a/console/atest-ui/src/views/DataManager.vue +++ b/console/atest-ui/src/views/DataManager.vue @@ -166,6 +166,7 @@ const executeWithQuery = async (sql: string) => { case 'atest-store-orm': case 'atest-store-cassandra': case 'atest-store-iotdb': + case 'atest-store-elasticsearch': ormDataHandler(data) success = true break; diff --git a/console/atest-ui/src/views/net.ts b/console/atest-ui/src/views/net.ts index 273b78e..6e2f539 100644 --- a/console/atest-ui/src/views/net.ts +++ b/console/atest-ui/src/views/net.ts @@ -794,10 +794,10 @@ var DataQueryAsync = (store: string, kind: string, currentDatabase: string, quer queryObj['key'] = currentDatabase; break; case 'atest-store-etcd': - queryObj['key'] = query; - break; case 'atest-store-redis': + case 'atest-store-elasticsearch': queryObj['key'] = query; + queryObj['sql'] = query; break; } const requestOptions = { diff --git a/console/atest-ui/src/views/store.ts b/console/atest-ui/src/views/store.ts index c42ffdb..e885fec 100644 --- a/console/atest-ui/src/views/store.ts +++ b/console/atest-ui/src/views/store.ts @@ -115,6 +115,11 @@ const storeExtensions = [ defaultValue: 'atest' }], link: 'https://github.com/LinuxSuRen/atest-ext-store-mongodb' + }, + { + name: 'atest-store-elasticsearch', + params: [], + link: 'https://github.com/LinuxSuRen/atest-ext-store-elasticsearch' } ] as Store[]