SUPPORT-8830 remove sensitive data from args 3.2
This commit is contained in:
parent
2d2a07bb0c
commit
84683a4e2d
4 changed files with 72 additions and 57 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import {Form} from "@webbpm/base-package";
|
||||
import {ChangeDetectionStrategy, Component} from "@angular/core";
|
||||
import {ErvuDataService} from "../../../modules/app/service/ervu-data.service";
|
||||
import {Subscription} from "rxjs";
|
||||
import {LoadFormRpcService} from "../../../generated/ru/micord/ervu/service/rpc/LoadFormRpcService";
|
||||
|
||||
@Component({
|
||||
|
|
@ -14,25 +13,16 @@ export class LoadForm extends Form {
|
|||
|
||||
private formRpcService: LoadFormRpcService;
|
||||
private ervuDataService: ErvuDataService;
|
||||
private subscription: Subscription;
|
||||
|
||||
private valuesData: string;
|
||||
|
||||
initialize() {
|
||||
super.initialize();
|
||||
this.formRpcService = this.getScript(LoadFormRpcService);
|
||||
this.ervuDataService = this.injector.get(ErvuDataService);
|
||||
this.subscription = this.ervuDataService.message.subscribe(value => {
|
||||
if (value) {
|
||||
this.valuesData = value;
|
||||
this.loadData();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
loadData(): Promise<any> {
|
||||
return this.formRpcService
|
||||
.loadData(this.valuesData)
|
||||
.loadData()
|
||||
.then(fieldDataList => this.setData(fieldDataList))
|
||||
.catch(reason => {
|
||||
throw new Error(reason);
|
||||
|
|
@ -49,6 +39,5 @@ export class LoadForm extends Form {
|
|||
|
||||
ngOnDestroy() {
|
||||
super.ngOnDestroy();
|
||||
this.subscription.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue