| | |
| | | import {ModalHelper} from '@delon/theme'; |
| | | import {HttpClient} from '@angular/common/http'; |
| | | import {UserInstallerEditComponent} from './edit/edit.component'; |
| | | import {environment} from '../../../../environments/environment'; |
| | | import {DateService} from '../../../core/services/date.service'; |
| | | import {environment} from 'environments/environment'; |
| | | import {DateService} from '@business/services/util/date.service'; |
| | | |
| | | @Component({ |
| | | selector: 'app-installer', |
| | |
| | | styles: [] |
| | | }) |
| | | export class InstallerComponent implements OnInit { |
| | | |
| | | isDeleteOptions = [ |
| | | {value: '1', label: '是'}, |
| | | {value: '0', label: '否'} |
| | | ]; |
| | | q: any = { |
| | | pi: 1, |
| | | ps: 10, |
| | | isDelete: this.isDeleteOptions[1].value, |
| | | sorter: '', |
| | | u_name: '', |
| | | u_mobile: '' |
| | |
| | | allChecked = false; |
| | | indeterminate = false; |
| | | sortMap: any = {}; |
| | | loading: boolean = true; |
| | | loading = true; |
| | | |
| | | constructor( |
| | | public http: HttpClient, |
| | |
| | | |
| | | checkAll(value: boolean) { |
| | | this.curRows.forEach(i => { |
| | | if (i.isDelete == '1') { |
| | | if (i.isDelete === '1') { |
| | | i.checked = false; |
| | | } else { |
| | | i.checked = value; |