| | |
| | | import { _HttpClient } from '@delon/theme'; |
| | | import { getInstaller, deleteInstaller } from '../../../../../_mock/installer.service'; |
| | | import * as moment from 'moment'; |
| | | import { UserInstallerEditComponent } from './edit/edit.component'; |
| | | |
| | | @Component({ |
| | | selector: 'app-installer', |
| | |
| | | curRows: any[] = []; |
| | | allChecked = false; |
| | | indeterminate = false; |
| | | |
| | | sortMap: any = {}; |
| | | modalVisible = false; |
| | | |
| | | constructor( |
| | | public msg: NzMessageService, |
| | | public http: _HttpClient, |
| | | public msgSrv: NzMessageService, |
| | | private modalHelper: ModalHelper) {} |
| | | |
| | | ngOnInit() { |
| | |
| | | }); |
| | | } |
| | | |
| | | edit(i) { |
| | | this.modalHelper.static(UserInstallerEditComponent, { i }).subscribe(() => { |
| | | this.load(); |
| | | this.msgSrv.info('回调,重新发起列表刷新'); |
| | | }); |
| | | } |
| | | |
| | | add() { |
| | | this.modalVisible = true; |
| | | const i = {}; |
| | | this.modalHelper.static(UserInstallerEditComponent, { i }); |
| | | } |
| | | |
| | | save() { |