@ -12,7 +12,7 @@ export function testConnection(value: Connection): Promise<string[]> {
BI . Msg . toast ( BI . i18nText ( 'Dec-Dcm_Connection_ConnectionName_Cannt_Null' ) , {
BI . Msg . toast ( BI . i18nText ( 'Dec-Dcm_Connection_ConnectionName_Cannt_Null' ) , {
level : 'error' ,
level : 'error' ,
} ) ;
} ) ;
return false ;
return false ;
}
}
const id = BI . UUID ( ) ;
const id = BI . UUID ( ) ;
@ -27,7 +27,7 @@ export function testConnection(value: Connection): Promise<string[]> {
// DEC-14009 1.8以上版本JDK支持ODBC连接
// DEC-14009 1.8以上版本JDK支持ODBC连接
if ( driver === JDBC_ODBC_DRIVER ) {
if ( driver === JDBC_ODBC_DRIVER ) {
testStatus . setFail ( re . errorMsg , driver , Dec . system [ DecCst . Hyperlink . DECISION_HYPERLINK_CONFIG ] [ JDBC_ODBC_DRIVER_HELP_LINK ] ) ;
testStatus . setFail ( re . errorMsg , driver , Dec . system [ DecCst . Hyperlink . DECISION_HYPERLINK_CONFIG ] [ JDBC_ODBC_DRIVER_HELP_LINK ] ) ;
return ;
return ;
}
}
const databaseType = ( formValue . connectionData as ConnectionJDBC ) . database ;
const databaseType = ( formValue . connectionData as ConnectionJDBC ) . database ;
@ -63,7 +63,7 @@ export function testConnection(value: Connection): Promise<string[]> {
loadingCls : 'upload-loading-icon' ,
loadingCls : 'upload-loading-icon' ,
successText : BI.i18nText ( 'Dec-Dcm_Connection_Test_Success' ) ,
successText : BI.i18nText ( 'Dec-Dcm_Connection_Test_Success' ) ,
successCls : 'upload-success-icon' ,
successCls : 'upload-success-icon' ,
failText : BI.i18nText ( 'Dec-Dcm_Connection_Test_Fail' , name ) ,
failText : BI.i18nText ( 'Dec-Dcm_Connection_Test_Fail' , '' ) ,
failCls : 'upload-fail-icon' ,
failCls : 'upload-fail-icon' ,
retryText : BI.i18nText ( 'Dec-Dcm_Connection_ReConnect' ) ,
retryText : BI.i18nText ( 'Dec-Dcm_Connection_ReConnect' ) ,
ref : ( _ref : any ) = > {
ref : ( _ref : any ) = > {