|
|
@ -7,7 +7,7 @@ import { ApiFactory } from 'src/modules/crud/apiFactory'; |
|
|
|
const api = new ApiFactory().create(); |
|
|
|
const api = new ApiFactory().create(); |
|
|
|
import './maintain.less'; |
|
|
|
import './maintain.less'; |
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
import { getJdbcDatabaseType } from '../../app.service'; |
|
|
|
import { getJdbcDatabaseType, getTextByDatabaseType } from '../../app.service'; |
|
|
|
import { ConnectionJDBC } from 'src/modules/crud/crud.typings'; |
|
|
|
import { ConnectionJDBC } from 'src/modules/crud/crud.typings'; |
|
|
|
|
|
|
|
|
|
|
|
export const MaintainXtype = 'dec.dcm.maintain'; |
|
|
|
export const MaintainXtype = 'dec.dcm.maintain'; |
|
|
@ -20,8 +20,8 @@ export class Maintain extends BI.Widget { |
|
|
|
listView: any; |
|
|
|
listView: any; |
|
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const { text, isEdit, databaseType } = this.getEditConnection(); |
|
|
|
const { isEdit, databaseType } = this.getEditConnection(); |
|
|
|
const titleText = this.model.isCopy ? `${text}-${BI.i18nText('Dec-Dcm_Copy')}` : text; |
|
|
|
const titleText = getTextByDatabaseType(databaseType); |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: Vtape, |
|
|
|
type: Vtape, |
|
|
@ -43,7 +43,7 @@ export class Maintain extends BI.Widget { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: Label, |
|
|
|
type: Label, |
|
|
|
text: `${titleText}(${databaseType})`, |
|
|
|
text: titleText, |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
height: 40, |
|
|
|
height: 40, |
|
|
|