Browse Source

Merge pull request #6165 in DEC/decision-webui-dcm from final/11.0 to persist/11.0

* commit '4da0a70f2771e8790a04bed72ccb845a554fa6c2':
  REPORT-81743 fix:用buttongroup替换listview
  REPORT-79641 fix:KerberosParams编辑前需要被初始化
  BI-112056【平台配合任务】在平台数据连接添加starrocks图标
persist/11.0
superman 2 years ago
parent
commit
3b8a0c8e9c
  1. 12
      src/modules/constants/constant.ts
  2. 1
      src/modules/pages/maintain/forms/components/form.jdbc.ts
  3. 10
      src/modules/pages/maintain/maintain.ts

12
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,
}
];

1
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) {

10
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(),
},

Loading…
Cancel
Save