1 files added
	
		
		3 files modified
	
	
 
	
	
	
	
	
	
	
	
 |  |  | 
 |  |  |       <td nz-td>{{i.nickname}}</td> | 
 |  |  |       <td nz-td>{{i.updatedAt | _date}}</td> | 
 |  |  |       <td nz-td> | 
 |  |  |         <a (click)="msg.success('编辑:' + i.name)">编辑</a> | 
 |  |  |         <a (click)="edit(i)">编辑</a> | 
 |  |  |         <span nz-table-divider></span> | 
 |  |  |         <a (click)="msg.success('删除:' + i.name)">删除</a> | 
 |  |  |       </td> | 
 
 |  |  | 
 |  |  | 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() { | 
 
 |  |  | 
 |  |  | import { SharedModule } from '@shared/shared.module'; | 
 |  |  |  | 
 |  |  | import { ReceiverComponent } from './receiver/receiver.component'; | 
 |  |  | import { EditComponent } from './installer/edit/edit.component'; | 
 |  |  | import { UserInstallerEditComponent } from './installer/edit/edit.component'; | 
 |  |  |  | 
 |  |  | const routes: Routes = [ | 
 |  |  |   { | 
 |  |  | 
 |  |  |   } | 
 |  |  | ]; | 
 |  |  |  | 
 |  |  | const COMPONENTS_NOROUNT = [ UserInstallerEditComponent ]; | 
 |  |  |  | 
 |  |  | @NgModule({ | 
 |  |  |   imports: [ | 
 |  |  |     CommonModule, | 
 |  |  | 
 |  |  |   declarations: [ | 
 |  |  |     InstallerComponent, | 
 |  |  |     ReceiverComponent, | 
 |  |  |     EditComponent | 
 |  |  |   ] | 
 |  |  |     ...COMPONENTS_NOROUNT | 
 |  |  |   ], | 
 |  |  |   entryComponents: COMPONENTS_NOROUNT | 
 |  |  | }) | 
 |  |  | export class UsersModule { } | 
 
| New file | 
 |  |  | 
 |  |  | { | 
 |  |  |     "total": 2, | 
 |  |  |     "data": [{ | 
 |  |  |             "id": 10000, | 
 |  |  |             "user_id": 1, | 
 |  |  |             "name": "测试品牌", | 
 |  |  |             "branch_name": "测试分店", | 
 |  |  |             "geo": 310105, | 
 |  |  |             "country": "中国", | 
 |  |  |             "province": "上海", | 
 |  |  |             "city": "上海市", | 
 |  |  |             "district": "长宁区", | 
 |  |  |             "address": "中山公园", | 
 |  |  |             "tel": "15900000000", | 
 |  |  |             "categories": "美食,粤菜,湛江菜", | 
 |  |  |             "lng": 121.41707989151003, | 
 |  |  |             "lat": 31.218656214644792, | 
 |  |  |             "recommend": "推荐品", | 
 |  |  |             "special": "特色服务", | 
 |  |  |             "introduction": "商户简介", | 
 |  |  |             "open_time": "营业时间", | 
 |  |  |             "avg_price": 260, | 
 |  |  |             "reason": null, | 
 |  |  |             "status": 1, | 
 |  |  |             "status_str": "待审核", | 
 |  |  |             "status_wx": 1, | 
 |  |  |             "modified": 1505826527288, | 
 |  |  |             "created": 1505826527288 | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |             "id": 10001, | 
 |  |  |             "user_id": 2, | 
 |  |  |             "name": "测试品牌2", | 
 |  |  |             "branch_name": "测试分店2", | 
 |  |  |             "geo": 310105, | 
 |  |  |             "country": "中国", | 
 |  |  |             "province": "上海", | 
 |  |  |             "city": "上海市", | 
 |  |  |             "district": "长宁区", | 
 |  |  |             "address": "中山公园", | 
 |  |  |             "tel": "15900000000", | 
 |  |  |             "categories": "美食,粤菜,湛江菜", | 
 |  |  |             "lng": 121.41707989151003, | 
 |  |  |             "lat": 31.218656214644792, | 
 |  |  |             "recommend": "推荐品", | 
 |  |  |             "special": "特色服务", | 
 |  |  |             "introduction": "商户简介", | 
 |  |  |             "open_time": "营业时间", | 
 |  |  |             "avg_price": 260, | 
 |  |  |             "reason": null, | 
 |  |  |             "status": 1, | 
 |  |  |             "status_str": "待审核", | 
 |  |  |             "status_wx": 1, | 
 |  |  |             "modified": 1505826527288, | 
 |  |  |             "created": 1505826527288 | 
 |  |  |         } | 
 |  |  |     ] | 
 |  |  |  | 
 |  |  | } |