fix(数据源配置): 页面api未同步修改

This commit is contained in:
lour6498 2023-03-21 10:00:32 +08:00
parent 812300cc04
commit 33a9b5af86

View File

@ -52,7 +52,7 @@
import { VxeTableInstance } from 'vxe-table' import { VxeTableInstance } from 'vxe-table'
import type { DatabaseTableVO } from '@/api/infra/codegen/types' import type { DatabaseTableVO } from '@/api/infra/codegen/types'
import { getSchemaTableListApi, createCodegenListApi } from '@/api/infra/codegen' import { getSchemaTableListApi, createCodegenListApi } from '@/api/infra/codegen'
import { getDataSourceConfigListApi, DataSourceConfigVO } from '@/api/infra/dataSourceConfig' import { getDataSourceConfigList, DataSourceConfigVO } from '@/api/infra/dataSourceConfig'
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //
@ -63,11 +63,11 @@ const dbLoading = ref(true)
const queryParams = reactive({ const queryParams = reactive({
name: undefined, name: undefined,
comment: undefined, comment: undefined,
dataSourceConfigId: 0 dataSourceConfigId: 0 as number | undefined
}) })
const dataSourceConfigs = ref<DataSourceConfigVO[]>([]) const dataSourceConfigs = ref<DataSourceConfigVO[]>([])
const show = async () => { const show = async () => {
const res = await getDataSourceConfigListApi() const res = await getDataSourceConfigList()
dataSourceConfigs.value = res dataSourceConfigs.value = res
queryParams.dataSourceConfigId = dataSourceConfigs.value[0].id queryParams.dataSourceConfigId = dataSourceConfigs.value[0].id
visible.value = true visible.value = true