import {NzModalSubject, NzMessageService} from 'ng-zorro-antd';
|
import {Component, OnInit} from '@angular/core';
|
import {ModalHelper} from '@delon/theme';
|
import {HttpClient} from '@angular/common/http';
|
import {environment} from '../../../../../environments/environment';
|
import {DateService} from '../../../../core/services/date.service';
|
|
@Component({
|
selector: 'app-account-edit',
|
templateUrl: './account-edit.component.html',
|
styles: []
|
})
|
export class AccountEditComponent implements OnInit {
|
|
account: any;
|
|
constructor(private modalHelper: ModalHelper,
|
private subject: NzModalSubject,
|
public dateSrv: DateService,
|
public msgSrv: NzMessageService,
|
public http: HttpClient) {}
|
|
ngOnInit() {
|
}
|
|
save() {
|
this.http.post(environment.SERVER_BASH_URL + '/account/account', this.account).subscribe(() => {
|
this.subject.next('true');
|
this.close();
|
});
|
}
|
|
close() {
|
this.subject.destroy();
|
}
|
|
}
|