|
|
|
@ -4,7 +4,7 @@ import { CollapseXtype, EVENT_CHANGE } from 'src/modules/components/collapse/col
|
|
|
|
|
import { FormItemXtype } from '../../components/form_item/form_item'; |
|
|
|
|
import { Connection, ConnectionJDBC, ConnectionPoolJDBC } from 'src/modules/crud/crud.typings'; |
|
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
|
import { CONNECT_CHARSET } from '@constants/constant'; |
|
|
|
|
import { CONNECT_CHARSET, CONNECTION_LAYOUT } from '@constants/constant'; |
|
|
|
|
import { getAllDatabaseTypes, getJdbcDatabaseType, resolveUrlInfo, splitUrl } from '../../../../app.service'; |
|
|
|
|
|
|
|
|
|
export const FormJdbcXtype = 'dec.dcm.maintain.form.jdbc'; |
|
|
|
@ -61,13 +61,13 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
const { initialSize, maxActive, maxIdle, maxWait, validationQuery, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, numTestsPerEvictionRun, minEvictableIdleTimeMillis } = connectionPoolAttr as ConnectionPoolJDBC; |
|
|
|
|
const databaseType = getJdbcDatabaseType(database, driver); |
|
|
|
|
this.oldPassword = password; |
|
|
|
|
|
|
|
|
|
const { host, port, databaseName } = resolveUrlInfo(url); |
|
|
|
|
const { hgap, vgap } = CONNECTION_LAYOUT; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: Vertical, |
|
|
|
|
hgap: 15, |
|
|
|
|
vgap: 10, |
|
|
|
|
hgap, |
|
|
|
|
vgap, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: FormItemXtype, |
|
|
|
@ -393,7 +393,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: Vertical, |
|
|
|
|
vgap: 10, |
|
|
|
|
vgap, |
|
|
|
|
invisible: true, |
|
|
|
|
ref: (_ref: any) => { |
|
|
|
|
this.advancedSet = _ref; |
|
|
|
|