帆软决策平台数据连接界面库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
695 B

import { shortcut, store } from '@core/core';
import { ConnectionPluginModelXtype, ConnectionPluginModel } from './connection_plugin.model';
import { getPluginWidgetShow } from 'src/modules/app.service';
export const ConnectionPluginXtype = 'dec.dcm.connection_plugin';
@shortcut(ConnectionPluginXtype)
@store(ConnectionPluginModelXtype)
export class ConnectionPlugin extends BI.Widget {
model: ConnectionPluginModel['model'];
render () {
const databaseType = this.model.connectionSelectedOne.connectionType;
return {
type: getPluginWidgetShow(databaseType),
formData: this.model.connectionSelectedOne.connectionData,
};
}
}