Browse Source

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

* commit 'c2f19a7dde62b3f5f5dc2173a5c39bc5b1ad12d4':
  fix: 无jira任务,修改重命名输入框宽度,修改jndi新增时的bug
qufenxi
alan 5 years ago
parent
commit
12e34c234d
  1. 2
      src/modules/pages/connection/list/list_item/list_item.ts
  2. 12
      src/modules/pages/maintain/forms/components/form.jndi.ts

2
src/modules/pages/connection/list/list_item/list_item.ts

@ -58,7 +58,7 @@ export class ListItem extends BI.BasicButton {
{ {
type: SignEditor, type: SignEditor,
value: name, value: name,
width: 100, width: 200,
invisible: !this.model.isEdit, invisible: !this.model.isEdit,
ref: (_ref: any) => { ref: (_ref: any) => {
this.nameEditor = _ref; this.nameEditor = _ref;

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

@ -371,6 +371,12 @@ export class FormJndi extends BI.Widget {
'java.naming.language': this.form.language.getValue(), 'java.naming.language': this.form.language.getValue(),
'java.naming.applet': this.form.applet.getValue(), 'java.naming.applet': this.form.applet.getValue(),
}; };
for (const propName in contextHashtable) {
if (contextHashtable[propName] === null || contextHashtable[propName] === undefined || contextHashtable[propName] === '') {
delete contextHashtable[propName];
}
}
return { return {
connectionId: this.form.connectionName.getValue(), connectionId: this.form.connectionName.getValue(),
@ -378,10 +384,10 @@ export class FormJndi extends BI.Widget {
connectionType: connectionType.JNDI, connectionType: connectionType.JNDI,
connectionData: { connectionData: {
jndiname: this.form.jndiname.getValue(), jndiname: this.form.jndiname.getValue(),
originalCharsetName: this.form.newCharsetName.getValue(), newCharsetName: this.form.newCharsetName.getValue()[0] || '',
newCharsetName: this.form.newCharsetName.getValue(), originalCharsetName: this.form.newCharsetName.getValue()[0] || '',
creator: Dec ? Dec.personal.username : '', creator: Dec ? Dec.personal.username : '',
contextHashtable: BI.pick(contextHashtable) as ContextHashtable, contextHashtable: contextHashtable as ContextHashtable,
}, },
}; };
} }

Loading…
Cancel
Save