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/extras/poi/poi.component.ts |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/src/app/routes/extras/poi/poi.component.ts b/src/app/routes/extras/poi/poi.component.ts
new file mode 100644
index 0000000..614424c
--- /dev/null
+++ b/src/app/routes/extras/poi/poi.component.ts
@@ -0,0 +1,51 @@
+import { Component, ViewChild } from '@angular/core';
+import { NzMessageService } from 'ng-zorro-antd';
+import { ModalHelper } from '@delon/theme';
+import { SimpleTableComponent, SimpleTableColumn } from '@delon/abc';
+import { ExtrasPoiEditComponent } from './edit/edit.component';
+
+@Component({
+  selector: 'app-extras-poi',
+  templateUrl: './poi.component.html',
+})
+export class ExtrasPoiComponent {
+  @ViewChild('st') st: SimpleTableComponent;
+  s: any = {
+    pi: 1,
+    ps: 10,
+    s: '',
+  };
+  url = '/pois';
+  columns: SimpleTableColumn[] = [
+    { title: '������', index: 'id', width: '100px' },
+    { title: '������������', index: 'name' },
+    { title: '���������', index: 'branch_name' },
+    { title: '������', index: 'status_str', width: '100px' },
+    {
+      title: '������',
+      width: '180px',
+      buttons: [
+        {
+          text: '������',
+          type: 'modal',
+          component: ExtrasPoiEditComponent,
+          paramName: 'i',
+          click: () => this.msg.info('���������������������������������'),
+        },
+        { text: '������', click: () => this.msg.info('click photo') },
+        { text: '������SKU', click: () => this.msg.info('click sku') },
+      ],
+    },
+  ];
+
+  constructor(public msg: NzMessageService, private modal: ModalHelper) {}
+
+  add() {
+    this.modal
+      .static(ExtrasPoiEditComponent, { i: { id: 0 } })
+      .subscribe(() => {
+        this.st.load();
+        this.msg.info('���������������������������������');
+      });
+  }
+}

--
Gitblit v1.8.0