src/app/dashboard/dashboard.component.ts
selector | crm-dashboard |
styleUrls | dashboard.component.scss |
templateUrl | ./dashboard.component.html |
Properties |
|
Methods |
constructor(router: Router, notificationsService: NotificationsService, authHttp: AuthHttp, ss: SpinnerService, companyProfilesService: CompanyProfilesService)
|
||||||||||||||||||||||||
Defined in src/app/dashboard/dashboard.component.ts:18
|
||||||||||||||||||||||||
Parameters :
|
ev | ||||||||
ev(event: Event)
|
||||||||
Defined in src/app/dashboard/dashboard.component.ts:37
|
||||||||
Parameters :
Returns :
void
|
hide |
hide()
|
Defined in src/app/dashboard/dashboard.component.ts:33
|
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Defined in src/app/dashboard/dashboard.component.ts:44
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Defined in src/app/dashboard/dashboard.component.ts:25
|
Returns :
void
|
show |
show()
|
Defined in src/app/dashboard/dashboard.component.ts:29
|
Returns :
void
|
items |
items:
|
Default value : ["asdasdasd", "Asdasdasdasd"]
|
Defined in src/app/dashboard/dashboard.component.ts:41
|
reg |
reg:
|
Default value : CRMValidators.getEmailRegexp()
|
Defined in src/app/dashboard/dashboard.component.ts:42
|
Private subscription |
subscription:
|
Type : Subscription
|
Defined in src/app/dashboard/dashboard.component.ts:18
|
testItems |
testItems:
|
Default value : this.companyProfilesService.getAllForSelect()
|
Defined in src/app/dashboard/dashboard.component.ts:50
|
import {Component, OnInit, OnDestroy} from "@angular/core";
import {Router} from "@angular/router";
import {Subscription} from "rxjs";
import {NotificationsService} from "../core/notifications/notifications.service";
import {AuthHttp} from "../core/auth/auth-http.service";
import {SpinnerService} from "../core/spinner/spinner.service";
import {CRMValidators} from "../shared/validators/CRMValidators";
import {CompanyProfilesService} from "../core/profile/company-profiles.service";
@Component({
selector: 'crm-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit, OnDestroy {
private subscription: Subscription;
constructor(private router: Router,
private notificationsService: NotificationsService,
private authHttp: AuthHttp, private ss: SpinnerService, private companyProfilesService: CompanyProfilesService) {
}
ngOnInit(): void {
}
show() {
this.ss.show();
}
hide() {
this.ss.hide();
}
ev(event: Event) {
console.log(event)
}
items = ["asdasdasd", "Asdasdasdasd"];
reg = CRMValidators.getEmailRegexp();
ngOnDestroy() {
if (typeof this.subscription !== 'undefined') {
this.subscription.unsubscribe();
}
}
testItems = this.companyProfilesService.getAllForSelect();
}
<div class="animated fadeIn">
<div class="row">
<!--<div class="col-xl-8 col-lg-7 col-md-6 col-sm-12">-->
<!--<div class="row">-->
<!--<div class="col-xl-6 col-lg-12 col-md-12 col-sm-12">-->
<!--<crm-orders-by-period-chart></crm-orders-by-period-chart>-->
<!--</div>-->
<!--<div class="col-xl-6 col-lg-12 col-md-12 col-sm-12">-->
<!--<div class="row">-->
<!--<div class="col-md-12">-->
<!--<crm-completed-orders-number></crm-completed-orders-number>-->
<!--</div>-->
<!--<div class="col-md-12">-->
<!--<!–<crm-completed-orders-number></crm-completed-orders-number>–>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--<div class="row">-->
<!--<div class="col-sm-12">-->
<!--<crm-orders-states-chart></crm-orders-states-chart>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--<div class="col-xl-4 col-lg-5 col-md-6 col-sm-12">-->
<!--<crm-user-tasks></crm-user-tasks>-->
<!--</div>-->
</div>
</div>