Browse Source

[Fix][UI] Fix hive datasource doesn't show principal bug (#10876)

* fix hive datasource doesn't show principal bug

* delete IDataBase

* restore DataSourceController.java
3.1.0-release
Devosend 2 years ago committed by GitHub
parent
commit
56fe11ecf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-ui/src/views/datasource/list/detail.tsx
  2. 2
      dolphinscheduler-ui/src/views/datasource/list/use-form.ts

8
dolphinscheduler-ui/src/views/datasource/list/detail.tsx

@ -30,7 +30,7 @@ import {
} from 'naive-ui'
import Modal from '@/components/modal'
import { useI18n } from 'vue-i18n'
import { useForm, datasourceTypeList } from './use-form'
import { useForm, datasourceType, datasourceTypeList } from './use-form'
import { useDetail } from './use-detail'
const props = {
@ -88,6 +88,12 @@ const DetailModal = defineComponent({
() => props.show,
async () => {
props.show && props.id && setFieldsValue(await queryById(props.id))
props.show &&
state.detailForm.type &&
changeType(
state.detailForm.type,
datasourceType[state.detailForm.type]
)
}
)

2
dolphinscheduler-ui/src/views/datasource/list/use-form.ts

@ -169,7 +169,7 @@ export function useForm(id?: number) {
}
}
const datasourceType: IDataBaseOptionKeys = {
export const datasourceType: IDataBaseOptionKeys = {
MYSQL: {
value: 'MYSQL',
label: 'MYSQL',

Loading…
Cancel
Save