| | |
| | | import { NzModalSubject, NzMessageService } from 'ng-zorro-antd'; |
| | | import { HttpClient } from '@angular/common/http'; |
| | | import { Component, OnInit } from '@angular/core'; |
| | | import { _HttpClient } from '@delon/theme'; |
| | | import { ModalHelper } from '@delon/theme'; |
| | | import { HttpClient } from '@angular/common/http'; |
| | | |
| | | @Component({ |
| | | selector: 'app-edit', |
| | |
| | | }) |
| | | export class UserInstallerEditComponent implements OnInit { |
| | | |
| | | i: any; |
| | | gender: string[] = [ '男', '女' ]; |
| | | user: any; |
| | | |
| | | constructor( |
| | | private modalHelper: ModalHelper, |
| | | private subject: NzModalSubject, |
| | | public msgSrv: NzMessageService, |
| | | public http: _HttpClient) { } |
| | | public http: HttpClient) { } |
| | | |
| | | ngOnInit() { |
| | | if (this.i.id > 0) { |
| | | this.http.get('./assets/pois.json').subscribe(res => this.i = res.data[0]); |
| | | if (this.user.id > 0) { |
| | | this.http.get('http://localhost:8001/user/operate_user/' + this.user.id).subscribe((res: any) => { |
| | | this.user = res.data[0]; |
| | | }); |
| | | } |
| | | } |
| | | |