SUPPORT-9011: fix loading ip and roles
This commit is contained in:
parent
2fc8a9d73e
commit
0b9b91612f
5 changed files with 1740 additions and 490 deletions
|
|
@ -1,5 +1,12 @@
|
|||
import {ChangeDetectionStrategy, Component} from "@angular/core";
|
||||
import {CustomLoadingComponent, Event, GridV2, GridV2Column, Visible} from "@webbpm/base-package";
|
||||
import {
|
||||
CustomLoadingComponent,
|
||||
EditableGrid,
|
||||
Event, GridRows,
|
||||
GridV2,
|
||||
GridV2Column, ObjectRef,
|
||||
Visible
|
||||
} from "@webbpm/base-package";
|
||||
import {
|
||||
StaticGridColumn
|
||||
} from "../../../generated/ru/micord/ervu/account_applications/component/property/grid/StaticGridColumn";
|
||||
|
|
@ -13,7 +20,6 @@ import {
|
|||
} from "ag-grid-community";
|
||||
import {StaticGridColumnAdapter} from "./StaticGridColumnAdapter";
|
||||
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'ervu-static-grid',
|
||||
|
|
@ -24,6 +30,8 @@ export class ErvuStaticGrid extends GridV2 implements CustomLoadingComponent {
|
|||
@Visible("false")
|
||||
public columnFiltersChanged: Event<any> = new Event<any>();
|
||||
public disableLoad: boolean;
|
||||
@ObjectRef()
|
||||
public editableGridRef: EditableGrid;
|
||||
|
||||
getColumns(): any[] {
|
||||
return this.getScriptsInChildren(GridV2Column)
|
||||
|
|
@ -37,8 +45,11 @@ export class ErvuStaticGrid extends GridV2 implements CustomLoadingComponent {
|
|||
super.load();
|
||||
}
|
||||
|
||||
setKeyValue(value: any): Promise<void> {
|
||||
this.setValue(value);
|
||||
setKeyValue(gridRows: GridRows): Promise<void> {
|
||||
this.setValue(gridRows);
|
||||
if(this.editableGridRef){
|
||||
this.editableGridRef.addRows(gridRows.rows);
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue