this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250)
}
- ngOnDestroy() {
- this.resizeMark.unsubscribe()
- }
-
// services
serviceNumber: number = 0;
serviceChartData: Object;
<span> {{"i18nTextDefine_Customer" | translate}} : </span>
<nz-select [(ngModel)]="currentCustomer.id" nzAllowClear
(ngModelChange)="customerChange(currentCustomer.id)">
- <nz-option *ngFor="let item of customerList" [nzValue]="item.name" [nzLabel]="item.name"></nz-option>
+ <nz-option *ngFor="let item of customerList" [nzValue]="item.id" [nzLabel]="item.name"></nz-option>
</nz-select>
</div>
<div class="select-list">
this.http.getTemplateParameters(types, chosedtemplates)
.subscribe((data) => {
this.loadingAnimateShow = false;
- if (!data || !data.status) {
- this.temParametersTips = true;
- this.isVisible = true;
- this.msg.error('Back end data format error')
- }
- else if (data.status == "FAILED") {
+ if (!data || !data.status || data.status == "FAILED") {
this.temParametersTips = true;
this.isVisible = true;
+ this.msg.error('Template parsing failed');
} else {
this.cancel.emit(false);
this.temParametersTips = false;
ngOnInit() {}
+ ngOnDestroy() {
+ console.log(this.progressingTimer)
+ this.progressingTimer.forEach((item) => {
+ clearInterval(item.timer)
+ })
+ }
+
selectedValue: string = BUSINESS_STATUS[0];
listOfData: any[] = [];
pageIndex: number = 1;
}
ngOnInit() {
+ }
+ ngOnDestroy() {
+ this.progressingTimer.forEach((item) => {
+ clearInterval(item.timer)
+ })
}
selectedValue: string = BUSINESS_STATUS[0];
listOfData: any[] = [];