From 12b04f145bae740e1971036b1e2dfc1bc224d17b Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Wed, 11 Jul 2018 14:38:47 +0800 Subject: [PATCH] Revert "框架调整" --- src/app/routes/pro/profile/advanced/advanced.component.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/src/app/routes/pro/profile/advanced/advanced.component.ts b/src/app/routes/pro/profile/advanced/advanced.component.ts new file mode 100644 index 0000000..d8dcf10 --- /dev/null +++ b/src/app/routes/pro/profile/advanced/advanced.component.ts @@ -0,0 +1,40 @@ +import { Component, OnInit } from '@angular/core'; +import { NzMessageService, NzTabChangeEvent } from 'ng-zorro-antd'; +import { _HttpClient } from '@delon/theme'; +import { SimpleTableColumn } from '@delon/abc'; + +@Component({ + selector: 'pro-profile-advanced', + templateUrl: './advanced.component.html', + styleUrls: ['./advanced.component.less'], +}) +export class ProProfileAdvancedComponent implements OnInit { + list: any[] = []; + + data = { + advancedOperation1: [], + advancedOperation2: [], + advancedOperation3: [], + }; + + opColumns: SimpleTableColumn[] = [ + { title: '������������', index: 'type' }, + { title: '���������', index: 'name' }, + { title: '������������', index: 'status', render: 'status' }, + { title: '������������', index: 'updatedAt', type: 'date' }, + { title: '������', index: 'memo', default: '-' }, + ]; + + constructor(public msg: NzMessageService, private http: _HttpClient) {} + + ngOnInit() { + this.http.get('/profile/advanced').subscribe((res: any) => { + this.data = res; + this.change({ index: 0, tab: null }); + }); + } + + change(args: NzTabChangeEvent) { + this.list = this.data[`advancedOperation${args.index + 1}`]; + } +} -- Gitblit v1.8.0