diff --git a/src/app/link_set/right/right_title/right.title.component.ts b/src/app/link_set/right/right_title/right.title.component.ts index cb1d547..11f690d 100644 --- a/src/app/link_set/right/right_title/right.title.component.ts +++ b/src/app/link_set/right/right_title/right.title.component.ts @@ -1,7 +1,7 @@ import {WidgetType, Left, Label, Button} from '@ui/index'; import RightTitleModel from '../../link-set.model'; import {LinkType} from '@ui/type'; -import {saveConnection} from '../../link-set.service'; +import {OTHER_CONNECT} from '../../select/select.service'; const className = 'fr.component.right.title'; const Widget: WidgetType = { _store() { @@ -12,7 +12,7 @@ const Widget: WidgetType = { const linkList: LinkType[] = this.model.linkList; const that = this; const {isEdit} = this.options; - const title = linkSelected.text === 'other' ? BI.i18nText('Dec-Dcm_Connection_Other') : linkSelected.text; + const title = linkSelected.text === OTHER_CONNECT ? BI.i18nText('Dec-Dcm_Connection_Other') : linkSelected.text; return { type: Left, diff --git a/src/app/link_set/select/select.service.ts b/src/app/link_set/select/select.service.ts index 7599ce3..0a01813 100644 --- a/src/app/link_set/select/select.service.ts +++ b/src/app/link_set/select/select.service.ts @@ -1,5 +1,9 @@ import {LinkType} from '@ui/type'; import pluginListConstant from '../../app.constant'; +/** + * 其他连接方式 + */ +export const OTHER_CONNECT = 'other'; export const databaseTyle = [ { @@ -70,7 +74,7 @@ export const databaseTyle = [ url: 'jdbc:mysql://localhost/dbname', }, { - text:'other', + text: OTHER_CONNECT, databaseType: 'other', driver: 'org.h2.Driver', drivers:['org.h2.Driver', 'com.fr.third.org.hsqldb.jdbcDriver', 'org.sqlite.JDBC'],