Browse Source

fix: DEC-10044 编辑数据连接时,左上角显示数据连接类型名称。

qufenxi
alan 5 years ago
parent
commit
41641a0282
  1. 2
      src/modules/pages/connection/connection_jndi/connection_jndi.ts
  2. 8
      src/modules/pages/maintain/maintain.ts

2
src/modules/pages/connection/connection_jndi/connection_jndi.ts

@ -30,7 +30,7 @@ export class ConnectionJdbc extends BI.Widget {
},
{
type: Htape,
height: 110,
height: 120,
items: [
{
el: {

8
src/modules/pages/maintain/maintain.ts

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

Loading…
Cancel
Save