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,
value: name,
width: 100,
width: 200,
invisible: !this.model.isEdit,
ref: (_ref: any) => {
this.nameEditor = _ref;

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

@ -372,16 +372,22 @@ export class FormJndi extends BI.Widget {
'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 {
connectionId: this.form.connectionName.getValue(),
connectionName: this.form.connectionName.getValue(),
connectionType: connectionType.JNDI,
connectionData: {
jndiname: this.form.jndiname.getValue(),
originalCharsetName: this.form.newCharsetName.getValue(),
newCharsetName: this.form.newCharsetName.getValue(),
newCharsetName: this.form.newCharsetName.getValue()[0] || '',
originalCharsetName: this.form.newCharsetName.getValue()[0] || '',
creator: Dec ? Dec.personal.username : '',
contextHashtable: BI.pick(contextHashtable) as ContextHashtable,
contextHashtable: contextHashtable as ContextHashtable,
},
};
}

Loading…
Cancel
Save