diff --git a/src/modules/constants/constant.ts b/src/modules/constants/constant.ts index 064d448..48b7ded 100644 --- a/src/modules/constants/constant.ts +++ b/src/modules/constants/constant.ts @@ -714,6 +714,18 @@ export const DATA_BASE_TYPES = [ hasSchema: true, kerberos: false, fetchSize: 10000, + }, + { + text: BI.i18nText('StarRocks'), + databaseType: 'starrocks', + driver: 'com.mysql.jdbc.Driver', + drivers: ['com.mysql.jdbc.Driver'], + url: 'jdbc:mysql://hostname:port/database', + commonly: false, + internal: true, + type: 'jdbc', + hasSchema: false, + kerberos: false, } ]; diff --git a/src/modules/pages/maintain/forms/components/form.jdbc.ts b/src/modules/pages/maintain/forms/components/form.jdbc.ts index fdfce5c..277f1a7 100644 --- a/src/modules/pages/maintain/forms/components/form.jdbc.ts +++ b/src/modules/pages/maintain/forms/components/form.jdbc.ts @@ -1227,6 +1227,7 @@ export class FormJdbc extends BI.Widget { public mounted() { const sshType = this.form.sshType.getValue()[0]; this.onSshTypeChange(sshType); + this.setKerberos(); } public setError(value: string) { diff --git a/src/modules/pages/maintain/maintain.ts b/src/modules/pages/maintain/maintain.ts index 98ff521..28b47b9 100644 --- a/src/modules/pages/maintain/maintain.ts +++ b/src/modules/pages/maintain/maintain.ts @@ -9,7 +9,7 @@ import './maintain.less'; import { connectionType } from '@constants/env'; import { getJdbcDatabaseType, getTextByDatabaseType } from '../../app.service'; import { ConnectionJDBC } from 'src/modules/crud/crud.typings'; -import { ListView } from '@fui/core'; +import { ButtonGroup } from '@fui/core'; @shortcut() @store(MaintainModel) @@ -19,7 +19,7 @@ export class Maintain extends BI.Widget { model: MaintainModel['model']; store: MaintainModel['store']; - listView: ListView; + buttonGroup: ButtonGroup; socketTip: LinkButton; render() { @@ -64,9 +64,9 @@ export class Maintain extends BI.Widget { ], }, { - type: BI.ListView.xtype, - ref: (_ref: ListView) => { - this.listView = _ref; + type: BI.ButtonGroup.xtype, + ref: (_ref: ButtonGroup) => { + this.buttonGroup = _ref; }, items: this.renderItems(), },