| | |
| | | import {NzMessageService, NzModalService} from 'ng-zorro-antd'; |
| | | import {ModalHelper} from '@delon/theme'; |
| | | import {HttpClient} from '@angular/common/http'; |
| | | import * as moment from 'moment'; |
| | | import {environment} from '../../../../environments/environment'; |
| | | import {DateService} from '../../../core/services/date.service'; |
| | | import {AccountEditComponent} from './account-edit/account-edit.component'; |
| | |
| | | |
| | | export class AccountComponent implements OnInit { |
| | | |
| | | options = [ |
| | | isDeleteOptions = [ |
| | | {value: '1', label: '是'}, |
| | | {value: '0', label: '否'} |
| | | ]; |
| | |
| | | query: any = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | isDelete: this.options[1].value |
| | | isDelete: this.isDeleteOptions[1].value |
| | | }; |
| | | data: any[] = []; |
| | | total: 0; |
| | |
| | | } |
| | | |
| | | sort(field: string, value: any) { |
| | | const ids = this.sortMap; |
| | | const temp = this.sortMap; |
| | | this.sortMap = []; |
| | | ids.forEach(i => { |
| | | temp.forEach(i => { |
| | | if (!i.startsWith(field)) { |
| | | this.sortMap.push(i); |
| | | } |