fix: 支持es
This commit is contained in:
parent
d56004364a
commit
7f430d00fb
1
core/core-frontend/src/assets/svg/es-ds.svg
Normal file
1
core/core-frontend/src/assets/svg/es-ds.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.2 KiB |
@ -13,6 +13,7 @@ import redshiftDs from '@/assets/svg/redshift-ds.svg'
|
||||
import APIDs from '@/assets/svg/API-ds.svg'
|
||||
import ExcelDs from '@/assets/svg/Excel-ds.svg'
|
||||
import dorisDs from '@/assets/svg/doris-ds.svg'
|
||||
import esDs from '@/assets/svg/es-ds.svg'
|
||||
const iconDatasourceMap = {
|
||||
mysql: mysqlDs,
|
||||
oracle: oracleDs,
|
||||
@ -28,7 +29,8 @@ const iconDatasourceMap = {
|
||||
redshift: redshiftDs,
|
||||
API: APIDs,
|
||||
Excel: ExcelDs,
|
||||
doris: dorisDs
|
||||
doris: dorisDs,
|
||||
es: esDs
|
||||
}
|
||||
|
||||
export { iconDatasourceMap }
|
||||
|
||||
@ -142,7 +142,7 @@ const nickName = ref('')
|
||||
const dsName = ref('')
|
||||
const userDrawer = ref(false)
|
||||
const rawDatasourceList = ref([])
|
||||
const showPriority = ref(true)
|
||||
const showPriority = ref(false)
|
||||
const showSSH = ref(true)
|
||||
const datasourceEditor = ref()
|
||||
const activeTab = ref('')
|
||||
@ -1374,7 +1374,7 @@ const getMenuList = (val: boolean) => {
|
||||
}}</BaseInfoItem>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<template v-if="!['Excel', 'API'].includes(nodeInfo.type)">
|
||||
<template v-if="!['Excel', 'API', 'es'].includes(nodeInfo.type)">
|
||||
<el-row :gutter="24" v-show="nodeInfo.configuration.urlType !== 'jdbcUrl'">
|
||||
<el-col :span="12">
|
||||
<BaseInfoItem :label="t('datasource.host')">{{
|
||||
@ -1501,6 +1501,15 @@ const getMenuList = (val: boolean) => {
|
||||
</el-row>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="['es'].includes(nodeInfo.type)">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="12">
|
||||
<BaseInfoItem :label="t('datasource.datasource_url')">{{
|
||||
nodeInfo.configuration.url
|
||||
}}</BaseInfoItem>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
</template>
|
||||
</BaseInfoContent>
|
||||
<BaseInfoContent
|
||||
|
||||
Loading…
Reference in New Issue
Block a user