| | |
| | | edit(user) { |
| | | this.modalHelper.static(UserInstallerEditComponent, { user }).subscribe(() => { |
| | | this.load(true); |
| | | this.msgSrv.info('回调,重新发起列表刷新'); |
| | | this.msgSrv.success('安装用户修改成功!'); |
| | | }); |
| | | } |
| | | |
| | | add() { |
| | | const user = {}; |
| | | this.modalHelper.static(UserInstallerEditComponent, { user }); |
| | | this.modalHelper.static(UserInstallerEditComponent, { user }).subscribe(() => { |
| | | this.load(true); |
| | | this.msgSrv.success('安装用户保存成功!'); |
| | | }); |
| | | } |
| | | |
| | | save() { |
| | | |
| | | delete(user) { |
| | | this.http.delete('http://localhost:8001/user/operate_user/' + user.id).subscribe((res: any) => { |
| | | this.msgSrv.success('安装用户删除成功!'); |
| | | this.load(true); |
| | | }); |
| | | } |
| | | |
| | | remove() { |
| | |
| | | reset(ls: any[]) { |
| | | for (const item of ls) item.value = false; |
| | | this.load(true); |
| | | } |
| | | |
| | | // Popconfirm |
| | | popConfirm(i) { |
| | | this.msgSrv.success('Next step.'); |
| | | } |
| | | |
| | | popCancel() { |
| | | this.msgSrv.error('Click on No'); |
| | | } |
| | | } |