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 = { export const DEFAULT_JNDI_DATA = {
jndiname: '', jndiName: '',
originalCharsetName: '', originalCharsetName: '',
newCharsetName: '', newCharsetName: '',
contextHashtable: { contextHashtable: {

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

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

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

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

Loading…
Cancel
Save