diff --git a/src/modules/pages/connection/list/list.ts b/src/modules/pages/connection/list/list.ts index 53db78d..99f7c18 100644 --- a/src/modules/pages/connection/list/list.ts +++ b/src/modules/pages/connection/list/list.ts @@ -21,7 +21,9 @@ export class ConnectionList extends BI.LoadingPane { watch = { connections: () => { - this.groupWidget.populate(this.renderList()); + const times = this.groupWidget.times; + this.groupWidget.populate(this.renderList(0, this.groupWidget.times * 50)); + this.groupWidget.times = times; }, } @@ -59,7 +61,9 @@ export class ConnectionList extends BI.LoadingPane { populate(this.renderList((options.times - 1) * 50, options.times * 50)); }, hasNext: options => options.times * 50 < BI.size(this.model.connections), - + ref: (_ref: any) => { + this.groupWidget = _ref; + }, }; } diff --git a/src/modules/pages/connection/list/list_item/list_item.ts b/src/modules/pages/connection/list/list_item/list_item.ts index 55b1fbd..5a3b6e0 100644 --- a/src/modules/pages/connection/list/list_item/list_item.ts +++ b/src/modules/pages/connection/list/list_item/list_item.ts @@ -27,6 +27,7 @@ export class ListItem extends BI.BasicButton { comboWidget: any; nameLabel: any; nameEditor: any; + downListCombo: any; testStatus: TestStatus; watch = { @@ -96,10 +97,14 @@ export class ListItem extends BI.BasicButton { cls: 'dcm-link-other-font icon-size-16', }, items: this.renderDownList(), + ref: (_ref: any) => { + this.downListCombo = _ref; + }, listeners: [{ eventName: BI.DownListCombo.EVENT_CHANGE, action: (value: string) => { this.itemActionCalculate().actionClac(value); + this.downListCombo.setValue(''); }, }],