Browse Source
* commit '6fdfcd4fa7d905742672f2b352765ba07d01aa34': fix: 更新i18n fix: DEC-9958 在操作数据连接之前,判断数据连接是否可用。qufenxi
alan
5 years ago
10 changed files with 74 additions and 50 deletions
@ -0,0 +1,23 @@ |
|||||||
|
window.DecCst = { |
||||||
|
ErrorCode: { |
||||||
|
CONNECTION_DELETED: '21300035', |
||||||
|
CONNECTION_UNDER_EDIT: '21300034', |
||||||
|
}, |
||||||
|
Connect: { |
||||||
|
ConnectionType: { |
||||||
|
JDBC: 'jdbc', |
||||||
|
JNDI: 'jndi', |
||||||
|
}, |
||||||
|
EditStatusEvent: { |
||||||
|
OPEN: 'getConnectionStatus', |
||||||
|
SHUTDOWN: 'shutdownConnectionStatus', |
||||||
|
} |
||||||
|
} |
||||||
|
}; |
||||||
|
|
||||||
|
window.Dec = { |
||||||
|
fineServletURL: '/webroot/decision', |
||||||
|
socket: { |
||||||
|
connected: false, |
||||||
|
}, |
||||||
|
} |
@ -1,14 +1,13 @@ |
|||||||
const fineServletURL = Dec ? Dec.fineServletURL : '/webroot/decision'; |
const fineServletURL = Dec.fineServletURL; |
||||||
export const ReqPrefix = `${fineServletURL}/v10/config/connection`; |
export const ReqPrefix = `${fineServletURL}/v10/config/connection`; |
||||||
export const ImgPrefix = `${fineServletURL}/resources?path=/com/fr/web/resources/dist/images/2x/icon/database/`; |
export const ImgPrefix = `${fineServletURL}/resources?path=/com/fr/web/resources/dist/images/2x/icon/database/`; |
||||||
export const PluginImgPrefix = `${fineServletURL}/resources?path=`; |
export const PluginImgPrefix = `${fineServletURL}/resources?path=`; |
||||||
|
|
||||||
export const connectionType = DecCst ? DecCst.Connect.ConnectionType : { |
export const connectionType = DecCst.Connect.ConnectionType; |
||||||
JDBC: 'jdbc', |
|
||||||
JNDI: 'jndi', |
|
||||||
}; |
|
||||||
|
|
||||||
export const editStatusEvent = DecCst ? DecCst.Connect.EditStatusEvent : { |
export const editStatusEvent = DecCst.Connect.EditStatusEvent; |
||||||
OPEN: 'getConnectionStatus', |
|
||||||
SHUTDOWN: 'shutdownConnectionStatus', |
export const errorCode: { |
||||||
}; |
CONNECTION_DELETED: string; |
||||||
|
CONNECTION_UNDER_EDIT: string; |
||||||
|
} = DecCst.ErrorCode; |
||||||
|
Loading…
Reference in new issue