Browse Source

Merge pull request #34 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to feature/10.0

* commit '08a535c91a718b11441994b4592645f24b2484f7':
  fix: KERNEL-1209 jndiname 改为 jndiName
qufenxi
alan 5 years ago
parent
commit
f8bc3eb0b6
  1. 2
      src/modules/constants/constant.ts
  2. 2
      src/modules/crud/crud.typings.d.ts
  3. 4
      src/modules/pages/connection/connection_jndi/connection_jndi.ts
  4. 10
      src/modules/pages/maintain/forms/components/form.jndi.ts

2
src/modules/constants/constant.ts

@ -456,7 +456,7 @@ export const TEST_STATUS = {
};
export const DEFAULT_JNDI_DATA = {
jndiname: '',
jndiName: '',
originalCharsetName: '',
newCharsetName: '',
contextHashtable: {

2
src/modules/crud/crud.typings.d.ts vendored

@ -158,7 +158,7 @@ export interface ConnectionPoolJDBC {
}
export interface ConnectionJNDI {
jndiname: string;
jndiName: string;
/**
*
*/

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

@ -15,7 +15,7 @@ export class ConnectionJdbc extends BI.Widget {
render() {
const connectionData = this.model.connectionSelectedOne.connectionData as ConnectionJNDI;
const { jndiname, contextHashtable, originalCharsetName } = connectionData;
const { jndiName, contextHashtable, originalCharsetName } = connectionData;
return {
type: Vertical,
@ -26,7 +26,7 @@ export class ConnectionJdbc extends BI.Widget {
type: FormItemXtype,
nameWidth: 200,
name: BI.i18nText('Dec-Dcm_Connection_JNDI_Form_ConnectionName'),
value: jndiname,
value: jndiName,
},
{
type: Htape,

10
src/modules/pages/maintain/forms/components/form.jndi.ts

@ -15,7 +15,7 @@ export class FormJndi extends BI.Widget {
testStatus: any;
form = {
connectionName: null,
jndiname: null,
jndiName: null,
initial: null,
providerUrl: null,
securityPrincipal: null,
@ -36,7 +36,7 @@ export class FormJndi extends BI.Widget {
render() {
const { connectionName, connectionData } = this.options.formData;
const { jndiname, newCharsetName, contextHashtable } = connectionData as ConnectionJNDI;
const { jndiName, newCharsetName, contextHashtable } = connectionData as ConnectionJNDI;
return {
type: Vertical,
@ -64,9 +64,9 @@ export class FormJndi extends BI.Widget {
type: TextEditor,
width: 300,
allowBlank: true,
value: jndiname,
value: jndiName,
ref: (_ref: any) => {
this.form.jndiname = _ref;
this.form.jndiName = _ref;
},
}],
},
@ -383,7 +383,7 @@ export class FormJndi extends BI.Widget {
connectionName: this.form.connectionName.getValue(),
connectionType: connectionType.JNDI,
connectionData: {
jndiname: this.form.jndiname.getValue(),
jndiName: this.form.jndiName.getValue(),
newCharsetName: this.form.newCharsetName.getValue()[0] || '',
originalCharsetName: this.form.newCharsetName.getValue()[0] || '',
creator: Dec ? Dec.personal.username : '',

Loading…
Cancel
Save